pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: weird glib2 pthread error



On Wed, Aug 15, 2012 at 02:37:22PM +0200, Martin Husemann wrote:
> On Wed, Aug 15, 2012 at 02:24:42PM +0200, Thomas Klausner wrote:
> > Another problem in py-anki:
> > QThread::start: Thread creation error: Resource temporarily unavailable
> >  Thomas
> 
> How many lwps does the process have at this point?
> There is a new resource limit for those.

I don't know.
I've started gdb on the process and got
Loaded symbols for /usr/libexec/ld.elf_so
/archive/cvs/src/external/gpl3/gdb/dist/gdb/thread.c:81: internal-error: struct 
thread_info *inferior_thread(): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
/archive/cvs/src/external/gpl3/gdb/dist/gdb/thread.c:81: internal-error: struct 
thread_info *inferior_thread(): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
A program is being debugged already.  Kill it? (y or n) n
Program not killed.

When I do "gdb gdb gdb.core" ;) I see
#0  0x00007f7ff590d9da in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007f7ff590d9da in _lwp_kill () from /usr/lib/libc.so.12
#1  0x00007f7ff590d60b in abort () at 
/archive/cvs/src/lib/libc/stdlib/abort.c:74
#2  0x00000000004afe41 in dump_core () at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/utils.c:1053
#3  0x00000000004abdc0 in internal_vproblem (problem=<optimized out>, 
file=<optimized out>, line=<optimized out>, fmt=<optimized out>, ap=<optimized 
out>)
    at /archive/cvs/src/external/gpl3/gdb/dist/gdb/utils.c:1221
#4  0x00000000004ababc in internal_verror (file=0x6 <Address 0x6 out of 
bounds>, line=0, fmt=0x7f7ff590d9da "r\001��\016", ap=0x101010101010101) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/utils.c:1236
#5  0x00000000004aae64 in internal_error (file=0x1 <Address 0x1 out of bounds>, 
line=6, string=0x0) at /archive/cvs/src/external/gpl3/gdb/dist/gdb/utils.c:1246
#6  0x000000000040b161 in is_thread_state (state=<optimized out>, 
state=<optimized out>, ptid=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/thread.c:620
#7  is_exited (ptid=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/thread.c:633
#8  thread_command (tidstr=<optimized out>, from_tty=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/thread.c:1278
#9  0x00000000004b02eb in execute_command (p=0x7f7ff7b25087 "", 
from_tty=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/top.c:428
#10 0x0000000000504ef8 in command_handler (command=0x7f7ff7b25080 "thread ") at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/event-top.c:499
#11 0x0000000000504e27 in command_line_handler (rl=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/event-top.c:710
#12 0x000000000062f008 in rl_callback_read_char () at 
/archive/cvs/src/external/gpl3/gdb/dist/readline/callback.c:205
#13 0x0000000000504999 in rl_callback_read_char_wrapper (client_data=0x1) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/event-top.c:177
#14 0x0000000000505227 in process_event () at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/event-loop.c:402
#15 gdb_do_one_event (data=0x1) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/event-loop.c:467
#16 0x0000000000407c75 in catch_errors (func=0x504f10 <gdb_do_one_event>, 
func_args=0x0, errstring=0x68bb4d "", mask=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/exceptions.c:521
#17 0x0000000000519a76 in tui_command_loop (data=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/tui/tui-interp.c:172
#18 0x00000000004067e9 in captured_command_loop (data=0x1) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/main.c:228
#19 0x0000000000407c75 in catch_errors (func=0x4067e0 <captured_command_loop>, 
func_args=0x0, errstring=0x68bb4d "", mask=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/exceptions.c:521
#20 0x0000000000406326 in captured_main (data=0x7f7fffffd4a0) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/main.c:936
#21 0x0000000000407c75 in catch_errors (func=0x4057c0 <captured_main>, 
func_args=0x7f7fffffd4a0, errstring=0x68bb4d "", mask=<optimized out>) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/exceptions.c:521
#22 0x00000000004057b7 in gdb_main (args=0x0) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/main.c:945
#23 0x0000000000405786 in main (argc=<optimized out>, argv=0x6) at 
/archive/cvs/src/external/gpl3/gdb/dist/gdb/gdb.c:35

If I start anki directly in gdb, I don't see the error, but the splash
screen doesn't progress any further than outside, and I can't ctrl-c
into gdb (nor does "kill -INT <gdbpid>" work).
  Thomas


Home | Main Index | Thread Index | Old Index