[unixODBC-support] Segmentation fault with unixODBC+apache+PDO

Emiliano Romero eromero at sitrack.com
Wed Nov 7 13:54:03 GMT 2007


Thanks Nick!. I was running 2.2.12, now I build 2.2.13pre from cvs and the
problem is very different now, I'm still getting a Segmentation Fault but
the gdb output is next:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1436877936 (LWP 17425)]
0xb71f02be in uodbc_update_stats (h=0x24, stats_type_mask=2,
value=0xffffffff)
    at __stats.c:379
379         if (memcmp(sh->id, UODBC_STATS_ID, sizeof(sh->id)) != 0)
(gdb) bt
#0  0xb71f02be in uodbc_update_stats (h=0x24, stats_type_mask=2,
    value=0xffffffff) at __stats.c:379
#1  0xb71bd7b2 in __SQLFreeHandle (handle_type=2, handle=0x86620d0)
    at SQLFreeHandle.c:333
#2  0xb71bdf75 in SQLFreeHandle (handle_type=2, handle=0x86620d0)
    at SQLFreeHandle.c:580
#3  0xb720ee7e in odbc_handle_closer (dbh=0x85df4f0, tsrm_ls=0x84d4f60)
    at /tmp/pear/download/PDO_ODBC-1.0.1/odbc_driver.c:134
#4  0xb7498f92 in dbh_free (dbh=0x85df4f0, tsrm_ls=0x84d4f60)
    at /root/PDO/pdo_dbh.c:1344
#5  0xb7a9ddb8 in zend_objects_store_del_ref_by_handle ()
   from /usr/lib/apache2/modules/libphp5.so
#6  0xb7a9de01 in zend_objects_store_del_ref ()
   from /usr/lib/apache2/modules/libphp5.so
#7  0xb7a7ff1a in _zval_dtor_func () from
/usr/lib/apache2/modules/libphp5.so
#8  0xb7ac9110 in ?? () from /usr/lib/apache2/modules/libphp5.so
#9  0x085dee98 in ?? ()
#10 0x00000000 in ?? ()

I see that maybe the problem is in PDO_ODBC-1.0.1.

Any idea of what could be?

Thanks and Regards,

Emiliano Romero

-----Mensaje original-----
De: unixodbc-support-bounces at easysoft.com
[mailto:unixodbc-support-bounces at easysoft.com] En nombre de Nick Gorham
Enviado el: Miércoles, 07 de Noviembre de 2007 06:38 a.m.
Para: Support for the unixODBC project
Asunto: Re: [unixODBC-support] Segmentation fault with unixODBC+apache+PDO

Emiliano Romero wrote:

>Hi!, I'm making some test to use unixODBC in our Linux servers to make a
>connection pool to Informix.
>
> 
>
>I have
>
>Linux stknm_tux 2.6.14-gentoo-r2 #1 SMP PREEMPT Thu Nov 24 18:20:02 UTC
2005
>i686 Intel(R) Pentium(R) 4 CPU 2.26GHz GenuineIntel GNU/Linux
>
>Informix IDS 10
>
>unixODBC installed with emerge.
>
>  
>
Hi,

I would suggest building from 2,2,13pre or at least 2.2.12 source, I 
dont know from that what version you will have.

I know I fixed a pooling issue with iconv in 13pre

-- 
Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org

_______________________________________________
unixODBC-support mailing list
unixODBC-support at easysoft.com
http://mail.easysoft.com/mailman/listinfo/unixodbc-support


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.24/1115 - Release Date: 07/11/2007
09:21 a.m.



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.



More information about the unixODBC-support mailing list