Bug #2973
closedrb_bug - Segmentation fault - error.c:213
Description
=begin
hi, i have a ruby-1.8.7 install on netbsd-5, which is crashing quite frequently. i can provide the core and other additional info.
here is a backtrace:
Program terminated with signal 6, Aborted.
#0 0xbbac1767 in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0xbbac1767 in _lwp_kill () from /usr/lib/libc.so.12
#1 0xbbac1726 in raise (s=6) at /usr/src/lib/libc/gen/raise.c:48
#2 0xbbac0f2c in abort () at /usr/src/lib/libc/stdlib/abort.c:74
#3 0xbbb32443 in rb_bug (fmt=0xbbbd3cdd "Segmentation fault") at error.c:213
#4 0xbbba2039 in sigsegv (sig=11) at signal.c:634
#5
#6 pthread_exit (retval=0x1) at /usr/src/lib/libpthread/pthread.c:526
#7 0xb8d3ad89 in pthread__cancelled () at /usr/src/lib/libpthread/pthread.c:896
#8 0xb8d36493 in poll (fds=0xbfbc8b04, nfds=1, timeout=0) at /usr/src/lib/libpthread/pthread_cancelstub.c:378
#9 0xb95eb524 in net_clear (net=0xb8b8c800) at net.c:236
#10 0xb95e7d26 in cli_advanced_command (mysql=0xb8b8c800, command=COM_QUERY, header=0x0, header_length=0, arg=0xb6f6e220 "SHOW FIELDS FROM users
", arg_length=24, skip_check=1 '\001', stmt=0x0) at client.c:723
#11 0xb95e45d3 in mysql_send_query (mysql=0xb8b8c800, query=0xb6f6e220 "SHOW FIELDS FROM users
", length=24) at client.c:2817
#12 0xb95e4660 in mysql_real_query (mysql=0xb8b8c800, query=0xb6f6e220 "SHOW FIELDS FROM users
", length=24) at client.c:2828
#13 0xba42308f in query (obj=3130842660, sql=3084416320) at mysql.c:760
#14 0xbbb3661e in call_cfunc (func=0xba423010 , recv=3130842660, len=-1078198260, argc=7353, argv=0xbfbc8dd0) at eval.c:5784
#15 0xbbb406e9 in rb_call0 (klass=3117803040, recv=3130842660, id=16321, oid=16321, argc=-1165156936, argv=0xbfbc8dd0, body=0xb9d5dd38, flags=) at eval.c:5928
#16 0xbbb4150f in rb_call (klass=3117803040, recv=3130842660, mid=16321, argc=1, argv=0xbfbc8dd0, scope=0, self=3130825240) at eval.c:6176
#17 0xbbb3e0ce in rb_eval (self=3130825240, n=) at eval.c:3506
#18 0xbbb3c074 in rb_yield_0 (val=6, self=3130825240, klass=, flags=, avalue=0) at eval.c:5095
#19 0xbbb3e388 in rb_eval (self=3130825240, n=) at eval.c:3311
#20 0xbbb3d4f2 in rb_eval (self=3130825240, n=) at eval.c:3691
#21 0xbbb3c074 in rb_yield_0 (val=6, self=3130825240, klass=, flags=, avalue=0) at eval.c:5095
#22 0xbbb3e388 in rb_eval (self=3137569380, n=) at eval.c:3311
#23 0xbbb3c074 in rb_yield_0 (val=6, self=3137569380, klass=, flags=, avalue=0) at eval.c:5095
#24 0xbbb3e388 in rb_eval (self=3137569380, n=) at eval.c:3311
#25 0xbbb410ce in rb_call0 (klass=3137569280, recv=3137569380, id=41473, oid=41473, argc=0, argv=0x0, body=0xbb041b5c, flags=) at eval.c:6079
#26 0xbbb4150f in rb_call (klass=3137569280, recv=3137569380, mid=41473, argc=0, argv=0x0, scope=1, self=3137569380) at eval.c:6176
#27 0xbbb3e1f9 in rb_eval (self=3137569380, n=) at eval.c:3521
#28 0xbbb40164 in rb_eval (self=3137569380, n=) at eval.c:3236
#29 0xbbb3e050 in rb_eval (self=3137569380, n=) at eval.c:3501
#30 0xbbb410ce in rb_call0 (klass=3137569280, recv=3137569380, id=41489, oid=41489, argc=0, argv=0x0, body=0xbb048a38, flags=) at eval.c:6079
=end