Your message dated Mon, 6 Jun 2005 03:04:09 -0700 with message-id <[EMAIL PROTECTED]> and subject line Segfault When Calling mysql_real_connect() After mysql_options() has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 12 Dec 2002 05:41:41 +0000 >From [EMAIL PROTECTED] Wed Dec 11 23:41:41 2002 Return-path: <[EMAIL PROTECTED]> Received: from mail7.uunet.ca [142.77.1.26] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 18MM6P-00024U-00; Wed, 11 Dec 2002 23:41:41 -0600 Received: from mail.flarenet.com (server.flarenet.com [209.205.21.130]) by mail7.uunet.ca with SMTP id <487728-8708>; Thu, 12 Dec 2002 00:41:39 -0500 Received: (qmail 9454 invoked from network); 12 Dec 2002 05:41:36 -0000 Received: from dilbert.flarenet.com (209.205.21.135) by 0 with SMTP; 12 Dec 2002 05:41:36 -0000 Received: from rjkaes by dilbert.flarenet.com with local (Exim 3.36 #1 (Debian)) id 18MM6J-0007lG-00 for <[EMAIL PROTECTED]>; Thu, 12 Dec 2002 00:41:35 -0500 Date: Thu, 12 Dec 2002 00:41:35 -0500 From: Robert James Kaes <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Segfault When Calling mysql_real_connect() After mysql_options() Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-GPG-Fingerprint: B677 3EFC 625C D447 8E44 E5EE DD63 D2E3 FF2B A643 X-GPG-Key: 1024D/FF2BA643 2002-03-28 Robert James Kaes <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-7.2 required=5.0 tests=SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MUTT version=2.41 X-Spam-Level: Package: libmysqlclient10 Version: 3.23.49-8 Severity: serious A segmentation fault occurs whenever I call mysql_options() before a call to mysql_real_connect(). The segmentation fault is in the strcend() function. The following program demonstrates the problem: #include <mysql.h> #include <stdio.h> int main(int argc, char** argv) { MYSQL mysql; mysql_init(&mysql); mysql_options(&mysql, MYSQL_READ_DEFAULT_GROUP, "some_program_name"); mysql_real_connect(&mysql, "localhost", NULL, NULL, "test", 0, NULL, 0); return 0; } I compiled it using gcc version 2.95.4 20011002 (Debian prerelease) on a Woody box using the following command line: $ gcc -Wall -I/usr/include/mysql -g -o mysqltester mysql.c -lmysqlclient If I run the program under gdb I get the following output: $ gdb mysqltester GNU gdb 2002-04-01-cvs Copyright 2002 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-linux"... (gdb) run Starting program: /admin/mysqltester Program received signal SIGSEGV, Segmentation fault. 0x4002ef60 in strcend () from /usr/lib/libmysqlclient.so.10 (gdb) bt #0 0x4002ef60 in strcend () from /usr/lib/libmysqlclient.so.10 #1 0x40020922 in simple_command () from /usr/lib/libmysqlclient.so.10 #2 0x4002124d in mysql_real_connect () from /usr/lib/libmysqlclient.so.10 #3 0x080485b4 in main (argc=1, argv=0xbffffda4) at mysql.c:10 (gdb) quit If I remove the call to mysql_options() the program runs fine. I'm at a real loss to explain this problem. -- Robert -- ------------------------------------------------------------------ Robert James Kaes --- Flarenet Inc. --- (519) 426-3782 http://www.flarenet.com/ * Putting the Service Back in Internet Service Provider * ------------------------------------------------------------------ --------------------------------------- Received: (at 172723-done) by bugs.debian.org; 6 Jun 2005 10:04:10 +0000 >From [EMAIL PROTECTED] Mon Jun 06 03:04:10 2005 Return-path: <[EMAIL PROTECTED]> Received: from dsl093-039-086.pdx1.dsl.speakeasy.net (mauritius.dodds.net) [66.93.39.86] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1DfESo-0004QQ-00; Mon, 06 Jun 2005 03:04:10 -0700 Received: by mauritius.dodds.net (Postfix, from userid 1000) id 8EE93171E36; Mon, 6 Jun 2005 03:04:09 -0700 (PDT) Date: Mon, 6 Jun 2005 03:04:09 -0700 From: Steve Langasek <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Segfault When Calling mysql_real_connect() After mysql_options() Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PMULwz+zIGJzpDN9" Content-Disposition: inline User-Agent: Mutt/1.5.9i Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: --PMULwz+zIGJzpDN9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This bug will not be fixed for the woody version of libmysqlclient, because the last point release of woody has been issued and sarge is being released this week. If this bug is still an issue for you, please upgrade to sarge. Thanks, --=20 Steve Langasek postmodern programmer --PMULwz+zIGJzpDN9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCpB+YKN6ufymYLloRAjl0AJ9LCpRUAUvkA20ZekyMqG4P8mVGlgCePRTL ZuAIKqbvd+bMBr1cMvT90zg= =lu/l -----END PGP SIGNATURE----- --PMULwz+zIGJzpDN9-- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]