<div>Hi, Dear Debian octave devel team</div><div><br></div><div>Happy New Year!</div><div><br></div><div>I'm a Octave user. I've aptitude installed the octave-3.2.4 (Source Package: octave3.2 3.2.4-12) [Wheezy/testing] on my 64-bit PC (AMD X955 4 cores) and most of octave functions is OK.</div>
<div><br></div><div>But when I call the imread and imshow function to load a JPEG picture, I encountered a segmentation fault problem like following :</div><div><br></div><div><br></div><div>% -------------------- imread seg fault ----------------------</div>
<div><br></div><div>octave-3.2.4:1> imread('/home/mywork/temp/pic/003.jpg')</div><div>octave-3.2.4: magick/pixel_cache.c£º2765£ºModifyCache: Assertion "image->cache != (Cache) ((void *)0)” failed</div><div>
panic: Aborted -- stopping myself...</div><div><br></div><div>% -------------------- imread seg fault ----------------------</div><div><br></div><div><br></div><div>% -------------------- imshow seg fault ----------------------</div>
<div>octave-3.2.4:1> imshow('/home/liuxiangyu/temp/pic/003.jpg')</div><div>panic: Segmentation fault -- stopping myself...</div><div>Segmentation fault</div><div>% -------------------- imshow seg fault ----------------------</div>
<div><br></div><div>I don't know where I can find the reason, so I do some compiling experiments.</div><div><br></div><div>I tried to compile the lastest octave-3.4.3 manually. I downloaded the source tar ball from <a href="http://www.octave.org">www.octave.org</a> and aptitude install some dep-package such as libreadline-dev, libncurses5-dev, libgraphicsmagick++1-dev, libfltk1.1-dev and so on. Compiling is successfull , but make check also encountered the seg-fault when run script/imread.</div>
<div><br></div><div>I saw some bug-mail-list on google talking about GraphicsMagick and bit-wide. I compiled the newest GraphicsMagick-1.3.13 manually with configure parameter --with-quantum-depth=16, and compiled octave-3.4.3 manually (config octave to link to GraphicsMagick-1.3.13 in /usr/local/lib), but, I also encountered the seg-fault when run script/imread. And I can't debug the octave or imread (cause I don't know how to use gdb or some tools else) to find the reason.</div>
<div><br></div><div>So I send this mail to you to look for help, any advice or comment from you would be most welcome.</div><div><br></div><div>Following are some informations about my PC, gcc, CPU. </div><div><br></div><div>
$ dpkg --list | grep octave</div><div>ii  octave3.2    3.2.4-12    GNU Octave language for numerical computations (3.2 branch)</div><div>ii  octave3.2-common   3.2.4-12     architecture-independent files for octave3.2</div>
<div><br></div><div><br></div><div>$ dpkg --list | grep graphicsmagick</div><div>ii  libgraphicsmagick++3   1.3.12-1.1+b1  format-independent image processing - C++ shared library</div><div>ii  libgraphicsmagick3    1.3.12-1.1+b1    format-independent image processing - C shared library</div>
<div><br></div><div><br></div><div>$ uname -a</div><div>Linux F117A 3.1.0-1-amd64 #1 SMP Sun Dec 11 20:36:41 UTC 2011 x86_64 GNU/Linux</div><div><br></div><div><br></div><div>$ gcc -v</div><div>Using built-in specs.</div>
<div>COLLECT_GCC=gcc</div><div>COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper</div><div>Target: x86_64-linux-gnu</div><div>Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-9' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu</div>
<div>Thread model: posix</div><div>gcc version 4.6.2 (Debian 4.6.2-9)</div><div><br></div><div>cat /proc/cpuinfo</div><div>processor       : 0</div><div>vendor_id       : AuthenticAMD</div><div>cpu family      : 16</div><div>
model           : 4</div><div>model name      : AMD Phenom(tm) II X4 955 Processor</div><div>stepping        : 3</div><div>cpu MHz         : 3199.946</div><div>cache size      : 512 KB</div><div>physical id     : 0</div><div>
siblings        : 4</div><div>core id         : 0</div><div>cpu cores       : 4</div><div>apicid          : 0</div><div>initial apicid  : 0</div><div>fpu             : yes</div><div>fpu_exception   : yes</div><div>cpuid level     : 5</div>
<div>wp              : yes</div><div>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save</div>
<div>bogomips        : 6399.89</div><div>TLB size        : 1024 4K pages</div><div>clflush size    : 64</div><div>cache_alignment : 64</div><div>address sizes   : 48 bits physical, 48 bits virtual</div><div>power management: ts ttp tm stc 100mhzsteps hwpstate</div>
<div><br></div><div>processor       : 1</div><div>vendor_id       : AuthenticAMD</div><div>cpu family      : 16</div><div>model           : 4</div><div>model name      : AMD Phenom(tm) II X4 955 Processor</div><div>stepping        : 3</div>
<div>cpu MHz         : 3199.946</div><div>cache size      : 512 KB</div><div>physical id     : 0</div><div>siblings        : 4</div><div>core id         : 1</div><div>cpu cores       : 4</div><div>apicid          : 1</div>
<div>initial apicid  : 1</div><div>fpu             : yes</div><div>fpu_exception   : yes</div><div>cpuid level     : 5</div><div>wp              : yes</div><div>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save</div>
<div>bogomips        : 6400.03</div><div>TLB size        : 1024 4K pages</div><div>clflush size    : 64</div><div>cache_alignment : 64</div><div>address sizes   : 48 bits physical, 48 bits virtual</div><div>power management: ts ttp tm stc 100mhzsteps hwpstate</div>
<div><br></div><div>processor       : 2</div><div>vendor_id       : AuthenticAMD</div><div>cpu family      : 16</div><div>model           : 4</div><div>model name      : AMD Phenom(tm) II X4 955 Processor</div><div>stepping        : 3</div>
<div>cpu MHz         : 3199.946</div><div>cache size      : 512 KB</div><div>physical id     : 0</div><div>siblings        : 4</div><div>core id         : 2</div><div>cpu cores       : 4</div><div>apicid          : 2</div>
<div>initial apicid  : 2</div><div>fpu             : yes</div><div>fpu_exception   : yes</div><div>cpuid level     : 5</div><div>wp              : yes</div><div>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save</div>
<div>bogomips        : 6400.03</div><div>TLB size        : 1024 4K pages</div><div>clflush size    : 64</div><div>cache_alignment : 64</div><div>address sizes   : 48 bits physical, 48 bits virtual</div><div>power management: ts ttp tm stc 100mhzsteps hwpstate</div>
<div><br></div><div>processor       : 3</div><div>vendor_id       : AuthenticAMD</div><div>cpu family      : 16</div><div>model           : 4</div><div>model name      : AMD Phenom(tm) II X4 955 Processor</div><div>stepping        : 3</div>
<div>cpu MHz         : 3199.946</div><div>cache size      : 512 KB</div><div>physical id     : 0</div><div>siblings        : 4</div><div>core id         : 3</div><div>cpu cores       : 4</div><div>apicid          : 3</div>
<div>initial apicid  : 3</div><div>fpu             : yes</div><div>fpu_exception   : yes</div><div>cpuid level     : 5</div><div>wp              : yes</div><div>flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save</div>
<div>bogomips        : 6400.04</div><div>TLB size        : 1024 4K pages</div><div>clflush size    : 64</div><div>cache_alignment : 64</div><div>address sizes   : 48 bits physical, 48 bits virtual</div><div>power management: ts ttp tm stc 100mhzsteps hwpstate</div>
<div><br></div><div><br></div><div>Many Thanks,</div><div>Best Regards,</div><div>Xiangyu LIU</div>