From: "jonforums (Jon Forums)" Date: 2013-03-08T07:47:23+09:00 Subject: [ruby-core:53200] [ruby-trunk - Bug #8000] "require 'tk'" segfaults on 64-bit linux with Tk 8.6 Issue #8000 has been updated by jonforums (Jon Forums). One of the committers please assign this to Hidetoshi NAGAI. Too bad tcltklib.so is stripped and the bt is weak. I bet no one on ruby-core has an Arch x64 system to try to repro/debug the issue, so we need to get better debug info. (Or reproduce it on a Ubuntu x64 system) Are you able to build ruby? If you did a pacman install of Arch's ruby 1.9.3_p392 package, you should be able to build from source, and tweak `configure`'s `optflags` and `debugflags` to build tcltklib.so with debug info. The default install is to `/usr/local` so your Arch pkg won't get clobbered if you don't use `--prefix`. My Arch x64 system is cmd line only. When I tried to cheat a repro/debug by installing tcl/tk add it's 15 friends, `ruby -e "require 'tk'"` rightfully failed due to no display. I don't know whether it failed before or after your segv. When I get time, I'll standup a new ArchBang install and try again. It looks as if tcltklib.so could be passing a bad value into the tcl library. Hard to tell from the bt. Before you try building from source have you pinged the Arch Forum? I'd skimmed posts on Newbie Corner and Installation and didn't see mention of this issue. Have you contacted Arch's ruby packager (Thomas Dziedzic) to confirm whether he's seeing the issue? Given it fails so quickly, I was surprised not to find it in the forums. Then again, Nagai-san may soon see this issue and swoop in with the solution ;) ---------------------------------------- Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6 https://bugs.ruby-lang.org/issues/8000#change-37368 Author: edmccard (Ed McCardell) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux] Using ruby 1.9.3p392 and Tk 8.6.0 on 64-bit Arch Linux, attempting to "require 'tk'" causes a segfault. To reproduce: ruby -e "require 'tk'" The crash log is in the attached file. Notes: - I've heard from a Gentoo user who is having the same problem. - On 32-bit Arch Linux, there is no problem. -- http://bugs.ruby-lang.org/