[unixODBC-support] SQLConnect Segmentation fault

Franck Lebastard Franck.Lebastard at inovmedia.com
Tue Mar 27 14:10:37 BST 2012


Hi all,

 

I am using unixODBC 2.3.1 on Debian lenny (uname -a: Linux voyager
2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux) with MySQL
(server: 5.0.51a-24+lenny5).

 

The application runs fine, but sometimes the SQLConnect call generates a
segmentation fault in a context where probably a 'Too many connections'
error should occur:

 

[C/C++ Local Application]            

                gdb/mi (26/03/12 20:14) (Suspended)  

                               Thread [1] (Suspended)              

...

                               Thread [72113] (Suspended: Signal 'SIGSEGV'
received. Description: Segmentation fault.)         

                                               21 list_add()
/export/home/pb2/build/sb_0-4307905-1321229611.88/mysql-5.5.18/mysys/list.c:
34 0xaefb32e6        

                                               20 my_SQLAllocConnect()
/export/home2/tmp/cteam/bs/connector-odbc-5.1-32bit/src/mysql-connector-odbc
-5.1.10-src/driver/handle.c:248 0xaef84e10      

                                               19 SQLAllocHandle()
/export/home2/tmp/cteam/bs/connector-odbc-5.1-32bit/src/mysql-connector-odbc
-5.1.10-src/driver/handle.c:668 0xaef85840      

                                               18 __connect_part_one()
/home/franck/Inovmedia/unixODBC-2.3.1/DriverManager/SQLConnect.c:1501
0xb773ab71  

                                               17 SQLConnect()
/home/franck/Inovmedia/unixODBC-2.3.1/DriverManager/SQLConnect.c:3932
0xb773b184       

...

                                               2 start_thread()  0xb77a14c0


                                               1 clone()  0xb759084e   

                gdb (26/03/12 20:14)     

 

Any idea ?

 

Best regards,

Franck 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20120327/f2f3b552/attachment.html>


More information about the unixODBC-support mailing list