Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2000 01:29:10 -0400
From:      "Thimble Smith" <tim@mysql.com>
To:        questions@freebsd.org
Subject:   bus error in bcopy from libc_r.so.4
Message-ID:  <20000626012910.A73476@threads.polyesthetic.msg>

next in thread | raw e-mail | index | archive | help
Hi.  I'm trying to track down a bug that MySQL is triggering;
I have core files and I can reproduce the problem.  I'm hoping
someone can help me figure out how to get more information on
this.

I've only tested it on 4.0-STABLE (updated around June 19), but
the other user had it happen on 3.4-STABLE as well.

I'd be glad to have someone log in to my machine to poke around
if it were useful.


After mysqld crashes in gdb, here is what I get (every time the
crash is in the same spot, so that's good):

tim:/usr/local/src/my/work$ gdb /usr/tmp/mysql/libexec/mysqld
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
(gdb) run
Starting program: /usr/tmp/mysql/libexec/mysqld 
/usr/tmp/mysql/libexec/mysqld: Warten auf Verbindungen.

Program received signal SIGBUS, Bus error.
0x2829e79d in bcopy () from /usr/lib/libc_r.so.4
(gdb) bt
#0  0x2829e79d in bcopy () from /usr/lib/libc_r.so.4
#1  0x282afa44 in _thread_autoinit_dummy_decl () from /usr/lib/libc_r.so.4
#2  0x282a011e in __dtoa () from /usr/lib/libc_r.so.4
#3  0x2829df77 in vfprintf () from /usr/lib/libc_r.so.4
#4  0x2829c092 in vfprintf () from /usr/lib/libc_r.so.4
#5  0x2828d9a1 in sprintf () from /usr/lib/libc_r.so.4
#6  0x8070acb in Field_float::val_str (this=0x9519c28, val_buffer=0x95150fc, 
    val_ptr=0x95150fc) at field.cc:1830
#7  0x806d467 in Field::send (this=0x9519c28, packet=0x94df3d8) at field.cc:257
#8  0x818ea7b in Item_field::send (this=0x95270e8, str_arg=0x94df3d8)
    at item.h:118
#9  0x807a46e in select_send::send_data (this=0x95274a0, items=@0x94df25c)
    at sql_class.cc:216
#10 0x80c5a97 in end_send (join=0x9515664, join_tab=0x9527a10, 
    end_of_records=false) at sql_select.cc:4120
#11 0x80c4609 in sub_select (join=0x9515664, join_tab=0x95278fc, 
    end_of_records=false) at sql_select.cc:3680
#12 0x80c4609 in sub_select (join=0x9515664, join_tab=0x95277e8, 
    end_of_records=false) at sql_select.cc:3680
#13 0x80c40d2 in do_select (join=0x9515664, fields=0x94df25c, table=0x0, 
    procedure=0x0) at sql_select.cc:3578
#14 0x80b82e3 in mysql_select (thd=0x94df000, tables=0x9527168, 
    fields=@0x94df25c, conds=0x9527428, order=0x0, group=0x0, having=0x0, 
---Type <return> to continue, or q <return> to quit---
    proc_param=0x0, select_options=1610752, result=0x95274a0)
    at sql_select.cc:706
#15 0x808ba1d in mysql_execute_command () at sql_parse.cc:915
#16 0x808e95f in mysql_parse (thd=0x94df000, 
    inBuf=0x9527028 "select Date,Close from Symbols S, SymbolHistory H where S.ID=H.SymbolID and S.Symbol='byku'", length=91) at sql_parse.cc:1841
#17 0x808ac3a in do_command (thd=0x94df000) at sql_parse.cc:647
#18 0x8089f48 in handle_one_connection (arg=0x94df000) at sql_parse.cc:397
#19 0x28234de7 in _thread_start () from /usr/lib/libc_r.so.4
#20 0x0 in ?? ()
(gdb) up 6
#6  0x8070acb in Field_float::val_str (this=0x9519c28, val_buffer=0x95150fc, 
    val_ptr=0x95150fc) at field.cc:1830
1830        sprintf(to,"%.*f",dec,nr);
(gdb) info local
this = (Field_float *) 0x9519c28
nr = 2.40625
to = 0x951510c "1994-07-01"
(gdb) p dec
$1 = 5 '\005'


The values sprintf is being called with are fine.  I'm just not
sure how to tell what is going on between sprintf and bcopy to
make it crash.  I would be most grateful if you could give me
some information to help me get closer to fixing this!

Thank you,

Tim
-- 
Tim Smith   < tim@mysql.com >  :MySQL Development Team:  Boone, NC  USA.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000626012910.A73476>