segfaults in ResultSet_free
Paul J Stevens
paul at nfg.nl
Sat Apr 5 16:39:38 CEST 2008
Jan-Henrik,
I've started using threads in my application and now the mysql driver
starts to segfault:
Starting program: /home/paul/git/dbmail/src/dbmail-imapd -D
[Thread debugging using libthread_db enabled]
[New process 27692]
[New Thread -1217631440 (LWP 27692)]
[New Thread -1218696304 (LWP 27694)]
[Thread -1218696304 (LWP 27694) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1217631440 (LWP 27692)]
0xb7d80175 in ResultSet_free (R=0x81526e4) at src/db/ResultSet.c:65
65 (*R)->op->free(&(*R)->I);
this only happens when I use the mysql driver. The postgres driver has
exhibited some infrequent crashes but those have been very difficult to
reproduce.
My guess is it has to do with the query involved:
INSERT IGNORE INTO dbmail_headername (headername) VALUES (?)
a construct not used for postgres.
Perhaps this type of query affects the kind of MYSQL_RES returned. I'm
not sure. I'll try to investigate myself.
--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
More information about the libzdb-general
mailing list