embedding ruby + pthread

J

Joe Van Dyk

I have a C executable that I'm embedding a Ruby GUI (using ruby-gnome2) in.

The GUI needs to run in it's own thread.

Are there any pitfalls I should be aware of? I'm currently using pthread.

(I'm asking because my application segfaults on start half the time
right when the Ruby GUI launches and I'm trying to track down causes.)

Do I need to build Ruby with pthread? Doing a ldd on the Ruby
interpreter reported:

libruby.so.1.8 =3D> /usr/lib/libruby.so.1.8 (0x003c3000)
libdl.so.2 =3D> /lib/libdl.so.2 (0x00111000)
libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0x00e35000)
libm.so.6 =3D> /lib/tls/libm.so.6 (0x0080c000)
libc.so.6 =3D> /lib/tls/libc.so.6 (0x00114000)
/lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x005ea000)

(and I don't see pthread in there)
 
T

ts

J> Do I need to build Ruby with pthread?

it's best if you don't want to have surprise ...

see [ruby-core:4440]


Guy Decoux
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top