Irb aborts in 1.7.3 on Solaris

Hi:

I did not get an answer to this before, so I’ll post again.

I just did a cvs get and compiled 1.7.3 on Solaris:

uname -a
SunOS juno 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-5_10

When running irb, I get the following error:

irb
/home/jfn/myruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so: [BUG]
Segmentation fault
ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
Abort

Is this a known problem?

···


Jim Freeze

irb
/home/jfn/myruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so: [BUG]
Segmentation fault
ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
Abort

You have a strange configuration

nasun% uname -a
SunOS nasun 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R
nasun%

nasun% ruby -v
ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
nasun%

nasun% irb
irb(main):001:0> nasun%
nasun%

Guy Decoux

Sorry, not much of an extension debugger.
What commands do I need to get a backtrace?

···

On Saturday, 7 December 2002 at 0:13:47 +0900, nobu.nokada@softhome.net wrote:

Hi,

At Fri, 6 Dec 2002 23:55:16 +0900, > Jim Freeze wrote:
> I just did a cvs get and compiled 1.7.3 on Solaris:
>
> uname -a
> SunOS juno 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-5_10
>
>
> When running irb, I get the following error:
>
> irb
> /home/jfn/myruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so: [BUG]
> Segmentation fault
> ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
> Abort

irb shouldn't use nkf.

Can't you get backtrace?

--
Jim Freeze
----------
The goal of Computer Science is to build something that will last at
least until we've finished building it.

irb
/home/jfn/myruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so: [BUG]
Segmentation fault
ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
Abort

You have a strange configuration

How so?

Jim

···

On Saturday, 7 December 2002 at 0:40:56 +0900, ts wrote:

nasun% uname -a
SunOS nasun 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R
nasun%

nasun% ruby -v
ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
nasun%

nasun% irb
irb(main):001:0> nasun%
nasun%

Guy Decoux


Jim Freeze

Question:
Man Invented Alcohol,
God Invented Grass.
Who do you trust?

How so?

Try

  cd /home/jfn/myruby173/bin
  gdb ruby
  (gdb) r irb

and use the command `bt' when it crash

Guy Decoux

Ok, I just built ruby-1.6.7 and ruby-1.7.3 on the same
machine and using the same config options (only set --prefix).
The 1.6.7 version works, but 1.7.3 still crashes when
running irb.

cd ~/ruby167/bin
jfn@juno 91 /home/jfn/ruby167/bin > ./irb
irb(main):001:0> 1+1
2
irb(main):002:0>

cd ~/ruby173/bin
jfn@juno 64 /home/jfn/ruby173/bin > ./irb
/home/jfn/ruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so: [BUG]
Segmentation fault
ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
Abort
jfn@juno 65 /home/jfn/ruby173/bin > gdb ruby
GNU gdb 5.2.1
Copyright 2002 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 “sparc-sun-solaris2.8”…
(gdb) r irb
Starting program: /home/jfn/ruby173/bin/ruby irb

Program received signal SIGSEGV, Segmentation fault.
0xff170fa8 in __do_global_ctors_aux ()
from /home/jfn/ruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so
(gdb) bt
#0 0xff170fa8 in __do_global_ctors_aux ()
from /home/jfn/ruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so
#1 0xff0ed728 in _init ()
from /home/jfn/ruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so
#2 0xff3bc1ec in ?? ()
#3 0xff3c0d34 in ?? ()
#4 0xff3c0e5c in ?? ()
#5 0x000959ec in dln_load ( file=0x15c340
“/home/jfn/ruby173/lib/ruby/1.7/sparc-solaris2.8/nkf.so”)
at dln.c:1322
#6 0x00026ff8 in rb_f_require (obj=0, fname=1779912)
at eval.c:5671
#7 0x00023bfc in call_cfunc (func=0x26cf8
<rb_f_require>, recv=1085512,
len=1, argc=1, argv=0xffbe9700) at eval.c:4464
#8 0x000242d4 in rb_call0 (klass=1091176,
recv=1085512, id=8945, oid=8945,
argc=1, argv=0xffbe9700, body=0xf99d0,
nosuper=1) at eval.c:4592
#9 0x00024bf4 in rb_call (klass=1091176,
recv=1085512, mid=8945, argc=1,
argv=0xffbe9700, scope=1) at eval.c:4808
#10 0x0001f2ac in rb_eval (self=1085512,
n=0x1b59a0) at eval.c:2777
#11 0x0001d774 in rb_eval (self=1085512,
n=0x1b35b8) at eval.c:2243
#12 0x0001ac54 in eval_node (self=1085512,
node=0x1b35b8) at eval.c:1126
#13 0x00026778 in rb_load (fname=1792752,
wrap=0) at eval.c:5439
#14 0x00027154 in rb_f_require (obj=0, fname=1792848) at eval.c:5699
#15 0x00088960 in rb_autoload_load (id=14317) at variable.c:1150
—Type to continue, or q to quit—
#16 0x00088828 in top_const_get (id=14317, klassp=0xffbea044) at variable.c:1109
#17 0x000889c8 in rb_const_get (klass=1793880, id=14317) at variable.c:1167
#18 0x0001bdb8 in ev_const_get (cref=0x1b5ef8, id=14317, self=1793880) at eval.c:1563
#19 0x0001fe70 in rb_eval (self=1793880, n=0x1bfa80) at eval.c:2995
#20 0x0001fefc in rb_eval (self=1793880, n=0x1bf8d0) at eval.c:3018
#21 0x000200dc in rb_eval (self=1793880, n=0x1beac0) at eval.c:3070
#22 0x0001fd94 in rb_eval (self=1793880, n=0x1be9a0) at eval.c:2966
#23 0x0001d774 in rb_eval (self=1793880, n=0x1c1f40) at eval.c:2243
#24 0x000212f0 in module_setup (module=1793880, n=0x1b6150) at eval.c:3465
#25 0x00020c14 in rb_eval (self=925312, n=0x1b6120) at eval.c:3333
#26 0x000212f0 in module_setup (module=925312, n=0x1b60f0) at eval.c:3465
#27 0x00020f80 in rb_eval (self=1085512, n=0x1c2570) at eval.c:3390
#28 0x0001ac54 in eval_node (self=1085512, node=0x1c2570) at eval.c:1126
#29 0x00026778 in rb_load (fname=1846320, wrap=0) at eval.c:5439
#30 0x00027154 in rb_f_require (obj=0, fname=1846440) at eval.c:5699
#31 0x00023bfc in call_cfunc (func=0x26cf8 <rb_f_require>, recv=1085512,
len=1, argc=1, argv=0xffbeba98) at eval.c:4464
#32 0x000242d4 in rb_call0 (klass=1091176, recv=1085512, id=8945, oid=8945,
argc=1, argv=0xffbeba98, body=0xf99d0, nosuper=1) at eval.c:4592
#33 0x00024bf4 in rb_call (klass=1091176, recv=1085512, mid=8945,
argc=1, argv=0xffbeba98, scope=1) at eval.c:4808
#34 0x0001f2ac in rb_eval (self=1085512, n=0xf7510) at eval.c:2777
#35 0x0001d774 in rb_eval (self=1085512, n=0xf7888) at eval.c:2243
#36 0x0001ac54 in eval_node (self=1085512, node=0xf7888) at eval.c:1126
#37 0x00026778 in rb_load (fname=1014568, wrap=0) at eval.c:5439
#38 0x00027154 in rb_f_require (obj=0, fname=1014664) at eval.c:5699
#39 0x00023bfc in call_cfunc (func=0x26cf8 <rb_f_require>, recv=1085512,
len=1, argc=1, argv=0xffbec528) at eval.c:4464
#40 0x000242d4 in rb_call0 (klass=1091176, recv=1085512, id=8945, oid=8945,
argc=1, argv=0xffbec528, body=0xf99d0, nosuper=1) at eval.c:4592
#41 0x00024bf4 in rb_call (klass=1091176, recv=1085512, mid=8945, argc=1,
argv=0xffbec528, scope=1) at eval.c:4808
#42 0x0001f2ac in rb_eval (self=1085512, n=0xf80b0) at eval.c:2777
#43 0x0001d774 in rb_eval (self=1085512, n=0xf7c90) at eval.c:2243
#44 0x0001ac54 in eval_node (self=1085512, node=0xf7c90) at eval.c:1126
#45 0x0001b0f0 in ruby_exec () at eval.c:1271
#46 0x0001b160 in ruby_run () at eval.c:1291
#47 0x00018f68 in main (argc=0, argv=0xffbeccf4, envp=0xffbecd00) at main.c:50

···

On Saturday, 7 December 2002 at 2:35:51 +0900, ts wrote:

cd /home/jfn/myruby173/bin
gdb ruby
(gdb) r irb

and use the command `bt’ when it crash


Jim Freeze

“I like being single. I’m always there when I need me.”
– Art Leo