Forum: Ruby Re: Segmentation fault in recursive function

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Daniel S. (Guest)
on 2006-04-13 10:26
(Received via mailing list)
It's most likely because something isn't compiled right. It's just as
likely gentoo's fault as it is ruby's. Upgraded your gcc lately? Updated
any of a thousand other dependent libraries lately?

Give revdep-rebuild a go.

If not, give emerge -e ruby a go


Or if you'd actually like to diagnose the problem, try running gdb and
get a bit more info about your segfault.

run:

ulimit -c unlimited
ruby segfault.rb

that should produce a core file

gdb ruby core

(gdb) bt

Or something like that.
This topic is locked and can not be replied to.