bug-hurd
[Top][All Lists]
Advanced

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

Re: libthread fresh findings


From: Justin Langer
Subject: Re: libthread fresh findings
Date: Thu, 07 Feb 2002 02:13:41 -0800

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 libraries....or.....

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=xxxx) at mypgm
#10 0x......  __libc_start_main() from /lib/libc.so.0.2

Can any one solve this stuff???

Thanks,
-- 
Justin  Langer
jlanger@onebox.com - email


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]