[argyllcms] bug in scanin?

  • From: "Guy K. Kloss" <G.Kloss@xxxxxxxxxxxx>
  • To: ArgyllCMS mailing list <argyllcms@xxxxxxxxxxxxx>
  • Date: Tue, 5 Feb 2008 17:46:06 +1300

Hi,

I've been busy trying to generate chart definition files using scanin. Testing 
the result once I've hit the wrong files on the command line and got a 
program error. Usually if the input file does not match the chart I just got 
a 

"""
../argyll-0.7b8/bin/scanin: Error - Code 0x2, Pattern match wasn't good enough
"""

But in one case the application crashed with a "double free or corruption". 
Here's the output gdb gave me. I have not undertaken the venture of building 
binaries with debug symbols, or anything else. BTW, it's running on an Ubuntu 
Gutsy 32 bit system, using argyll-0.7b8.

Here underneath is the output. For further info ... feel free to ask :)

Guy


gkloss@it041227:~/tmp/targets$ gdb ../argyll-0.7b8/bin/scanin
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run -o -dionap Target003_noFlash.tif WolfFaustC1.cht diag.tif
Starting program: /home/gkloss/tmp/argyll-0.7b8/bin/scanin -o -dionap 
Target003_noFlash.tif WolfFaustC1.cht diag.tif
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210583376 (LWP 26605)]
(no debugging symbols found)
*** glibc detected *** /home/gkloss/tmp/argyll-0.7b8/bin/scanin: double free 
or corruption (!prev): 0x08212d18 ***
(no debugging symbols found)
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7de9d65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7ded800]
/home/gkloss/tmp/argyll-0.7b8/bin/scanin[0x80519bc]
/home/gkloss/tmp/argyll-0.7b8/bin/scanin[0x8055fe0]
/home/gkloss/tmp/argyll-0.7b8/bin/scanin[0x8049ce1]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7d96050]
/home/gkloss/tmp/argyll-0.7b8/bin/scanin[0x8049145]
======= Memory map: ========
08048000-080b3000 r-xp 00000000 08:02 
2524203    /home/gkloss/tmp/argyll-0.7b8/bin/scanin
080b3000-080b6000 rw-p 0006b000 08:02 
2524203    /home/gkloss/tmp/argyll-0.7b8/bin/scanin
080b6000-0822e000 rw-p 080b6000 00:00 0          [heap]
b7a00000-b7a21000 rw-p b7a00000 00:00 0
b7a21000-b7b00000 ---p b7a21000 00:00 0
b7b5c000-b7b66000 r-xp 00000000 08:02 4292918    /lib/libgcc_s.so.1
b7b66000-b7b67000 rw-p 0000a000 08:02 4292918    /lib/libgcc_s.so.1
b7b67000-b7d80000 rw-p b7b67000 00:00 0
b7d80000-b7ec4000 r-xp 00000000 08:02 
4326885    /lib/tls/i686/cmov/libc-2.6.1.so
b7ec4000-b7ec5000 r--p 00143000 08:02 
4326885    /lib/tls/i686/cmov/libc-2.6.1.so
b7ec5000-b7ec7000 rw-p 00144000 08:02 
4326885    /lib/tls/i686/cmov/libc-2.6.1.so
b7ec7000-b7ecb000 rw-p b7ec7000 00:00 0
b7ecb000-b7edf000 r-xp 00000000 08:02 
4326899    /lib/tls/i686/cmov/libpthread-2.6.1.so
b7edf000-b7ee1000 rw-p 00013000 08:02 
4326899    /lib/tls/i686/cmov/libpthread-2.6.1.so
b7ee1000-b7ee3000 rw-p b7ee1000 00:00 0
b7ee3000-b7f06000 r-xp 00000000 08:02 
4326889    /lib/tls/i686/cmov/libm-2.6.1.so
b7f06000-b7f08000 rw-p 00023000 08:02 
4326889    /lib/tls/i686/cmov/libm-2.6.1.so
b7f2b000-b7f2d000 rw-p b7f2b000 00:00 0
b7f2d000-b7f47000 r-xp 00000000 08:02 4293223    /lib/ld-2.6.1.so
b7f47000-b7f49000 rw-p 00019000 08:02 4293223    /lib/ld-2.6.1.so
bfbb4000-bfbca000 rw-p bfbb4000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]

Program received signal SIGABRT, Aborted.
[Switching to Thread -1210583376 (LWP 26605)]
0xffffe410 in __kernel_vsyscall ()
(gdb)

-- 
Guy K. Kloss
Institute of Information and Mathematical Sciences
Te Kura Putaiao o Mohiohio me Pangarau
Room 2.63, Quad Block A Building
Massey University, Auckland, Albany
Private Bag 102 904, North Shore Mail Centre
voice: +64 9 414-0800 ext. 9585   fax: +64 9 441-8181
eMail: G.Kloss@xxxxxxxxxxxx  http://www.massey.ac.nz/~gkloss/

Other related posts: