[argyllcms] Re: Dispread segmentation fault
- From: Klaus Karcher <lists@xxxxxxxxxxxxxxxxx>
- To: argyllcms@xxxxxxxxxxxxx
- Date: Mon, 25 Aug 2008 19:26:11 +0200
Graeme Gill wrote:
Ah - I turned debugging on, and optimization off, so it's probably
a compiler optimization bug that's the problem, which is why it
went away. Do you have gdb on your system (Gnu Debugger see
<http://en.wikipedia.org/wiki/GDB>) ?
Try running it from the command line to see. I would
have thought it would ship in the default OS X installation.
I've updated <http://www.argyllcms.com/dispread_ppc_debug.tgz>
with both optimization on, and debugging symbols, so see if
that gives a segmentation fault and a backtrace.
Graeme Gill.
here is my gdb session:
Power Mac G5 Quad
MacOS X 10.4.11
eye-one pro Rev A
Klaus:~ klaus$ targen -d3 -f0 test
Klaus:~ klaus$ gdb dispread_debug2
GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:54:33 GMT
2006)
Copyright 2004 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 "powerpc-apple-darwin"...Reading symbols for
shared libraries ..... done
(gdb) run -v -yl -D test
Starting program: /Users/klaus/dispread_debug2 -v -yl -D test
Reading symbols for shared libraries
................................................................ done
Found 2 screens
Number of patches = 11
Setting up the instrument
Reading symbols for shared libraries . done
i1pro: About to init coms
i1pro: About to init USB
icoms: About to set usb port characteristics
icoms: About to open the USB port
icoms: USB port needs opening
icoms: About to open USB port 'usb:/bus43/dev0 (GretagMacbeth i1 Pro)'
icoms: USB port is now open
icoms: Clearing any USB errors
icoms: usb port characteristics set ok
i1pro: init coms has suceeded
i1pro: About to init instrument
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMisc
GetMisc returns 101, 0x0000, 0xe000, 0x01, 0x08 ICOM err 0x0
Firmware rev = 101
i1pro: Read EEProm address 0x0 size 0x2000
Read 0x2000 bytes, ICOM err 0x0
CPLD rev = 101
i1pro: GetMisc
GetMisc returns 101, 0x0000, 0xe000, 0x01, 0x00 ICOM err 0x0
i1pro: Instrument reset with mask 0x1f
Reset complete, ICOM err 0x0
i1pro: GetMeasureParams
MeasureParam returns 300, 20, 1, 0x04 ICOM err 0x0
Instrument Type: Eye-One Pro
Serial Number: 102239
Firmware version: 101
CPLD version: 101
Date manufactured: 30-4-2002
U.V. filter ?: No
Measure Ambient ?: No
Tot. Measurement Count: 42468
Remission Spot Count: 10605
Remission Scan Count: 3225
Date of last Remission spot cal: Mon Aug 25 11:55:07 2008
Remission Spot Count at last cal: 10602
Total lamp usage: 42015.246094
Display size = 440.000000 x 330.000000 mm
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
dispwin_set_color called
dispwin_get_ramdac called
dispwin_get_ramdac called
inst_handle_calibrate called
About to call calibrate at top of loop
Place cap on the instrument, or place in on a dark surface,
or place on the white calibration reference,
and then hit any key to continue,
or hit Esc, ^C or Q to abort:
i1pro: Read 1 byte from switch hit port
About to call calibrate at top of loop
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2026 -11)
Execution time of dark calib time 1.000008 sec = 2027 msec
i1pro: SetMeasureParam 29412, 23, 1, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 1, scanflag 0, address 0x60e8d0
bsize 0x100
Read 1 readings, ICOM err 0x0
(Trig & rd times 1 -11 2025 -11)
Execution time of 2nd dark calib time 1.000008 sec = 2027 msec
Calibration complete
inst_handle_calibrate done 0x0
Place instrument on test window.
Hit Esc, ^C or Q to give up, any other key to continue:
dispwin_set_color called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 0 -10 2023 -10)
patch 1 of 11About to read patch 0
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2024 -11)
got reading abs. 213.218268 221.052053 176.956013, transfering to col
on to next reading
patch 2 of 11About to read patch 1
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 2 -12 2023 -12)
got reading abs. 213.271594 221.072817 176.989541, transfering to col
on to next reading
patch 3 of 11About to read patch 2
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2024 -11)
got reading abs. 213.297940 221.086665 176.983339, transfering to col
on to next reading
patch 4 of 11About to read patch 3
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 2 -12 2023 -12)
got reading abs. 213.330074 221.122558 177.012505, transfering to col
on to next reading
patch 5 of 11About to read patch 4
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2024 -11)
got reading abs. 0.594516 0.558938 0.928224, transfering to col
on to next reading
patch 6 of 11About to read patch 5
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2023 -11)
got reading abs. 111.188196 56.225804 5.766345, transfering to col
on to next reading
patch 7 of 11About to read patch 6
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2023 -11)
got reading abs. 78.410824 157.854797 23.006554, transfering to col
on to next reading
patch 8 of 11About to read patch 7
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2027 -11)
got reading abs. 187.572020 211.470692 27.567187, transfering to col
on to next reading
patch 9 of 11About to read patch 8
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 0 -10 2021 -10)
got reading abs. 27.936303 11.731483 151.454102, transfering to col
on to next reading
patch 10 of 11About to read patch 9
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 1 -11 2024 -11)
got reading abs. 137.809483 67.010324 156.543490, transfering to col
on to next reading
patch 11 of 11About to read patch 10
dispwin_set_color called
Taking 1 measurments in Emission mode called
i1pro: SetMeasureParam 14706, 23, 2, 0x06
SetMeasureParams got ICOM err 0x0
i1pro: Triggering measurement after 10msec delay
Scheduled triggering OK
i1pro: Read measurement results inummeas 2, scanflag 0, address
0x1819000 bsize 0x200
Read 2 readings, ICOM err 0x0
(Trig & rd times 2 -12 2027 -12)
got reading abs. 105.296350 168.262591 172.535000, transfering to col
on to next reading
The instrument can be removed from the screen.
i1pro: Write EEProm address 0x0 size 0x428
(NOT) Write 0x428 bytes, ICOM err 0x0
i1pro: Write EEProm address 0x800 size 0x428
(NOT) Write 0x428 bytes, ICOM err 0x0
i1pro: Terminate switch Handling
i1pro: Warning: Terminate Switch Handling failed with ICOM err 0x200
i1pro: Switch read failed with ICOM err 0x4000
icoms: delete called
icoms: closing port
usb_close_port() called
usb port has been released and closed
dispwin_set_ramdac called
dispwin_del called
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x7ffe6ef4
0x000048a4 in main (argc=25213952, argv=0x1803600) at dispread.c:662
662 dispread.c: No such file or directory.
in dispread.c
(gdb) bt
#0 0x000048a4 in main (argc=25213952, argv=0x1803600) at dispread.c:662
(gdb) q
The program is running. Exit anyway? (y or n) y
Klaus:~ klaus$
... ähm ... Klaus ;-)
- Follow-Ups:
- [argyllcms] Re: Dispread segmentation fault
- From: Graeme Gill
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- References:
- [argyllcms] Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Florian Höch
- [argyllcms] Re: Dispread segmentation fault
- From: Gerhard Gaußling
- [argyllcms] Re: Dispread segmentation fault
- From: Florian Höch
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Graeme Gill
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Graeme Gill
Other related posts:
- » [argyllcms] Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
- » [argyllcms] Re: Dispread segmentation fault
Ah - I turned debugging on, and optimization off, so it's probably a compiler optimization bug that's the problem, which is why itwent away. Do you have gdb on your system (Gnu Debugger see <http://en.wikipedia.org/wiki/GDB>) ?
Try running it from the command line to see. I would have thought it would ship in the default OS X installation. I've updated <http://www.argyllcms.com/dispread_ppc_debug.tgz> with both optimization on, and debugging symbols, so see if that gives a segmentation fault and a backtrace. Graeme Gill.
- [argyllcms] Re: Dispread segmentation fault
- From: Graeme Gill
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Florian Höch
- [argyllcms] Re: Dispread segmentation fault
- From: Gerhard Gaußling
- [argyllcms] Re: Dispread segmentation fault
- From: Florian Höch
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Graeme Gill
- [argyllcms] Re: Dispread segmentation fault
- From: Martin Weberg
- [argyllcms] Re: Dispread segmentation fault
- From: Graeme Gill