[Xastir-dev] Segfault on list close

Robert Mead rmead at justconnected.net
Thu Jul 22 20:47:23 EDT 2010


Hello all -

Using the latest CVS of Xastir, I get a segfault on closing any of the station list dialog boxes. I'm running Mac OS X 10.6.4 on a multiprocessor machine, which I mention since it seems to be related to threading. While doing a GDB step-through of list_gui.c:station_list_destroy_shell, it does not crash. 

I can't find the offending line, since I think I'm segfaulting somewhere in the Xt code after something's been mistakenly free'd and my gdb-fu is not strong. 

Here's my backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000002e
0x00000001003e31d5 in SortChildren ()
(gdb) backtrace
#0  0x00000001003e31d5 in SortChildren ()
#1  0x00000001003e2374 in DeleteChild ()
#2  0x000000010079ab8b in XtPhase2Destroy ()
#3  0x000000010079ad62 in _XtDoPhase2Destroy ()
#4  0x000000010079e46f in XtDispatchEvent ()
#5  0x000000010079e571 in XtAppMainLoop ()
#6  0x00000001000bb397 in main (argc=1, argv=0x7fff5fbff3a0, envp=<value temporarily unavailable, due to optimizations>) at main.c:27947


I was hoping to come to you all with a patch, but I'm not sufficiently familiar with the codebase yet, nor the Xt code. So, in lieu of a .patch, what can I help you guys with? What else do you need from me?

Thanks a bunch - I love the program and am looking forward to hacking around with it... 

73,
KC2YWE Robert


More information about the Xastir-dev mailing list