This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Insight 6.4 GUI does not start on Mac OS X
WRT the "missing" itcl/itk files, did you check for the existence
of itcl.tcl and itk.tcl in the directories insight said it was
looking for them? This should be relatively easy to fix.
Right. That shouldn't be a big deal.
WRT insight just exiting, your best bet is to run insight under
command-line gdb and set a break at exit. Then run and take a peek
at the stack trace. That should be enough to tell you why Insight
is exiting.
I did that and got the following backtrace:
(gdb) fil powerpc-eabi-insight
Reading symbols for shared libraries ........ done
Reading symbols from /usr/local/embedded/powerpc-eabi/bin/powerpc-
eabi-insight...done.
(gdb) b exit
Breakpoint 1 at 0x900145a0
(gdb) r
Starting program: /usr/local/embedded/powerpc-eabi/bin/powerpc-eabi-
insight
Reading symbols for shared
libraries ..............................................................
.... done
Breakpoint 1, 0x900145a0 in exit ()
(gdb) bt
#0 0x900145a0 in exit ()
#1 0x00001cbc in _start (argc=1, argv=0xbffff6c0, envp=0xbffff6c8)
at /SourceCache/Csu/Csu-58/crt.c:272
#2 0x00001b60 in start ()
(gdb)
I examined the instruction at 0x1b60 using otool and found out that
it is a trap. But this code stems from gcc's startup chore, doesn't
it? Great. I guess I need to dig deeper down.
/usr/local/embedded/powerpc-eabi/bin/powerpc-eabi-insight:
(__TEXT,__text) section
start:
00001b24 or r26,r1,r1
00001b28 addi r1,r1,0xfffc
00001b2c rlwinm r1,r1,0,0,26
00001b30 li r0,0x0
00001b34 stw r0,0x0(r1)
00001b38 stwu r1,0xffc0(r1)
00001b3c lwz r3,0x0(r26)
00001b40 addi r4,r26,0x4
00001b44 addi r27,r3,0x1
00001b48 rlwinm r27,r27,2,0,29
00001b4c add r5,r4,r27
00001b50 lis r11,0x0
00001b54 ori r11,r11,0x1b64
00001b58 mtspr ctr,r11
00001b5c bctrl
00001b60 trap
__start:
00001b64 mfspr r0,lr
00001b68 stmw r28,0xfff0(r1)
[snip]
Any ideas? It seems to me that this might be an OS X specific
problem. I'll keep working on it tonight, so let's get us another
coffee ;)
Cheers,
Hermann