Hi,

I have a program which calls a function which has an all-inclusive MySQL
set of code (i.e. MySQL is initialized, used, and released within the
span of the single function). The first time the function is called it
function properly, but on subsequent calls, the function terminates with
a segmentation violation. Can I not create and destroy MySQL structures
within the span of a single function and then call it over again? Here's
the full backtrace from gdb.

(gdb) bt full
#0  0x4028babc in mallopt () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x4028ac61 in malloc () from /lib/i686/libc.so.6
No symbol table info available.
#2  0x400319fe in my_malloc () from /usr/lib/libmysqlclient.so.12
No symbol table info available.
#3  0x40042df8 in vio_new () from /usr/lib/libmysqlclient.so.12
No symbol table info available.
#4  0x4002de19 in mysql_real_connect () from
/usr/lib/libmysqlclient.so.12
No symbol table info available.
#5  0x0804a58a in update_music_queue (config=0x40347f50,
current=0x804e5a0) at mysql.c:39
        dbptr = (MYSQL *) 0x8050a38
        resone = (MYSQL_RES *) 0x400b52a8
        restwo = (MYSQL_RES *) 0x4000a2e0
        resthree = (MYSQL_RES *) 0x40347f50
        row = 0xbffffa68
        query = 0x804ec18 "gothic"
        addSongQuery = 0x7de07c3 <Address 0x7de07c3 out of bounds>
        recent = 0xbffff9f4
        temp = 0x6c605fa <Address 0x6c605fa out of bounds>
        songid = 0x54f0523 <Address 0x54f0523 out of bounds>
        requested = 0x54c056f <Address 0x54c056f out of bounds>
        strHolder = 0x58205be <Address 0x58205be out of bounds>
        rowcount = 102303297
        count = 134540280
        numsongs = 0
        stringSize = 105252561
#6  0x0804b9f5 in main (argc=1, argv=0x804e5f0) at main.c:379
        conffile = 0x804e5a0 "\200\005\005\bp\005\005\b"
        holder = 0x804e5a0 "\200\005\005\bp\005\005\b"
        current = (song *) 0x804e5a0
        shoutconn = (shout_t *) 0x804f7b0
        errcount = 0
        retval = 134538656
        config = (param *) 0x804e5f0
        songinfo = 0x8050590 "KMFDM - Thrash Up!"
        metadata = (shout_metadata_t *) 0x8050470
        stringSize = 134538656
        ppid = 1077185020
---Type <return> to continue, or q <return> to quit---
#7  0x4022d7f7 in __libc_start_main () from /lib/i686/libc.so.6
No symbol table info available.

Thanks in advance for any help!!!

Deven Phillips, CISSP


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to