[Pkg-octave-devel] Hi, Dear Debian octave team

Xiangyu Liu u122334 at gmail.com
Fri Dec 30 11:49:30 UTC 2011


Hi, Dear Debian octave devel team

Happy New Year!

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.

But when I call the imread and imshow function to load a JPEG picture, I
encountered a segmentation fault problem like following :


% -------------------- imread seg fault ----------------------

octave-3.2.4:1> imread('/home/mywork/temp/pic/003.jpg')
octave-3.2.4: magick/pixel_cache.c:2765:ModifyCache: Assertion
"image->cache != (Cache) ((void *)0)” failed
panic: Aborted -- stopping myself...

% -------------------- imread seg fault ----------------------


% -------------------- imshow seg fault ----------------------
octave-3.2.4:1> imshow('/home/liuxiangyu/temp/pic/003.jpg')
panic: Segmentation fault -- stopping myself...
Segmentation fault
% -------------------- imshow seg fault ----------------------

I don't know where I can find the reason, so I do some compiling
experiments.

I tried to compile the lastest octave-3.4.3 manually. I downloaded the
source tar ball from www.octave.org 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.

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.

So I send this mail to you to look for help, any advice or comment from you
would be most welcome.

Following are some informations about my PC, gcc, CPU.

$ dpkg --list | grep octave
ii  octave3.2    3.2.4-12    GNU Octave language for numerical computations
(3.2 branch)
ii  octave3.2-common   3.2.4-12     architecture-independent files for
octave3.2


$ dpkg --list | grep graphicsmagick
ii  libgraphicsmagick++3   1.3.12-1.1+b1  format-independent image
processing - C++ shared library
ii  libgraphicsmagick3    1.3.12-1.1+b1    format-independent image
processing - C shared library


$ uname -a
Linux F117A 3.1.0-1-amd64 #1 SMP Sun Dec 11 20:36:41 UTC 2011 x86_64
GNU/Linux


$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
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
Thread model: posix
gcc version 4.6.2 (Debian 4.6.2-9)

cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 4
model name      : AMD Phenom(tm) II X4 955 Processor
stepping        : 3
cpu MHz         : 3199.946
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
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
bogomips        : 6399.89
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 4
model name      : AMD Phenom(tm) II X4 955 Processor
stepping        : 3
cpu MHz         : 3199.946
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
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
bogomips        : 6400.03
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 4
model name      : AMD Phenom(tm) II X4 955 Processor
stepping        : 3
cpu MHz         : 3199.946
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
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
bogomips        : 6400.03
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 4
model name      : AMD Phenom(tm) II X4 955 Processor
stepping        : 3
cpu MHz         : 3199.946
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
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
bogomips        : 6400.04
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate


Many Thanks,
Best Regards,
Xiangyu LIU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20111230/6a848928/attachment-0001.html>


More information about the Pkg-octave-devel mailing list