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

Re:libthread



hi
I tried to write a translator using netfs....the translator is loading
but when a filesystem request comes in it crashes....

> I got the following error: when traced with gdb
> > Program Received Signal
> EXC_BAD_INSTRUCTION
> Illegal Instruction/Operand in cthread_fork_child() from /lib/libthreads.so.0.2
> > Is it a bug in libthreads or my program.

> > > > I tried to trace it with gdb, set the break point of netfs_demuxer.
> > > > Before setting break points, you can try just to catch the crash
in
> > gdb. 
> > You managed to do this because apparently the break point was not
reached.
> > (gdb) bt

> gives:
> #0 0x......  cthread_fork_child() from /lib/libthreads.so.0.2
> #1 0x......  alloc_stack() from /lib/libthreads.so.0.2
> #2 0x......  cproc_create() from /lib/libthreads.so.0.2
> #4 0x......  cthread_fork() from /lib/libthreads.so.0.2
> #5 0x......  ports_manage_port_operations_one_thread() from /lib/libports.so.0.2
> #6 0x......  mach_msg_server_timeout() from /lib/libc.so.0.2
> #7 0x......  ports_manage_port_operations_one_thread() from /lib/libports.so.0.2
> #8 0x......  ports_manage_port_operations_multi_thread() from /lib/libports.so.0.2
> #9 0x......  netfs_server_loop() from /lib/libnetfs.so.0.2
> #10 0x......  main(argc=x,argv=xxxx) at mypgm
> #11 0x......  __libc_start_main() from /lib/libc.so.0.2
> > I have installed Hurd using Debian CDs.





-- 
Justin  Langer
jlanger@onebox.com - email




__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com



Reply to: