> 
> >Description:
> 
> I'm getting a pretty consistant crash in mysqld:
> 
> /usr/ports/databases/mysql323-server/work/mysql-3.23.32/sql/mysqld: ready for 
>connections
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x282ae35c in bcopy () from /usr/lib/libc_r.so.4
> (gdb) bt
> #0  0x282ae35c in bcopy () from /usr/lib/libc_r.so.4
> #1  0x282c00a8 in _thread_autoinit_dummy_decl () from /usr/lib/libc_r.so.4
> #2  0x282afcca in __dtoa () from /usr/lib/libc_r.so.4
> #3  0x282adb3b in vfprintf () from /usr/lib/libc_r.so.4
> #4  0x282abc56 in vfprintf () from /usr/lib/libc_r.so.4
> #5  0x2829d4cd in sprintf () from /usr/lib/libc_r.so.4
> #6  0x80633e0 in Field_float::val_str (this=0x9175410, val_buffer=0xbf7f046c, 
>val_ptr=0xbf7f046c) at field.cc:1847

<snip>


> 1847        sprintf(to,"%.*f",dec,nr);
> (gdb) print dec
> $1 = 2 '\002'
> (gdb) print nr
> $2 = 999204736
> (gdb) print to
> $3 = 0xbf7f047c "1"
> 



Looking through the source at that point:

#ifdef HAVE_SNPRINTF_
    sprintf(to,val_buffer->length(),"%.*f",dec,nr);
#else
    sprintf(to,"%.*f",dec,nr);
#endif


I don't know why configure doesn't think I have snprintf, but I guess I'm
glad it doesn't, because shouldn't that cause bad things if I did? shouldn't
the line be:

    snprintf(to,val_buffer->length(),"%.*f",dec,nr);


In any case, I'm definately crashing on 1847, not 1845, so this isn't my
problem anyway....


-- Kevin

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to