The saga continues:

I am now running under 1.8.1 built from CVS built on Nov 24:

[asmt@sv022 coredump]$ ruby -v
ruby 1.8.1 (2003-11-24) [i686-linux]

and this happened this morning:

/usr/lib/ruby/1.8/net/protocol.rb:373:  [BUG] Segmentation fault
ruby 1.8.1 (2003-11-24)  [i686-linux]

That section of protocol.rb seems like and odd place for reporting such 
a fault:

372    def LOG( msg )
373      return unless @debug_output
374      @debug_output << msg
375      @debug_output << "\n"
376    end

gdb info:

[asmt@sv022 shared]$ gdb /usr/bin/ruby core.5766
GNU gdb Red Hat Linux (5.2.1-4)
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 "i386-redhat-linux"...
Core was generated by `ruby -W0 SAVE-P-PreStage7.rb'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/i686/libpthread.so.0...done.
Loaded symbols for /lib/i686/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/ruby/1.8/i686-linux/socket.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i686-linux/socket.so
Reading symbols from 
/mnt/shared/socVA/csmart/assessment/lib/postgres.so...done.
Loaded symbols for /mnt/shared/socVA/csmart/assessment/lib/postgres.so
Reading symbols from /usr/lib/libpq.so.2...done.
Loaded symbols for /usr/lib/libpq.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libssl.so.2...done.
Loaded symbols for /lib/libssl.so.2
Reading symbols from /lib/libcrypto.so.2...done.
Loaded symbols for /lib/libcrypto.so.2
Reading symbols from /usr/kerberos/lib/libkrb5.so.3...done.
Loaded symbols for /usr/kerberos/lib/libkrb5.so.3
Reading symbols from /usr/kerberos/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/kerberos/lib/libk5crypto.so.3
Reading symbols from /usr/kerberos/lib/libcom_err.so.3...done.
Loaded symbols for /usr/kerberos/lib/libcom_err.so.3
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/ruby/1.8/i686-linux/openssl.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i686-linux/openssl.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /usr/lib/ruby/1.8/i686-linux/digest/sha1.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i686-linux/digest/sha1.so
Reading symbols from /usr/lib/ruby/1.8/i686-linux/digest.so...done.
Loaded symbols for /usr/lib/ruby/1.8/i686-linux/digest.so
#0  0x42028cc1 in kill () from /lib/i686/libc.so.6

...and here the 'where' dump:

(gdb) where
#0  0x42028cc1 in kill () from /lib/i686/libc.so.6
#1  0x4002607d in raise () from /lib/i686/libpthread.so.0
#2  0x4202a019 in abort () from /lib/i686/libc.so.6
#3  0x080ba082 in rb_bug (fmt=0x80d3ae4 "Segmentation fault") at 
error.c:199
#4  0x0809ee7c in sigpipe (sig=11) at signal.c:419
#5  0x4002947e in __pthread_sighandler () from /lib/i686/libpthread.so.0
#6  <signal handler called>
#7  0xffffffff in ?? ()
#8  0x40024762 in longjmp () from /lib/i686/libpthread.so.0
#9  0x080593c8 in localjump_destination (state=1, retval=4) at 
eval.c:4123
#10 0x08055b83 in rb_eval (self=1127751472, n=0x0) at eval.c:3153
#11 0x0805b2f2 in rb_call0 (klass=1076649588, recv=1127751472, 
id=27653, oid=0, argc=0, argv=0xbffed674, body=0x402c9038, nosuper=0) 
at eval.c:5155
#12 0x0805b7f1 in rb_call (klass=1076649588, recv=1127751472, 
mid=27653, argc=1, argv=0xbffed670, scope=1) at eval.c:5248
#13 0x08056f29 in rb_eval (self=1127751472, n=0x0) at eval.c:3055
#14 0x0805b2f2 in rb_call0 (klass=1076649588, recv=1127751472, id=2953, 
oid=0, argc=0, argv=0xbffee300, body=0x402d098c, nosuper=0) at 
eval.c:5155
#15 0x0805b7f1 in rb_call (klass=1076649588, recv=1127751472, mid=2953, 
argc=5, argv=0xbffee2ec, scope=3) at eval.c:5248
#16 0x0805bbc3 in rb_call_super (argc=5, argv=0xbffee2ec) at eval.c:5366
#17 0x080573a0 in rb_eval (self=1127751472, n=0x0) at eval.c:3105
#18 0x0805b2f2 in rb_call0 (klass=1080563044, recv=1127751472, id=2953, 
oid=0, argc=0, argv=0xbffee734, body=0x4069b3ec, nosuper=0) at 
eval.c:5155
#19 0x0805b7f1 in rb_call (klass=1080563044, recv=1127751472, mid=2953, 
argc=5, argv=0xbffee720, scope=1) at eval.c:5248
#20 0x0805bac3 in rb_funcall2 (recv=1073924932, mid=2953, argc=5, 
argv=0xbffee720) at ruby.h:627
#21 0x0805dc62 in rb_obj_call_init (obj=1127751472, argc=5, 
argv=0xbffee720) at eval.c:6391
#22 0x0807cb10 in rb_class_new_instance (argc=5, argv=0xbffee720, 
klass=1080563044) at object.c:767
#23 0x0806545b in call_cfunc (func=0x807caf0 <rb_class_new_instance>, 
recv=1080563044, len=1073924932, argc=5, argv=0x6) at eval.c:4890
#24 0x0805b009 in rb_call0 (klass=1074597112, recv=1080563044, id=7265, 
oid=0, argc=5, argv=0xbffee720, body=0x400cfb64, nosuper=0) at 
eval.c:5027
#25 0x0805b7f1 in rb_call (klass=1074597112, recv=1080563044, mid=7265, 
argc=5, argv=0xbffee720, scope=0) at eval.c:5248
#26 0x08056f29 in rb_eval (self=1127752112, n=0x0) at eval.c:3055
#27 0x080569b5 in rb_eval (self=1127752112, n=0x0) at eval.c:3256
#28 0x0805b2f2 in rb_call0 (klass=1076647288, recv=1127752112, 
id=26121, oid=0, argc=0, argv=0x0, body=0x40145a14, nosuper=0) at 
eval.c:5155
#29 0x0805b7f1 in rb_call (klass=1076647288, recv=1127752112, 
mid=26121, argc=0, argv=0x0, scope=2) at eval.c:5248
#30 0x08056f29 in rb_eval (self=1127752112, n=0x0) at eval.c:3055
#31 0x08056865 in rb_eval (self=1127752112, n=0x0) at eval.c:2909
#32 0x0805b2f2 in rb_call0 (klass=1076647288, recv=1127752112, id=4993, 
oid=0, argc=0, argv=0x0, body=0x40149164, nosuper=0) at eval.c:5155
#33 0x0805b7f1 in rb_call (klass=1076647288, recv=1127752112, mid=4993, 
argc=0, argv=0x0, scope=1) at eval.c:5248
#34 0x08056f29 in rb_eval (self=1127752112, n=0x0) at eval.c:3055
#35 0x0805643a in rb_eval (self=1127752112, n=0x0) at eval.c:2773
#36 0x0805b2f2 in rb_call0 (klass=1076647288, recv=1127752112, 
id=20449, oid=0, argc=0, argv=0xbfff0b64, body=0x40121ea4, nosuper=0) 
at eval.c:5155
#37 0x0805b7f1 in rb_call (klass=1076647288, recv=1127752112, 
mid=20449, argc=1, argv=0xbfff0b60, scope=0) at eval.c:5248
#38 0x08056f29 in rb_eval (self=1076611848, n=0x0) at eval.c:3055
#39 0x08056902 in rb_eval (self=1076611848, n=0x0) at eval.c:3236
#40 0x08056709 in rb_eval (self=1076611848, n=0x0) at eval.c:2868
#41 0x0805b2f2 in rb_call0 (klass=1076611088, recv=1076611848, 
id=12025, oid=0, argc=0, argv=0xbfff1ce4, body=0x40144f38, nosuper=0) 
at eval.c:5155
#42 0x0805b7f1 in rb_call (klass=1076611088, recv=1076611848, 
mid=12025, argc=1, argv=0xbfff1ce0, scope=0) at eval.c:5248
#43 0x08056f29 in rb_eval (self=1080149384, n=0x0) at eval.c:3055
#44 0x080578cc in rb_eval (self=1080149384, n=0x0) at eval.c:2832
#45 0x080568d0 in rb_eval (self=1080149384, n=0x0) at eval.c:3230
#46 0x080595f8 in rb_yield_0 (val=1124759452, self=1080149384, klass=0, 
flags=0, avalue=0) at eval.c:4260
#47 0x08057590 in rb_eval (self=1115778612, n=0x0) at eval.c:2849
#48 0x080595f8 in rb_yield_0 (val=1124759452, self=1115778612, klass=0, 
flags=0, avalue=0) at eval.c:4260
#49 0x08057590 in rb_eval (self=1124808272, n=0x0) at eval.c:2849
#50 0x080595f8 in rb_yield_0 (val=1124759452, self=1124808272, klass=0, 
flags=0, avalue=0) at eval.c:4260
#51 0x08059ac2 in rb_yield (val=1124759452) at eval.c:4313
#52 0x080afcb7 in rb_ary_each (ary=1124808052) at array.c:816
#53 0x0806545b in call_cfunc (func=0x80afc90 <rb_ary_each>, 
recv=1124808052, len=1073924932, argc=0, argv=0x6) at eval.c:4890
#54 0x0805b009 in rb_call0 (klass=1074566992, recv=1124808052, id=3817, 
oid=0, argc=0, argv=0x0, body=0x400c932c, nosuper=0) at eval.c:5027
#55 0x0805b7f1 in rb_call (klass=1074566992, recv=1124808052, mid=3817, 
argc=0, argv=0x0, scope=0) at eval.c:5248
#56 0x08056f29 in rb_eval (self=1124808272, n=0x0) at eval.c:3055
#57 0x0805643a in rb_eval (self=1124808272, n=0x0) at eval.c:2773
#58 0x0805b2f2 in rb_call0 (klass=1074862556, recv=1124808272, 
id=12865, oid=0, argc=0, argv=0x0, body=0x401045ac, nosuper=0) at 
eval.c:5155
#59 0x0805b7f1 in rb_call (klass=1074862556, recv=1124808272, 
mid=12865, argc=0, argv=0x0, scope=0) at eval.c:5248
#60 0x08056f29 in rb_eval (self=1115778612, n=0x0) at eval.c:3055
#61 0x0805643a in rb_eval (self=1115778612, n=0x0) at eval.c:2773
#62 0x080595f8 in rb_yield_0 (val=1124808272, self=1115778612, klass=0, 
flags=0, avalue=0) at eval.c:4260
#63 0x08059ac2 in rb_yield (val=1124808272) at eval.c:4313
#64 0x080afcb7 in rb_ary_each (ary=1115778192) at array.c:816
#65 0x0806545b in call_cfunc (func=0x80afc90 <rb_ary_each>, 
recv=1115778192, len=1073924932, argc=0, argv=0x6) at eval.c:4890
#66 0x0805b009 in rb_call0 (klass=1074566992, recv=1115778192, id=3817, 
oid=0, argc=0, argv=0x0, body=0x400c932c, nosuper=0) at eval.c:5027
#67 0x0805b7f1 in rb_call (klass=1074566992, recv=1115778192, mid=3817, 
argc=0, argv=0x0, scope=0) at eval.c:5248
#68 0x08056f29 in rb_eval (self=1115778612, n=0x0) at eval.c:3055
#69 0x0805643a in rb_eval (self=1115778612, n=0x0) at eval.c:2773
#70 0x0805b2f2 in rb_call0 (klass=1074864876, recv=1115778612, 
id=12865, oid=0, argc=0, argv=0x0, body=0x401098e0, nosuper=0) at 
eval.c:5155
#71 0x0805b7f1 in rb_call (klass=1074864876, recv=1115778612, 
mid=12865, argc=0, argv=0x0, scope=0) at eval.c:5248
#72 0x08056f29 in rb_eval (self=1080149384, n=0x0) at eval.c:3055
#73 0x0805643a in rb_eval (self=1080149384, n=0x0) at eval.c:2773
#74 0x0805b2f2 in rb_call0 (klass=1076396048, recv=1080149384, 
id=28577, oid=0, argc=0, argv=0xbfff6f84, body=0x402a7988, nosuper=0) 
at eval.c:5155
#75 0x0805b7f1 in rb_call (klass=1076396048, recv=1080149384, 
mid=28577, argc=1, argv=0xbfff6f80, scope=1) at eval.c:5248
#76 0x08056f29 in rb_eval (self=1080149384, n=0x0) at eval.c:3055
#77 0x08055c54 in rb_eval (self=1080149384, n=0x0) at eval.c:2600
#78 0x080595f8 in rb_yield_0 (val=23, self=1080149384, klass=0, 
flags=0, avalue=0) at eval.c:4260
#79 0x08059ac2 in rb_yield (val=23) at eval.c:4313
#80 0x0807ac14 in int_dotimes (num=49) at numeric.c:1775
#81 0x0806545b in call_cfunc (func=0x807abdc <int_dotimes>, recv=49, 
len=1073924932, argc=0, argv=0x6) at eval.c:4890
#82 0x0805b009 in rb_call0 (klass=1074578792, recv=49, id=5385, oid=0, 
argc=0, argv=0x0, body=0x400cc4a0, nosuper=0) at eval.c:5027
#83 0x0805b7f1 in rb_call (klass=1074578792, recv=49, mid=5385, argc=0, 
argv=0x0, scope=0) at eval.c:5248
#84 0x08056f29 in rb_eval (self=1080149384, n=0x0) at eval.c:3055
#85 0x0805643a in rb_eval (self=1080149384, n=0x0) at eval.c:2773
#86 0x0805b2f2 in rb_call0 (klass=1076396048, recv=1080149384, 
id=13833, oid=0, argc=0, argv=0x0, body=0x402a9bc0, nosuper=0) at 
eval.c:5155
#87 0x0805b7f1 in rb_call (klass=1076396048, recv=1080149384, 
mid=13833, argc=0, argv=0x0, scope=0) at eval.c:5248
#88 0x08056f29 in rb_eval (self=1079466944, n=0x0) at eval.c:3055
#89 0x08056709 in rb_eval (self=1079466944, n=0x0) at eval.c:2868
#90 0x08056865 in rb_eval (self=1079466944, n=0x0) at eval.c:2909
#91 0x08055911 in rb_eval (self=1079466944, n=0x0) at eval.c:2509
#92 0x080560b0 in rb_eval (self=1079466944, n=0x0) at eval.c:2697
#93 0x0805b2f2 in rb_call0 (klass=1074891996, recv=1079466944, id=4993, 
oid=0, argc=0, argv=0x0, body=0x400ae608, nosuper=0) at eval.c:5155
#94 0x0805b7f1 in rb_call (klass=1074891996, recv=1079466944, mid=4993, 
argc=0, argv=0x0, scope=0) at eval.c:5248
#95 0x08056f29 in rb_eval (self=1079467004, n=0x0) at eval.c:3055
#96 0x08055911 in rb_eval (self=1079467004, n=0x0) at eval.c:2509
#97 0x0805b2f2 in rb_call0 (klass=1074892056, recv=1079467004, id=4993, 
oid=0, argc=0, argv=0x0, body=0x400d1c88, nosuper=0) at eval.c:5155
#98 0x0805b7f1 in rb_call (klass=1074892056, recv=1079467004, mid=4993, 
argc=0, argv=0x0, scope=0) at eval.c:5248
#99 0x08056f29 in rb_eval (self=1079467224, n=0x0) at eval.c:3055
#100 0x080595f8 in rb_yield_0 (val=1, self=1079467224, klass=0, 
flags=0, avalue=0) at eval.c:4260
#101 0x08059ac2 in rb_yield (val=1) at eval.c:4313
#102 0x0807ac14 in int_dotimes (num=3) at numeric.c:1775
#103 0x0806545b in call_cfunc (func=0x807abdc <int_dotimes>, recv=3, 
len=1073924932, argc=0, argv=0x6) at eval.c:4890
#104 0x0805b009 in rb_call0 (klass=1074578792, recv=3, id=5385, oid=0, 
argc=0, argv=0x0, body=0x400cc4a0, nosuper=0) at eval.c:5027
#105 0x0805b7f1 in rb_call (klass=1074578792, recv=3, mid=5385, argc=0, 
argv=0x0, scope=0) at eval.c:5248
#106 0x08056f29 in rb_eval (self=1079467224, n=0x0) at eval.c:3055
#107 0x0805643a in rb_eval (self=1079467224, n=0x0) at eval.c:2773
#108 0x0805b2f2 in rb_call0 (klass=1074896116, recv=1079467224, 
id=2953, oid=0, argc=0, argv=0xbfffc8e8, body=0x40286a30, nosuper=0) at 
eval.c:5155
#109 0x0805b7f1 in rb_call (klass=1074896116, recv=1079467224, 
mid=2953, argc=2, argv=0xbfffc8e0, scope=1) at eval.c:5248
#110 0x0805bac3 in rb_funcall2 (recv=1073924932, mid=2953, argc=2, 
argv=0xbfffc8e0) at ruby.h:627
#111 0x0805dc62 in rb_obj_call_init (obj=1079467224, argc=2, 
argv=0xbfffc8e0) at eval.c:6391
#112 0x0807cb10 in rb_class_new_instance (argc=2, argv=0xbfffc8e0, 
klass=1074896116) at object.c:767
#113 0x0806545b in call_cfunc (func=0x807caf0 <rb_class_new_instance>, 
recv=1074896116, len=1073924932, argc=2, argv=0x6) at eval.c:4890
#114 0x0805b009 in rb_call0 (klass=1074597112, recv=1074896116, 
id=3353, oid=0, argc=2, argv=0xbfffc8e0, body=0x400cfb64, nosuper=0) at 
eval.c:5027
#115 0x0805b7f1 in rb_call (klass=1074597112, recv=1074896116, 
mid=3353, argc=2, argv=0xbfffc8e0, scope=0) at eval.c:5248
#116 0x08056f29 in rb_eval (self=1074896116, n=0x0) at eval.c:3055
#117 0x0805fd09 in block_pass (self=1074896116, node=0x400d77b4) at 
eval.c:7331
#118 0x08057963 in rb_eval (self=1074896116, n=0x0) at eval.c:2759
#119 0x0805755d in rb_eval (self=1074896116, n=0x0) at eval.c:2997
#120 0x0805b2f2 in rb_call0 (klass=1074895376, recv=1074896116, 
id=4993, oid=0, argc=0, argv=0xbfffdbd8, body=0x400d7854, nosuper=0) at 
eval.c:5155
#121 0x0805b7f1 in rb_call (klass=1074895376, recv=1074896116, 
mid=4993, argc=2, argv=0xbfffdbd0, scope=0) at eval.c:5248
#122 0x08056f29 in rb_eval (self=1079467444, n=0x0) at eval.c:3055
#123 0x0805fd09 in block_pass (self=1079467444, node=0x400d7c78) at 
eval.c:7331
#124 0x08057963 in rb_eval (self=1079467444, n=0x0) at eval.c:2759
#125 0x0805b2f2 in rb_call0 (klass=1074897356, recv=1079467444, 
id=5073, oid=0, argc=0, argv=0xbfffe9b4, body=0x400d7f0c, nosuper=0) at 
eval.c:5155
#126 0x0805b7f1 in rb_call (klass=1074897356, recv=1079467444, 
mid=5073, argc=1, argv=0xbfffe9b0, scope=0) at eval.c:5248
#127 0x08056f29 in rb_eval (self=1074592352, n=0x0) at eval.c:3055
#128 0x0805643a in rb_eval (self=1074592352, n=0x0) at eval.c:2773
#129 0x08053844 in ruby_exec () at eval.c:1407
#130 0x08053885 in ruby_run () at eval.c:1428
#131 0x08051d3d in main () at main.c:50
#132 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6

By the way.  I don't know what I am really doing with gdb...if this 
info is does not help in identifying the problem and someone could give 
me something that I should post please let me know.

Again, thanks in advance.

-rich


On Nov 25, 2003, at 5:04 AM, ts wrote:

>>>>>> "R" == Richard Kilmer <rich / infoether.com> writes:
>
> R> of course this effects 300 machines ;-)
> R> should I build from CVS or from the RC2 ?
>
>  The patch is in RC2, this is this problem
>
> Thu Sep  4 00:06:14 2003  Yukihiro Matsumoto  <matz / ruby-lang.org>
>
>         * eval.c (mark_frame_adj): need to adjust argv pointer if using
>           system's alloca. [ruby-core:01503]
>
>
>
> Guy Decoux
>
>