[Insight-users] Segmentation fault with 2.2G data but not with smaller subset

lynx.abraxas at freenet.de lynx.abraxas at freenet.de
Sun Aug 9 17:14:14 EDT 2009


Hello!



My  little SignedDanielssonDistanceMapImageFilter and watershed filter program
runs fine with a subset (45M) of my acutal data but when I use the  full  data
set  (2.2G)  it  stops after a minute with a segmentation fault. What could be
the cause for that? Below is  some  gdb  output  I'm  not  able  to  interpret
further.

Thanks for any help or hints
Lynx



-------------- next part --------------
(gdb) run zs_gauss-0.5-9_ru_ij.tif zs_gauss-0.5-9_ru_ws_113101.tif 1 1 3 1 0 1
Starting program: /tmp/watershed06 zs_gauss-0.5-9_ru_ij.tif zs_gauss-0.5-9_ru_ws_113101.tif 1 1 3 1 0 1
[Thread debugging using libthread_db enabled]
[New Thread 0x2ba6a07ccb20 (LWP 2405)]
signed danielson distance map...
Morphological watershed...
Creating nice output...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ba6a07ccb20 (LWP 2405)]
0x00000000005916f0 in itk::ConvertPixelBuffer<unsigned char, unsigned short, itk::DefaultConvertPixelTraits<unsigned short> >::ConvertGrayToGray ()

(gdb) where
#0  0x00000000005916f0 in itk::ConvertPixelBuffer<unsigned char, unsigned short, itk::DefaultConvertPixelTraits<unsigned short> >::ConvertGrayToGray ()
#1  0x00000000005d25be in itk::ConvertPixelBuffer<unsigned char, unsigned short, itk::DefaultConvertPixelTraits<unsigned short> >::Convert ()
#2  0x00000000005debd9 in itk::ImageFileReader<itk::Image<unsigned short, 3u>, itk::DefaultConvertPixelTraits<unsigned short> >::DoConvertBuffer ()
#3  0x00000000005e04fd in itk::ImageFileReader<itk::Image<unsigned short, 3u>, itk::DefaultConvertPixelTraits<unsigned short> >::GenerateData ()
#4  0x000000000085a407 in itk::ProcessObject::UpdateOutputData ()
#5  0x00000000008472ae in itk::DataObject::UpdateOutputData ()
#6  0x000000000085a092 in itk::ProcessObject::UpdateOutputData ()
#7  0x00000000008472ae in itk::DataObject::UpdateOutputData ()
#8  0x000000000085a124 in itk::ProcessObject::UpdateOutputData ()
#9  0x00000000008472ae in itk::DataObject::UpdateOutputData ()
#10 0x000000000085a124 in itk::ProcessObject::UpdateOutputData ()
#11 0x00000000008472ae in itk::DataObject::UpdateOutputData ()
#12 0x0000000000609b4b in itk::ImageFileWriter<itk::Image<unsigned short, 3u> >::Write ()
#13 0x0000000000580028 in itk::ImageFileWriter<itk::Image<unsigned short, 3u> >::Update ()
#14 0x000000000057f442 in main ()
(gdb) info registers
rax            0x2ba8c04e0000   48003780837376
rbx            0x87f3cf64       2280902500
rcx            0x87f3cf64       2280902500
rdx            0x0      0
rsi            0x2ba8385a2fee   48001499934702
rdi            0x0      0
rbp            0x7fff0b5ca0e0   0x7fff0b5ca0e0
rsp            0x7fff0b5ca0b0   0x7fff0b5ca0b0
r8             0xfffffffffffffff9       -7
r9             0x1      1
r10            0x0      0
r11            0x246    582
r12            0x66854e 6718798
r13            0x7fff0b5cbf60   140733384015712
r14            0x0      0
r15            0x0      0
rip            0x5916f0 0x5916f0 <itk::ConvertPixelBuffer<unsigned char, unsigned short, itk::DefaultConvertPixelTraits<unsigned short> >::ConvertGrayToGray(unsigned char*, unsigned short*, int)+38>
eflags         0x10212  [ AF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
---Type <return> to continue, or q <return> to quit---
fs             0x0      0
gs             0x0      0
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
mxcsr          0x1fb2   [ DE UE PE IM DM ZM OM UM PM ]
(gdb) continue
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.


More information about the Insight-users mailing list