Project

General

Profile

Actions

Bug #1118

closed

irb core dumps with 'CTRL-C' with zsh

Added by emiel (Emiel van de Laar) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.1p0 (2009-02-02 revision 21960) [i386-freebsd6.3]
Backport:
[ruby-core:21884]

Description

=begin
Ruby core-dumps when 'CTRL-C' is entered in irb. 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. I'll be happy
to provide more information.

spitfire% which zsh
/usr/local/bin/zsh

spitfire% which zsh --version
zsh 4.3.9 (i386-portbld-freebsd6.3)

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

spitfire% ./irb19
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 1.9.1p0 (2009-02-02 revision 21960) [i386-freebsd6.3]"

ISSUE 'CTRL-C' HERE

irb(main):002:0> zsh: illegal hardware instruction (core dumped) ./irb19

spitfire% gdb --core ./ruby19.core ./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 "i386-marcel-freebsd"...
Core was generated by `ruby19'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/lib/libthr.so.2...done.
Loaded symbols for /usr/lib/libthr.so.2
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /home/emiel/ruby19/lib/ruby19/1.9.1/i386-freebsd6.3/enc/encdb.so...done.
Loaded symbols for /home/emiel/ruby19/lib/ruby19/1.9.1/i386-freebsd6.3/enc/encdb.so
Reading symbols from /home/emiel/ruby19/lib/ruby19/1.9.1/i386-freebsd6.3/enc/trans/transdb.so...done.
Loaded symbols for /home/emiel/ruby19/lib/ruby19/1.9.1/i386-freebsd6.3/enc/trans/transdb.so
Reading symbols from /home/emiel/ruby19/lib/ruby19/1.9.1/i386-freebsd6.3/readline.so...done.
Loaded symbols for /home/emiel/ruby19/lib/ruby19/1.9.1/i386-freebsd6.3/readline.so
Reading symbols from /lib/libreadline.so.6...done.
Loaded symbols for /lib/libreadline.so.6
Reading symbols from /lib/libncurses.so.6...done.
Loaded symbols for /lib/libncurses.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x282ef480 in rl_on_new_line_with_prompt () from /lib/libreadline.so.6
[New Thread 0x8186400 (LWP 100158)]
[New Thread 0x8186000 (LWP 100123)]
(gdb) bt
#0 0x282ef480 in rl_on_new_line_with_prompt () from /lib/libreadline.so.6
#1 0x282f14ca in rl_redisplay () from /lib/libreadline.so.6
#2 0x282ee2d7 in rl_clear_message () from /lib/libreadline.so.6
#3 0x282ed938 in rl_free_line_state () from /lib/libreadline.so.6
#4 0x282ed97d in rl_free_line_state () from /lib/libreadline.so.6
#5
#6 0x282259f7 in _umtx_op () from /lib/libc.so.6
#7 0x281b460e in pthread_cleanup_pop () from /usr/lib/libthr.so.2
#8 0x281b38d0 in pthread_cond_destroy () from /usr/lib/libthr.so.2
#9 0x081063bf in thread_timer (dummy=0x0) at thread_pthread.c:122
#10 0x281ac5cf in pthread_create () from /usr/lib/libthr.so.2
#11 0x00000000 in ?? ()
(gdb)
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #5423: readlineの入力待機中に端末のウィンドウサイズ変更すると入力内容が乱れるClosedkouji (Kouji Takao)10/08/2011Actions
Actions #1

Updated by naruse (Yui NARUSE) over 15 years ago

=begin
This also reproduce on ruby 1.9.2dev (2009-07-14 trunk 24106) [x86_64-freebsd7.2].
So this seems FreeBSD's problem.

=end

Actions #2

Updated by naruse (Yui NARUSE) over 15 years ago

=begin
When you install Readline 6.0 from ports, it doesn't SEGV. But it ignores ^C.
=end

Actions #3

Updated by naruse (Yui NARUSE) over 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r24140.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0