The more I look at it, it might be an issue with linux threads.
I am assuming kernel 2.6 uses NPTL as oppose to linux threads.
The segmentation faults always happens whenever I tried to perform
a mutex lock on the ruby interpreter thread.
Just to be sure, can you display your library versions with the following
command:
% /lib/libc.so.6
Here's my output
[EMAIL PROTECTED]:pth-2.0.7[232] /lib/libc.so.6
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.2.3 20030502 (Red Hat Linux 3.2.3-53).
Compiled on a Linux 2.4.20 system on 2005-11-22.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
The C stubs add-on version 2.1.2.
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Glibc-2.0 compatibility add-on by Cristian Gafton
libthread_db work sponsored by Alpha Processor Inc
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
I'll see if I can build NPTL on my linux 2.4 machine and
use that instead of linuxthreads.
Calvin
Suraj Kurapati wrote:
On 8/17/07, Calvin Wong <[EMAIL PROTECTED]> wrote:
What version of the linux kernel are you using?
I run VCS, NC-Verilog, and Modelsim on a 64-bit machine:
Linux 2.6.18-8.1.8.el5 #1 SMP Tue Jul 10 06:39:17 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux
I run Cver on a 32-bit machine:
Linux 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux
I'm still having difficulty debugging the core dump
from NC-verilog and my original idea of it being a license
issue was not correct.
Recompile Ruby-VPI with the "-g" flag:
export CFLAGS=-g
rake clobber build
Now when you open the core dump with GDB, you'll get some useful info.