Thread Problems - Random Segfaults

I have a thread-intensive application that gives random segfaults. They occur at
random places in both my own code and third party code.

./dhcp.rb:34: [BUG] Segmentation fault
/sw/lib/ruby/site_ruby/1.6/http-access2.rb:676: [BUG] Segmentation fault
/sw/lib/ruby/site_ruby/1.6/nqxml/entities.rb:18: [BUG] Segmentation fault

My code is not very special, it is mostly threads that sleep and wake up to do
a SOAP call or a DRb call. All shared data is protected with a mutex.

Are threads known to be buggy?

My platform is OS X 10.2.6 with Ruby 1.6.7:

ruby 1.6.7 (2002-03-01) [powerpc-darwin6.6]

S.

I have no idea, but if you send me your program I can test it ona Sun
SPARC with Ruby 1.8.0. If it runs here you can try moving up to 1.8.0.

Do I need anything special other than Ruby to run your application?

···

On Thu, Jun 19, 2003 at 06:40:32PM +0900, Stefan Arentz wrote:

I have a thread-intensive application that gives random segfaults. They occur at
random places in both my own code and third party code.

./dhcp.rb:34: [BUG] Segmentation fault
/sw/lib/ruby/site_ruby/1.6/http-access2.rb:676: [BUG] Segmentation fault
/sw/lib/ruby/site_ruby/1.6/nqxml/entities.rb:18: [BUG] Segmentation fault

My code is not very special, it is mostly threads that sleep and wake up to do
a SOAP call or a DRb call. All shared data is protected with a mutex.

Are threads known to be buggy?

My platform is OS X 10.2.6 with Ruby 1.6.7:

ruby 1.6.7 (2002-03-01) [powerpc-darwin6.6]

S.


Daniel Carrera | OpenPGP fingerprint:
Graduate TA, Math Dept | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88
UMD (301) 405-5137 | http://www.math.umd.edu/~dcarrera/pgp.html

I have a thread-intensive application that gives random segfaults. They occur at
random places in both my own code and third party code.

[...]

ruby 1.6.7 (2002-03-01) [powerpc-darwin6.6]

Well, 1.6.7 is known to have problem in some cases, see the thread

[ruby-talk:64785]

Guy Decoux

ts decoux@moulon.inra.fr writes:

I have a thread-intensive application that gives random segfaults. They occur at
random places in both my own code and third party code.
[…]
ruby 1.6.7 (2002-03-01) [powerpc-darwin6.6]

Well, 1.6.7 is known to have problem in some cases, see the thread

[ruby-talk:64785]

What does this reference? How do I find this thread :slight_smile:

S.

Daniel Carrera dcarrera@math.umd.edu writes:

I have no idea, but if you send me your program I can test it ona Sun
SPARC with Ruby 1.8.0. If it runs here you can try moving up to 1.8.0.

Do I need anything special other than Ruby to run your application?

Sorry I can’t do that. The code is part of a wifi network simulator that we
are writing, and it has many dependencies, both public and proprietary code.

S.

http://ruby-talk.org/64785

···

On Thu, 19 Jun 2003 13:01:19 +0200, Stefan Arentz wrote:

ts decoux@moulon.inra.fr writes:

[ruby-talk:64785]

What does this reference? How do I find this thread :slight_smile:


Simon Strandgaard

What does this reference? How do I find this thread :slight_smile:

http://www.ruby-talk.org/64785

then you select "Thread frame"

Guy Decoux

Stefan Arentz wrote:

ts decoux@moulon.inra.fr writes:

“S” == Stefan Arentz stefan.arentz@soze.com writes:

I have a thread-intensive application that gives random segfaults. They occur at
random places in both my own code and third party code.
[…]
ruby 1.6.7 (2002-03-01) [powerpc-darwin6.6]

Well, 1.6.7 is known to have problem in some cases, see the thread

[ruby-talk:64785]

What does this reference? How do I find this thread :slight_smile:

S.

there is an archive of this discussion on www.ruby-talk.org
go there and enter 64785 in ther search field. That will lead you to
this link: http://ruby-talk.com/cgi-bin/scat.rb/ruby/ruby-talk/64785
It even has a thread view that I am very fond of…
http://ruby-talk.com/cgi-bin/vframe.rb/ruby/ruby-talk/64785?64706-65709

···


dc -e
4ddod3dddn1-89danrn10-dan3+ann6dan2an13dn1+dn2-dn3+5ddan2/9+an13nap