[Xastir] Fwd: Canadian Call Sign lookup on Xastir-Ubuntu 10.04 Live CD

James Cameron vk2lqz at wia.org.au
Wed Jul 28 03:51:42 EDT 2010


On Wed, Jul 28, 2010 at 12:17:18AM -0700, Curt, WE7U wrote:
> Way back when it was difficult to run Xastir under GDB because of
> the multi-threading and multi-process nature of Xastir.  I seem to
> recall having to add a patch to GDB or to DDD or UPS debuggers at
> the time in order to allow them to follow a fork or a thread.

Ah yes, those were the days, when punched cards were the thing.  ;-)

> Hopefully that situation is resolved by this point and the debugger
> binaries have the necessary code in them already to deal with such
> matters.  It's been a while since I had to debug at that level in C.

I've just checked, and gdb followed the threads fine on an invokation of
xastir ... and it was fairly easy to figure out what it was up to:

*** Reading WX Alert log files
*** Done with WX Alert log files
[New Thread 0xb7faab70 (LWP 10597)]
[Thread 0xb7faab70 (LWP 10597) exited]
[New Thread 0xb7faab70 (LWP 10598)]
[New Thread 0xb77a9b70 (LWP 10599)]
[New Thread 0xb6fa8b70 (LWP 10601)]
[Thread 0xb6fa8b70 (LWP 10601) exited]
[New Thread 0xb6fa8b70 (LWP 10602)]
[New Thread 0xb67a7b70 (LWP 10603)]
^C
Program received signal SIGINT, Interrupt.
0xb7fff424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fff424 in __kernel_vsyscall ()
#1  0x45b3f916 in *__GI___poll (fds=<value optimized out>, 
    nfds=<value optimized out>, timeout=<value optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x468534f7 in _XtWaitForSomething () from /usr/lib/libXt.so.6
#3  0x4685495b in XtAppNextEvent () from /usr/lib/libXt.so.6
#4  0x468472ac in XtAppMainLoop () from /usr/lib/libXt.so.6
#5  0x0810b495 in main ()
(gdb) info threads
  7 Thread 0xb67a7b70 (LWP 10603)  0xb7fff424 in __kernel_vsyscall ()
  6 Thread 0xb6fa8b70 (LWP 10602)  0xb7fff424 in __kernel_vsyscall ()
  4 Thread 0xb77a9b70 (LWP 10599)  0xb7fff424 in __kernel_vsyscall ()
  3 Thread 0xb7faab70 (LWP 10598)  0xb7fff424 in __kernel_vsyscall ()
* 1 Thread 0xb7fd7750 (LWP 10591)  0xb7fff424 in __kernel_vsyscall ()
(gdb) thread 4
[Switching to thread 4 (Thread 0xb77a9b70 (LWP 10599))]#0  0xb7fff424 in
__kernel_vsyscall ()
(gdb) bt
#0  0xb7fff424 in __kernel_vsyscall ()
#1  0x45b46291 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x08099fe5 in port_write ()
#3  0x0809a083 in write_access_port_thread ()
#4  0x45bfd955 in start_thread (arg=<value optimized out>)
    at pthread_create.c:300
#5  0x45b4d10e in clone () at
../sysdeps/unix/sysv/linux/i386/clone.S:130
(gdb) 

$ gdb --version
GNU gdb (GDB) 7.0.1-debian

-- 
James Cameron
http://quozl.linux.org.au/



More information about the Xastir mailing list