$ gdb ./dispwinGNU gdb 6.1-20040303 (Apple version gdb-437) (Fri Jan 13 18:45:48 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 "i386-apple-darwin"...Reading symbols for shared libraries ..... done
(gdb) runStarting program: /Users/ot521andrejj/Desktop/Bris/argyll_dev_src/bin/ dispwin Reading symbols for shared libraries .............................................................. ... done
Reading symbols for shared libraries . done Found 1 screens Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x00002589 in get_displays () (gdb) bt #0 0x00002589 in get_displays () #1 0x00002989 in get_a_display () #2 0x00003f6b in main () (gdb) quit The program is running. Exit anyway? (y or n) y Hope this suffice! Regards Andrej On 2007.4.20, at 13:03, Graeme Gill wrote:
Andrej Javoršek wrote:I can observe same problem on G5 iMac with 10.4.9 and it doesn't matter if I use pre-compiled or self compiled binaries.How to enable debugging?The best way of providing some more detailed information is: Turn off optimization, and turn on debugging symbols in the spectro/Jamfile, ie: Change this CCFLAGS += $(CCOPTFLAG) ; # Turn optimisation on #CCFLAGS += $(CCDEBUGFLAG) ; # Debugging flags to this #CCFLAGS += $(CCOPTFLAG) ; # Turn optimisation on CCFLAGS += $(CCDEBUGFLAG) ; # Debugging flags Change spectro/dispwin.c line 55 from this #undef DEBUG to this: #define DEBUG and recompile the spectro directory - ie; rm *.o jam Run dispwin using the debugger, and get a backtrace at the point it fails - ie: gdb dispwin (gdb) run on crash: (gdb) bt to quit: (gdb) quit And relay the debug messages and the backtrace. thanks, Graeme Gill.