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

  gcc --version
  2.95.3

  # installed version of ruby - works
  ldd `which ruby`
  libdl.so.1 =>      /usr/lib/libdl.so.1
  libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
  libm.so.1 =>       /usr/lib/libm.so.1
  libc.so.1 =>       /usr/lib/libc.so.1
  libgen.so.1 =>     /usr/lib/libgen.so.1
  /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

  # 173 version of ruby - irb and socket fail
  ldd ./ruby 
  libdl.so.1 =>      /usr/lib/libdl.so.1
  libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
  libm.so.1 =>       /usr/lib/libm.so.1
  libc.so.1 =>       /usr/lib/libc.so.1
  libgen.so.1 =>     /usr/lib/libgen.so.1
  /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

  # 163 version of ruby - irb works, socket fails
  ldd ./ruby 
  libdl.so.1 =>      /usr/lib/libdl.so.1
  libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
  libm.so.1 =>       /usr/lib/libm.so.1
  libc.so.1 =>       /usr/lib/libc.so.1
  libgen.so.1 =>     /usr/lib/libgen.so.1
  /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

  ext/Setup for all versions is same as yours...all commented out.

  No readline installed. Where does this come from?


  Jim
 

On Tuesday, 10 December 2002 at  3:24:11 +0900, Garriss, Michael wrote:
> I tried: `ruby -r socket -e 0` and got no error.  I would really like to
> help you with this problem.  We need to compare notes.  Here are some off
> the top of my head:
> 
> [local]frisco:mgarriss:~/dev/jts/src/utl> uname -a
> SunOS frisco 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-4
> 
> [local]frisco:mgarriss:~/dev/jts/src/utl> gcc --version
> gcc (GCC) 3.2
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> [local]frisco:mgarriss:~/dev/jts/src/utl> ldd $(which ruby)
> 	libdl.so.1 =>	 /usr/lib/libdl.so.1
> 	libcrypt_i.so.1 =>	 /usr/lib/libcrypt_i.so.1
> 	libm.so.1 =>	 /usr/lib/libm.so.1
> 	libc.so.1 =>	 /usr/lib/libc.so.1
> 	libgen.so.1 =>	 /usr/lib/libgen.so.1
> 	/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
> 
> [local]frisco:mgarriss:~/dev/jts/src/utl> cat /tmp/mgarriss/ruby/ext/Setup
> #option nodynamic
> 
> #Win32API
> #curses
> #dbm
> #digest
> #digest/md5
> #digest/rmd160
> #digest/sha1
> #digest/sha2
> #dl
> #etc
> #fcntl
> #gdbm
> #iconv
> #nkf
> #pty
> #racc/cparse
> #readline
> #sdbm
> #socket
> #stringio
> #strscan
> #syslog
> #tcltklib
> #tk
> #win32ole
> 
> [local]frisco:mgarriss:~/dev/jts/src/utl> ls
> /home/mgarriss/lib/libreadline.*
> /home/mgarriss/lib/libreadline.a	/home/mgarriss/lib/libreadline.so.4
> /home/mgarriss/lib/libreadline.old
> /home/mgarriss/lib/libreadline.so.4.old
> /home/mgarriss/lib/libreadline.so
> 
> What else??
> 
> 
> -----Original Message-----
> From: Jim Freeze [mailto:jim / freeze.org]
> Sent: Monday, December 09, 2002 11:17 AM
> To: ruby-core / ruby-lang.org
> Subject: Re: irb Abort on Solaris Backtrace
> 
> 
> On Tuesday, 10 December 2002 at  1:44:43 +0900, ts wrote:
> > >>>>> "J" == Jim Freeze <jim / freeze.org> writes:
> > 
> > J>  #0  0xff1c2afc in __do_global_ctors_aux ()
> > 
> >  This is strange.
> > 
> >  Do it crash with other extensions, like socket ?
> > 
> > 
> 
> Yes. On both 1.6.7 and 1.7.3 for my local builds.
> The 1.6.6 version installed at our site works fine.
> 
> ./ruby -r socket -e 0
> /home/jfn/ruby173/lib/ruby/1.7/sparc-solaris2.8/socket.so: [BUG]
> Segmentation fault
> ruby 1.7.3 (2002-12-04) [sparc-solaris2.8]
> Abort
> 
> 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/ruby167/bin/ruby irb
> irb(main):001:0> require 'socket'
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xff2d7eb4 in __do_global_ctors_aux ()
>    from /home/jfn/ruby167/lib/ruby/1.6/sparc-solaris2.8/socket.so
>    (gdb) bt
>    #0  0xff2d7eb4 in __do_global_ctors_aux ()
>       from /home/jfn/ruby167/lib/ruby/1.6/sparc-solaris2.8/socket.so
>    #1  0xff2d2964 in _init ()
>        from /home/jfn/ruby167/lib/ruby/1.6/sparc-solaris2.8/socket.so
>    #2  0xff3bc1ec in ?? ()
>    #3  0xff3c0d34 in ?? ()
>    #4  0xff3c0e5c in ?? ()
>    #5  0x0008afbc in dln_load ( file=0x21ba90
>        "/home/jfn/ruby167/lib/ruby/1.6/sparc-solaris2.8/socket.so")
>                  at dln.c:1276
>    #6  0x00025dd4 in rb_f_require (obj=0, fname=1447240) at eval.c:5494
>    #7  0x00022c8c in call_cfunc (func=0x25b8c <rb_f_require>, recv=1020656, 
>                      len=1, argc=1, argv=0xffbe5f10) at eval.c:4263
>    #8  0x00023368 in rb_call0 (klass=1025480, recv=1020656, id=8433, argc=1,
> 
>        argv=0xffbe5f10, body=0xeacf8, nosuper=154508) at eval.c:4394
>    #9  0x00023cb0 in rb_call (klass=1025480, recv=1020656, mid=8433, argc=1,
> 
>        argv=0xffbe5f10, scope=1) at eval.c:4614
>    #10 0x0001ded4 in rb_eval (self=1020656, n=0x161aa0) at eval.c:2544
>    #11 0x00019e88 in eval_node (self=1020656, node=0x161aa0) at eval.c:1057
>    #12 0x00024854 in eval (self=1020656, src=1475224, scope=1545712, 
>        file=0x1ca958 "(irb)", line=1) at eval.c:4916
>    #13 0x00024d24 in rb_f_eval (argc=4, argv=0x1, self=1554832) at
> eval.c:5024
>    #14 0x00022ca8 in call_cfunc (func=0x24b1c <rb_f_eval>, recv=1554832,
> len=-1, 
>    ...
> 
> -- 
> Jim Freeze
> ----------
> Give me a Plumber's friend the size of the Pittsburgh dome, and a place
> to stand, and I will drain the world.
> 

-- 
Jim Freeze
----------
And I heard Jeff exclaim,
As they strolled out of sight,
"Merry Christmas to all --
You take credit cards, right?"
		-- "Outsiders" comic