From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jul 15 21:30:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05A491065670 for ; Wed, 15 Jul 2009 21:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D46C78FC19 for ; Wed, 15 Jul 2009 21:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6FLU3Ut036794 for ; Wed, 15 Jul 2009 21:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6FLU3JC036791; Wed, 15 Jul 2009 21:30:03 GMT (envelope-from gnats) Resent-Date: Wed, 15 Jul 2009 21:30:03 GMT Resent-Message-Id: <200907152130.n6FLU3JC036791@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Emiel van de Laar Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48241106564A for ; Wed, 15 Jul 2009 21:23:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 356C68FC12 for ; Wed, 15 Jul 2009 21:23:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n6FLNTr7010013 for ; Wed, 15 Jul 2009 21:23:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n6FLNTv4010012; Wed, 15 Jul 2009 21:23:29 GMT (envelope-from nobody) Message-Id: <200907152123.n6FLNTv4010012@www.freebsd.org> Date: Wed, 15 Jul 2009 21:23:29 GMT From: Emiel van de Laar To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136804: Ruby 1.9 core-dumps when 'CTRL-C' is entered in irb19. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 21:30:04 -0000 >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@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 #8 0x0000000801094a40 in ?? () Previous frame inner to this frame (corrupt stack?)