yarv-dev-en:268
From: Sean Bryant <sean cyberwang.net>
Date: Fri, 15 Dec 2006 22:52:03 -0500
Subject: [yarv-dev-en:268] Re: Yarv trunk and freebsd.
Sean Bryant wrote: > SASADA Koichi wrote: >> Hi, >> >> Sean Bryant wrote: >>> Hi I decided i'd try and get the some snapshot of yarv up and running. >>> It compiles with out complaining but the test fail and generator a core. >>> The core says the problem is in signalcontext() in libc. But I doubt >>> that's the case. That's just the last running thread. Switching to >>> thread 3, the main thread it seems reveals nothing more than the thread >>> sleeping just as gdb reports. Any tips on debugging this? >> >> What's test? "make test"? >> > Yes, it is 'make test'. I'm running FreeBSD-6.2-RC1 under QEMU. I tried > the same under a 6.1-STABLE install and the same thing happened. > > -- > ML: yarv-dev-en quickml.atdot.net > Info: http://www.atdot.net/~ko1/quickml To update the list. Forcing a link against libthr by exporting LDFLAGS='-lthr' will no longer have yarv core on a fork. It does however introduce new and interesting problems like exceeding maximum lock level and then coring on make test-all. Now I'm not sure where the problem is. I've looked and notice this a problem for several other projects as well. Probably due to the poor nature of FreeBSD's pthread implementation and libthr's incomplete implementation. Possible workarounds might include using linux-threads. Which is what mysql recommended not too long ago. This might also be a side affect of make file ignoring parameters. I noticed this happening when I was forcing yarv to build with gcc40 versus native gcc. Also I didn't see -lthr in there either. So I have no idea if that would solve the problem. Trying to track down these problems is rather problematic. Other VM's such as Java and .NET have their own debuggers to debug them. Yarv does not have that luxury yet. Any tips on debugging yarv? I wanted to run through the test-all target and the process stalls on the rtld calls. So I cannot just launch and go. Nor do I know if using GDB will help since its not so great at multi-threaded debugging in the first place. Thanks in advance. -- ML: yarv-dev-en quickml.atdot.net Info: http://www.atdot.net/~ko1/quickml
265 2006-12-15 10:16 [sean cyberwang.net ] Yarv trunk and freebsd. 266 2006-12-15 10:21 ┗[ko1 atdot.net ] 267 2006-12-15 10:21 ┗[sean cyberwang.net ] -> 268 2006-12-16 12:52 ┗[sean cyberwang.net ] 269 2006-12-21 10:01 ┗[drbrain segment7.net] 270 2006-12-21 10:50 ┗[sean cyberwang.net ]