[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-odbc
Subject:    Re: MyODBC / unixODBC seg fault
From:       Nick Gorham <nick () lurcher ! org>
Date:       2000-07-20 21:50:34
[Download RAW message or body]

Nick Rodriguez wrote:

> I'm running the latest beta of MySQL (3.23.21) and MyODBC 2.50.31 with
> unixODBC 1.8.10 (or iODBC 2.50.3) on a complete vanilla install of Caldera
> OpenLinux eServer 2.3
>
> In GDB isql faults on the following:
>
> (given run <DBNAME>)
> Program received signal SIGSEGV, Segmentation fault.
> 0x2ac7f953 in _db_enter_ ()
>
> And a backtrace returns:
>
> #0  0x2ac7f953 in _db_enter_ ()
> #1  0x2ac5e7e4 in myodbc_init () at dll.c:25
> #2  0x2ac5d129 in SQLAllocEnv (phenv=0x804c524) at connect.c:29
> #3  0x2aac94ae in SQLColumns () at SQLConnect.c:673
> #4  0x2aaca60b in SQLConnect (connection_handle=134529288,
>     server_name=0x7ffff938 "PG", name_length1=-3, user_name=0x7ffff808 "",
>     name_length2=-3, authentication=0x7ffff6d8 "", name_length3=-3)
>     at SQLConnect.c:1444
> #5  0x8048ff7 in OpenDatabase (phEnv=0x804b928, phDbc=0x804b92c,
>     szDSN=0x7ffff938 "PG", szUID=0x7ffff808 "", szPWD=0x7ffff6d8 "")
>     at isql.c:145
> #6  0x8048e21 in main (argc=2, argv=0x7ffffab4) at isql.c:77
> #7  0x2ab58737 in __libc_start_main ()
>

There is something stomping on your stack here, the backtrace shows a call into
SQLColumns from SQLConnect, there is no such call. Have you compiled all the
part's (unixODBC, MyODBC and MySQL) from source, also what version on glibc does
caldera present, can you do a ldd on the MyODBC driver lib and the
unixODBC driver manager lib (libodbc.so), is one or the other using threads
(linking with libpthreads) also can you check that there is only one copy of the
DM lib and MyODBC lib on the system.

Faling all else, can I get a telnet onto the box, this seems strangly broken.

Nick
--
"I wish there was a knob on the TV to turn up the intelligence,
There's a knob called brightness, but it doesn't work."
- Eugene P. Gallagher



---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail myodbc-thread1795@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail myodbc-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic