[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()
34 0xaefb32e6        

                                               20 my_SQLAllocConnect()
-5.1.10-src/driver/handle.c:248 0xaef84e10      

                                               19 SQLAllocHandle()
-5.1.10-src/driver/handle.c:668 0xaef85840      

                                               18 __connect_part_one()

                                               17 SQLConnect()


                                               2 start_thread()  0xb77a14c0

                                               1 clone()  0xb759084e   

                gdb (26/03/12 20:14)     


Any idea ?


Best regards,



-------------- 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