4 messages in com.mysql.lists.bugsRe: segfault using libmysqld on Linux| From | Sent On | Attachments |
|---|---|---|
| Randall Severy | 31 May 2002 12:00 | |
| Peter Zaitsev | 02 Jun 2002 00:12 | |
| Michael Widenius | 03 Jun 2002 01:26 | |
| Randall Severy | 03 Jun 2002 05:57 |
| Subject: | Re: segfault using libmysqld on Linux![]() |
|---|---|
| From: | Peter Zaitsev (pet...@mysql.com) |
| Date: | 06/02/2002 12:12:01 AM |
| List: | com.mysql.lists.bugs |
Hello Randall,
Friday, May 31, 2002, 11:01:16 PM, you wrote:
RS> To whom it may concern,
RS> I am trying to convert an application that has used the MySQL 3.x RS> client library successfully for years to use the embedded MySQL server RS> library (libmysqld.a) in MySQL 4.0.1. I am trying this on a RedHat Linux RS> 6.0 server (using kernel 2.2.5-15) using gcc version "egcs-2.91.66". The RS> application compiles and links just fine with libmysqld.a, but any attempt RS> to issue a query against a database results in a segfault error.
RS> How-To-Repeat: To isolate the problem, I tried the sample RS> "test_libmysqld.c" program included in the documentation as well as the RS> mysqltest test suite. Both programs generate the same error, with a stack RS> trace similar to the following (which is from mysqltest with the RS> "create.test" test script):
As long as you have problem even with MySQL test suite and examples which is known to work, this indicates the problem is mostly related to your configuration.
1) You're using GCC "egcs-2.91.66", where the recommended compiler to use to compile MySQL is GCC 2.95.x, where x is 2 and higher) This may lead to problems. 2) Your Operation system version is quite old. You are probably using GLIBC 2.1.x which may produce some problems as well as quite old 2.2.x kernel. So we would recommend to try your test in more decent configuration and see if it works.
-- For technical support contracts, visit https://order.mysql.com/?ref=mpza __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Peter Zaitsev <pet...@mysql.com> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer /_/ /_/\_, /___/\___\_\___/ Moscow, Russia <___/ www.mysql.com M: +7 095 725 4955




