R: R: R: R: XForms: More on the subject of threads

From: Paolo Prandini (prandini@spe.it)
Date: Sat Jun 17 2000 - 08:52:58 EDT

  • Next message: Steve Lamont: "Re: XForms: More on the subject of threads"

    # To subscribers of the xforms list from "Paolo Prandini" <prandini@spe.it> :

    Dear Steve, thank you again ( I am afraid I repeat myself too
    much...)
    Anyway here is the back trace of the test program after being
    locked with a keypress:

    (gdb) bt
    #0 0x4022a24a in sigsuspend () from /lib/libc.so.6
    #1 0x401a0d89 in __pthread_lock (lock=0x804dc28, self=0x401a7200)
        at restart.h:32
    #2 0x4019e976 in __pthread_mutex_lock (mutex=0x804dc18) at mutex.c:84
    #3 0x40128931 in _XLockDisplay () from /usr/X11R6/lib/libX11.so.6
    #4 0x4013170b in XkbGetUpdatedMap () from /usr/X11R6/lib/libX11.so.6
    #5 0x401317a8 in XkbGetMap () from /usr/X11R6/lib/libX11.so.6
    #6 0x4012e9fc in _XkbLoadDpy () from /usr/X11R6/lib/libX11.so.6
    #7 0x4012ee92 in XLookupString () from /usr/X11R6/lib/libX11.so.6
    #8 0x4014dda1 in _XimLocalFilter () from /usr/X11R6/lib/libX11.so.6
    #9 0x401282cd in XFilterEvent () from /usr/X11R6/lib/libX11.so.6
    #10 0x4004da18 in fl_XLookupString () from /usr/local/lib/libforms.so.0.89
    #11 0x4004bad7 in do_keyboard () from /usr/local/lib/libforms.so.0.89
    #12 0x4004c250 in do_interaction_step () from
    /usr/local/lib/libforms.so.0.89
    #13 0x4004c8ba in fl_treat_interaction_events ()
       from /usr/local/lib/libforms.so.0.89
    #14 0x4004c8f4 in fl_check_forms () from /usr/local/lib/libforms.so.0.89
    #15 0x8048ef7 in fl_set_button ()
    #16 0x402242e7 in __libc_start_main () from /lib/libc.so.6
    (gdb)
    It seems locked in Xlib, after calling XFilterEvent, do you agree?
    I hope you have a suggestion...

    > -----Messaggio originale-----
    > Da: owner-xforms@bob.usuhs.mil [mailto:owner-xforms@bob.usuhs.mil]Per
    > conto di Steve Lamont
    > Inviato: venerd́ 16 giugno 2000 18:11
    > A: xforms@bob.usuhs.mil
    > Oggetto: Re: R: R: R: XForms: More on the subject of threads
    >
    >
    > # To subscribers of the xforms list from Steve Lamont
    > <spl@blinky.UCSD.Edu> :
    >
    > > Hey I can't get a core dump just to traceback where
    > > the program hung in Linux 2.2! ...
    >
    > Hm. Then you should be able to use `gdb' to attach to the app on the fly:
    >
    > gdb your_app
    > gdb> attach {pid}
    >
    > Then you can grovel around in the standard manner (that is, assuming that
    > the Linux `gdb' understands threads -- some versions support
    > threads better
    > than others -- the SGI version of `gdb', if I recall correctly doesn't,
    > for example).
    >
    > spl
    > _________________________________________________
    > To unsubscribe, send the message "unsubscribe" to
    > xforms-request@bob.usuhs.mil or see
    > http://bob.usuhs.mil/mailserv/xforms.html
    > XForms Home Page: http://world.std.com/~xforms
    > List Archive: http://bob.usuhs.mil/mailserv/list-archives/
    >

    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Sat Jun 17 2000 - 09:03:33 EDT