libthread
hi, I tried to implement a translator using libnetfs... .the program is loading correctlybut when a file system request comes in it is crashing. I tried to trace it with gdb, set the break point of netfs_demuxer. I got the following error: 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. Can any one help me in Fixing it? or any clues about the possible error that might have occured in the program? Thanks, -- Justin Langer [EMAIL PROTECTED] - email __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd
Re:libthread
hi I tried to write a translator using netfsthe 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=) at mypgm > #11 0x.. __libc_start_main() from /lib/libc.so.0.2 > > I have installed Hurd using Debian CDs. -- Justin Langer [EMAIL PROTECTED] - email __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd
Re: libthread fresh findings
hai, I tried to run the Hello-World Translator Multi-threaded version. (hello-mt.c). I got the pgm from cvs. hurd~# settrans -ac test hello-mt But the program is crashing when a file system request comes (cat or ls -l)in. The error caught with gdb is: Program Received Signal EXC_BAD_INSTRUCTION Illegal Instruction/Operand in cthread_fork_child () from /lib/libthreads.so.0.2 - This is the same error i got with a Translator which I wrote with libnetfs. - I think there is some problem some where? Can any _HURD_DEVELOPER_ help me in fixing it? I think its prob with librariesor. Is it because of Muli threading? The function ports_manage_port_operations_multi_thread()? In both cases (hello-mt) and translator I wrote using libnetfs a 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 #3 0x.. cthread_fork() from /lib/libthreads.so.0.2 #4 0x.. ports_manage_port_operations_one_thread() from /lib/libports.so.0.2 #5 0x.. mach_msg_server_timeout() from /lib/libc.so.0.2 #6 0x.. ports_manage_port_operations_one_thread() from /lib/libports.so.0.2 #7 0x.. ports_manage_port_operations_multi_thread() from /lib/libports.so.0.2 /*This one not there for hello-mt.c*/ #8 0x.. netfs_server_loop() from /lib/libnetfs.so.0.2 #9 0x.. main(argc=x,argv=) at mypgm #10 0x.. __libc_start_main() from /lib/libc.so.0.2 Can any one solve this stuff??? Thanks, -- Justin Langer [EMAIL PROTECTED] - email __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd