[argyllcms] logo2cgats -2
- From: Klaus Karcher <lists@xxxxxxxxxxxxxxxxx>
- To: argyllcms@xxxxxxxxxxxxx
- Date: Sun, 16 Jul 2006 22:05:41 +0200
Hi Graeme,
I stumbled across an old bug in logo2cgats -- it seems to dislike the
"-2" flag:
klaus:~ klaus$ curl -O http://www.color.org/FOGRA27L.txt
klaus:~ klaus$ logo2cgats -2 FOGRA27L.txt FOGRA27
Segmentation fault
since you didn't release v0.60 yet (although I told you to do so ;-)
maybe this is an opportunity to fix it.
Attached you find some debugging info.
I hope this helps,
Klaus
curl -O http://www.color.org/FOGRA27L.txt
logo2cgats -2 FOGRA27L.txt FOGRA27
Segmentation fault
(this also happens with argyll 0.53)
---
crash report:
Path: /Applications/argyll/argyll_dev0.60b4_bin/logo2cgats
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xc0163d70
Thread 0 Crashed:
0 logo2cgats 0x0000a290 cgats_write + 3408
1 logo2cgats 0x00006488 cgats_write_name + 120
2 logo2cgats 0x00004ddc main + 11068
3 logo2cgats 0x000019b4 _start + 340 (crt.c:272)
4 logo2cgats 0x0000185c start + 60
---
some debugging info:
Last login: Sun Jul 16 21:24:08 on ttyp7
Welcome to Darwin!
klaus:~ klaus$ cd ~/Desktop/argyll0.60b4-debug
klaus:~/Desktop/argyll0.60b4-debug klaus$ curl -O
http://www.color.org/FOGRA27L.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 113k 100 113k 0 0 71312 0 0:00:01 0:00:01 --:--:-- 89010
klaus:~/Desktop/argyll0.60b4-debug klaus$ which logo2cgats
/Applications/argyll/argyllV0.53_osx10.3_bin/bin/logo2cgats
klaus:~/Desktop/argyll0.60b4-debug klaus$ logo2cgats -2 FOGRA27L.txt test
Segmentation fault
klaus:~/Desktop/argyll0.60b4-debug klaus$ ls -all
total 392
drwxr-xr-x 5 klaus klaus 170 Jul 16 21:27 .
drwx------ 50 klaus klaus 1700 Jul 16 21:24 ..
-rw-r--r-- 1 klaus klaus 116426 Jul 16 21:26 FOGRA27L.txt
-rw-r--r-- 1 klaus klaus 0 Jul 16 21:27 test.ti2
-rw-r--r-- 1 klaus klaus 81055 Jul 16 21:27 test.ti3
klaus:~/Desktop/argyll0.60b4-debug klaus$ rm test.ti*
klaus:~/Desktop/argyll0.60b4-debug klaus$ gdb -q
/Applications/argyll/argyll_dev0.60b4-2_src/profile/logo2cgats
Reading symbols for shared libraries ..... done
(gdb) run -2 FOGRA27L.txt test
Starting program:
/Applications/argyll/argyll_dev0.60b4-2_src/profile/logo2cgats -2 FOGRA27L.txt
test
Reading symbols for shared libraries
................................................................ done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xc0163d70
0x0000a290 in cgats_write (p=0x1808c00, fp=0x3e0860) at cgats.c:1442
1442 } else if (t->ftype[field] == nqcs_t
(gdb) bt
#0 0x0000a290 in cgats_write (p=0x1808c00, fp=0x3e0860) at cgats.c:1442
#1 0x00006488 in cgats_write_name (p=0x1808c00, filename=0x62910 "test.ti2")
at cgatsstd.c:105
#2 0x00004ddc in main (argc=5940, argv=0x3e0860) at logo2cgats.c:706
(gdb) print *t
$1 = {
al = 0x3e0560,
tt = tt_other,
oi = 0,
nkwords = 7,
nfields = 9,
nsets = 1485,
ksym = 0x3a6500,
kdata = 0x3e05d0,
fsym = 0x3e0800,
ftype = 0x3e0830,
fdata = 0x180c000,
nkwordsa = 8,
nfieldsa = 12,
nsetsa = 1500,
kcom = 0x3e05f0,
ndf = 0,
sup_id = 0,
sup_kwords = 0,
sup_fields = 0
}
(gdb) print t->fdata[0][0]
Cannot access memory at address 0xc0163d70
(gdb) quit
The program is running. Exit anyway? (y or n) y
klaus:~/Desktop/argyll0.60b4-debug klaus$ ls -all
total 408
drwxr-xr-x 6 klaus klaus 204 Jul 16 21:39 .
drwx------ 50 klaus klaus 1700 Jul 16 21:24 ..
-rw------- 1 klaus klaus 63 Jul 16 21:39 .gdb_history
-rw-r--r-- 1 klaus klaus 116426 Jul 16 21:26 FOGRA27L.txt
-rw-r--r-- 1 klaus klaus 0 Jul 16 21:37 test.ti2
-rw-r--r-- 1 klaus klaus 82699 Jul 16 21:37 test.ti3
klaus:~/Desktop/argyll0.60b4-debug klaus$
- Follow-Ups:
- [argyllcms] Re: logo2cgats -2
- From: Graeme Gill
Other related posts:
- » [argyllcms] logo2cgats -2
- » [argyllcms] Re: logo2cgats -2
- [argyllcms] Re: logo2cgats -2
- From: Graeme Gill