ports/136804: Ruby 1.9 core-dumps when 'CTRL-C' is entered in irb19.

Emiel van de Laar gemiel at gmail.com
Wed Jul 15 21:30:04 UTC 2009


>Number:         136804
>Category:       ports
>Synopsis:       Ruby 1.9 core-dumps when 'CTRL-C' is entered in irb19.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 15 21:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Emiel van de Laar
>Release:        7.2-RELEASE-p2
>Organization:
>Environment:
FreeBSD mad.localdomain 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:14:35 UTC 2009     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Ruby core-dumps when 'CTRL-C' is entered in irb19. I only see
this behavior with zsh. Bash appears to do ok.

I'm not sure if this is a Ruby or a zsh issue. It has been reported to the Ruby
community which suspect it is a FreeBSD specific issue.

Please  see http://redmine.ruby-lang.org/issues/show/1118

I'll be happy to provide more information.
>How-To-Repeat:
~ % which zsh
/usr/local/bin/zsh

~ % zsh --version
zsh 4.3.10 (amd64-portbld-freebsd7.2)

~ % echo $SHELL
/usr/local/bin/zsh

~ % which ruby19  
/usr/local/bin/ruby19

~ % ruby19 --version
ruby 1.9.1p129 (2009-05-12 revision 23412) [amd64-freebsd7]

~ % which irb19
/usr/local/bin/irb19

~ % irb19 --version
irb 0.9.5(05/04/13)

~ % irb19
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 1.9.1p129 (2009-05-12 revision 23412) [amd64-freebsd7]"

>Fix:
Ruby version 1.8 does not show this behaviour.

>Release-Note:
>Audit-Trail:
>Unformatted:
 >>> ISSUE CTRL-C HERE <<<
 
 irb(main):002:0> zsh: illegal hardware instruction (core dumped)  irb19
 
 
 With ruby19 compiled with debugging symbols I still can't get a decent backtrace...
 
  % gdb --core ./ruby19.core /usr/local/bin/ruby19
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "amd64-marcel-freebsd"...
 Core was generated by `ruby19'.
 Program terminated with signal 4, Illegal instruction.
 Reading symbols from /usr/local/lib/libruby19.so.19...done.
 Loaded symbols for /usr/local/lib/libruby19.so.19
 Reading symbols from /lib/libthr.so.3...done.
 Loaded symbols for /lib/libthr.so.3
 Reading symbols from /usr/lib/librt.so.1...done.
 Loaded symbols for /usr/lib/librt.so.1
 Reading symbols from /lib/libcrypt.so.4...done.
 Loaded symbols for /lib/libcrypt.so.4
 Reading symbols from /lib/libm.so.5...done.
 Loaded symbols for /lib/libm.so.5
 Reading symbols from /lib/libc.so.7...done.
 Loaded symbols for /lib/libc.so.7
 Reading symbols from /usr/local/lib/ruby/1.9/amd64-freebsd7/enc/encdb.so...done.
 Loaded symbols for /usr/local/lib/ruby/1.9/amd64-freebsd7/enc/encdb.so
 Reading symbols from /usr/local/lib/ruby/1.9/amd64-freebsd7/enc/trans/transdb.so...done.
 Loaded symbols for /usr/local/lib/ruby/1.9/amd64-freebsd7/enc/trans/transdb.so
 Reading symbols from /usr/local/lib/ruby/1.9/amd64-freebsd7/readline.so...done.
 Loaded symbols for /usr/local/lib/ruby/1.9/amd64-freebsd7/readline.so
 Reading symbols from /lib/libreadline.so.7...done.
 Loaded symbols for /lib/libreadline.so.7
 Reading symbols from /lib/libncurses.so.7...done.
 Loaded symbols for /lib/libncurses.so.7
 Reading symbols from /libexec/ld-elf.so.1...done.
 Loaded symbols for /libexec/ld-elf.so.1
 #0  0x0000000800505ac9 in _rtld_error () from /libexec/ld-elf.so.1
 [New Thread 0x801002240 (LWP 100102)]
 [New Thread 0x8010020b0 (LWP 100105)]
 (gdb) bt
 #0  0x0000000800505ac9 in _rtld_error () from /libexec/ld-elf.so.1
 #1  0x00000008005067cb in dladdr () from /libexec/ld-elf.so.1
 #2  0x00000008005068a3 in dladdr () from /libexec/ld-elf.so.1
 #3  0x00000008005034fd in ?? () from /libexec/ld-elf.so.1
 #4  0x0000000000000207 in ?? ()
 #5  0xffffffff80ad4180 in ?? ()
 #6  0x00007fffffbfe260 in ?? ()
 #7  <signal handler called>
 #8  0x0000000801094a40 in ?? ()
 Previous frame inner to this frame (corrupt stack?)
 
 



More information about the freebsd-ports-bugs mailing list