ID:               42305
 Updated by:       [EMAIL PROTECTED]
 Reported By:      danil dot megrabjan at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         PDO related
 Operating System: SLES10
 PHP Version:      5.2.4
 Assigned To:      rrichards
 New Comment:

So all other crashes are gone, only this odbc thing crashes?
>From what I can see, it actually segfaults outside PHP. Can you please
add a backtrace without the full output? ie. just use 'bt'.


Previous Comments:
------------------------------------------------------------------------

[2007-09-26 12:23:04] danil dot megrabjan at gmail dot com

Thank you! For your work.
As you know, on this month i sent many various backtraces for your.
After update to last 5.2.5-dev, now i have only one type of backtrace.
This is bug linked with pdo_odbc. I have big bt, and excuse me, if i
must not posted them on this page.

I use pdo_odbc=unixODBC, SybaseASA drivers 9 + all patches.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211283776 (LWP 4166)]
0xb7798bee in uodbc_update_stats (h=0x74656c, stats_type_mask=3,
value=0x1) at __stats.c:379
379         if (memcmp(sh->id, UODBC_STATS_ID, sizeof(sh->id)) != 0)
(gdb)

#0  0xb7798bee in uodbc_update_stats (h=0x74656c, stats_type_mask=3,
value=0x1) at __stats.c:379
        i = <value optimized out>
        sh = (uodbc_stats_handle_t *) 0x74656c
        lk = <value optimized out>
#1  0xb7750c3f in __SQLAllocHandle (handle_type=3,
input_handle=0x8335418, output_handle=0x847c618, requested_version=0)
    at SQLAllocHandle.c:1064
        desc = (SQLHDESC) 0x8464cd8
        ret = 0
        ret1 = <value optimized out>
        statement = (DMHSTMT) 0x8464540
#2  0xb77519e4 in SQLAllocHandle (handle_type=21528,
input_handle=0x8335418, output_handle=0x847c618)
    at SQLAllocHandle.c:1270
No locals.
#3  0xb7992487 in odbc_handle_preparer (dbh=0x825c708,
    sql=0x847c230 "SELECT TPRTREE.PT_ID, TPRTREE.PT_PARENTID,
TPRTREE.PT_CODE, TPRTREE.PT_ORDER, TASKCODE=(CASE WHEN PT_LEVEL1=0 THEN
PT_CODE ELSE CONVERT(int,PT_LEVEL1) END), TPRTREE.PT_VISIBLENAME,
TPRTREE.PT_LEVEL1, "..., sql_len=453,
    stmt=0x847b408, driver_options=0x847afe0) at
/home/bagroff/distfiles/php5.2-200709251230/ext/pdo_odbc/odbc_driver.c:172
        rc = 2082
        H = (pdo_odbc_db_handle *) 0x82e39f4
        S = (pdo_odbc_stmt *) 0x847c618
        cursor_type = PDO_CURSOR_FWDONLY
        ret = 0
        nsql = 0x0
        nsql_len = 0
#4  0xb798627d in zim_PDO_prepare (ht=2, return_value=0x847b964,
return_value_ptr=0x0, this_ptr=0x82e2bbc,
    return_value_used=1) at
/home/bagroff/distfiles/php5.2-200709251230/ext/pdo/pdo_dbh.c:580
        dbh = (pdo_dbh_t *) 0x825c708
        stmt = (pdo_stmt_t *) 0x847b408
        statement = 0x847c230 "SELECT TPRTREE.PT_ID,
TPRTREE.PT_PARENTID, TPRTREE.PT_CODE, TPRTREE.PT_ORDER, TASKCODE=(CASE
WHEN PT_LEVEL1=0 THEN PT_CODE ELSE CONVERT(int,PT_LEVEL1) END),
TPRTREE.PT_VISIBLENAME, TPRTREE.PT_LEVEL1, "...
        statement_len = 453
        options = (zval *) 0x847afe0
        opt = (zval **) 0xb7b54760
        item = (zval **) 0xbf86b7b8
        ctor_args = (zval *) 0x0
        dbstmt_ce = (zend_class_entry *) 0x8225ff8
        pce = (zend_class_entry **) 0xbf86ba7c
#5  0xb7b96bdc in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86bbb4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:200
        return_reference = 0 '\0'
        opline = (zend_op *) 0x842e044
        original_return_value = (zval **) 0x110e
        current_scope = (zend_class_entry *) 0x842aab4


        current_this = (zval *) 0x83c71a4
        return_value_used = 1
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0x8306430
#6  0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86bbb4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#7  0xb7b9673d in execute (op_array=0x842c3b0) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x842e044, function_state =
{function_symbol_table = 0x82e2500, function = 0x8223bd0,
    reserved = {0x6e, 0x1016c657, 0x17, 0x842c35c}}, fbc = 0x8223bd0,
op_array = 0x842c3b0, object = 0x82e2bbc,
  Ts = 0xbf86b8b0, CVs = 0xbf86b890, original_in_execution = 1 '\001',
symbol_table = 0x83acb04,
  prev_execute_data = 0xbf86bfc4, old_error_reporting = 0x0}
#8  0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86bfc4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x83d119c
        original_return_value = (zval **) 0xbf86c67c
        current_scope = (zend_class_entry *) 0x83b8b48
        current_this = (zval *) 0x82e409c
        return_value_used = 1
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0xbf86bfe8
#9  0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86bfc4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#10 0xb7b9673d in execute (op_array=0x8425e94) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x83d119c, function_state =
{function_symbol_table = 0x83acb04, function = 0x842c3b0,
    reserved = {0x79, 0x83ce08c, 0xe, 0x8426a90}}, fbc = 0x842c3b0,
op_array = 0x8425e94, object = 0x83c71a4,
  Ts = 0xbf86bd00, CVs = 0xbf86bcd0, original_in_execution = 1 '\001',
symbol_table = 0x82b92a8,
  prev_execute_data = 0xbf86c6b4, old_error_reporting = 0x0}
#11 0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86c6b4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x83f9760
        original_return_value = (zval **) 0xbf86c920
        current_scope = (zend_class_entry *) 0x83d59f0
        current_this = (zval *) 0x82e409c
        return_value_used = 1
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0x843bacc
#12 0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86c6b4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#13 0xb7b9673d in execute (op_array=0x8425094) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x83f9760, function_state =
{function_symbol_table = 0x82b92a8, function = 0x8425e94,
    reserved = {0x77, 0x10919c60, 0x20, 0x8425040}}, fbc = 0x8425e94,
op_array = 0x8425094, object = 0x82e409c,
  Ts = 0xbf86c100, CVs = 0xbf86c0e0, original_in_execution = 1 '\001',
symbol_table = 0x8263e08,
  prev_execute_data = 0xbf86d684, old_error_reporting = 0x0}
#14 0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86d684)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x83a60a8
        original_return_value = (zval **) 0xbf86d828
        current_scope = (zend_class_entry *) 0x839fa0c
        current_this = (zval *) 0x83217dc
        return_value_used = 0
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0xbf86d6a8
#15 0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86d684)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#16 0xb7b9673d in execute (op_array=0x83a528c) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x83a60a8, function_state =
{function_symbol_table = 0x8263e08, function = 0x8425094,
    reserved = {0x83217dc, 0x1717c41c, 0xc, 0x83a522c}}, fbc =
0x8425094, op_array = 0x83a528c, object = 0x82e409c,
  Ts = 0xbf86c7f0, CVs = 0xbf86c7d0, original_in_execution = 1 '\001',
symbol_table = 0x830ddac,
  prev_execute_data = 0xbf86d8b4, old_error_reporting = 0x0}
#17 0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86d8b4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x83a0814
        original_return_value = (zval **) 0xbf86da94
        current_scope = (zend_class_entry *) 0x839fa0c
        current_this = (zval *) 0x83217dc
        return_value_used = 0
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0xbf86d8d8
#18 0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86d8b4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#19 0xb7b9673d in execute (op_array=0x83a1a20) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x83a0814, function_state =
{function_symbol_table = 0x830ddac, function = 0x83a528c,
    reserved = {0x65, 0xac9e9977, 0x7, 0x83a19c4}}, fbc = 0x83a528c,
op_array = 0x83a1a20, object = 0x83217dc,
  Ts = 0xbf86d7c0, CVs = 0xbf86d7a0, original_in_execution = 1 '\001',
symbol_table = 0x830dbc0,
  prev_execute_data = 0xbf86daf4, old_error_reporting = 0x0}
#20 0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86daf4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x82cf28c
        original_return_value = (zval **) 0xbf86dd60
        current_scope = (zend_class_entry *) 0x82cce2c
        current_this = (zval *) 0x82d9fa4
        return_value_used = 0
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0xbf86db18
#21 0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86daf4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#22 0xb7b9673d in execute (op_array=0x82bcd84) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x82cf28c, function_state =
{function_symbol_table = 0x830dbc0, function = 0x83a1a20,
    reserved = {0x74, 0xfa92c59, 0x1, 0x82bcd30}}, fbc = 0x83a1a20,
op_array = 0x82bcd84, object = 0x83217dc,
  Ts = 0xbf86d9f0, CVs = 0xbf86d9d0, original_in_execution = 1 '\001',
symbol_table = 0x830da78,
  prev_execute_data = 0xbf86de04, old_error_reporting = 0x0}
#23 0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86de04)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x82c0828
        original_return_value = (zval **) 0xbf86e170
        current_scope = (zend_class_entry *) 0x832fcc8
        current_this = (zval *) 0x8330968
        return_value_used = 0
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0xbf86de28
#24 0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86de04)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#25 0xb7b9673d in execute (op_array=0x83307e4) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x82c0828, function_state =
{function_symbol_table = 0x830da78, function = 0x82bcd84,
    reserved = {0x74, 0xfa92c59, 0x1, 0x82646e8}}, fbc = 0x82bcd84,
op_array = 0x83307e4, object = 0x82d9fa4,
  Ts = 0xbf86dc30, CVs = 0xbf86dc10, original_in_execution = 1 '\001',
symbol_table = 0x830d878,
  prev_execute_data = 0xbf86e2d4, old_error_reporting = 0x0}
#26 0xb7b96d56 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf86e2d4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:234
        opline = (zend_op *) 0x82612b4
        original_return_value = (zval **) 0xbf86e368
        current_scope = (zend_class_entry *) 0x0
        current_this = (zval *) 0x0
        return_value_used = 0
        should_change_scope = 1 '\001'
        ctor_opline = (zend_op *) 0xbf86e2f8
#27 0xb7b97829 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbf86e2d4)
    at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:322
No locals.
#28 0xb7b9673d in execute (op_array=0x825c600) at
/home/bagroff/distfiles/php5.2-200709251230/Zend/zend_vm_execute.h:92
        execute_data = {opline = 0x82612b4, function_state =
{function_symbol_table = 0x830d878, function = 0x83307e4,
    reserved = {0x0, 0xbf86e2f8, 0x1, 0x0}}, fbc = 0x83307e4, op_array
= 0x825c600, object = 0x8330968, Ts = 0xbf86df50,  CVs = 0xbf86df20,
original_in_execution = 0 '\0', symbol_table = 0xb7cd36b0,
prev_execute_data = 0x0,
  old_error_reporting = 0x0}
#29 0xb7b719bf in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /home/bagroff/distfiles/php5.2-200709251230/Zend/zend.c:1134
        files = 0xbf86e3a4 ""
        i = 1
        file_handle = (zend_file_handle *) 0xbf870614
        orig_op_array = (zend_op_array *) 0x0
        orig_retval_ptr_ptr = (zval **) 0x0
        local_retval = (zval *) 0x0
#30 0xb7b203da in php_execute_script (primary_file=0xbf870614)
    at /home/bagroff/distfiles/php5.2-200709251230/main/main.c:2000
        realfile =
"\000\000\000\000\b&#9618;\206&#9618;\210\002\000\000&#9618;T\026\b\210&#9618;&#695;\b&#9618;\206&#9618;&#9618;G&#9618;&#9618;h\024\031\bXJA\b|&#9618;&#567;&#9618;\001\000\000\000\000\000\000\000\000\000\000&#9618;\003\207&#9618;cu&#9618;&#9618;XJA\b|&#9618;&#567;&#9618;\001",
'\0' <repeats 13 times>,
"@D\227C\bD\227C\b\024RD\b\026\000\000\000\230&#9618;\206&#9618;\2328&#9618;&#9618;h\024\031\b&#9618;QD\b7\000\000\0000u&#695;&#9618;\001\000\000\000\000\000\000\000\000\000\000|\"&#9618;&#9618;&#9618;@D\b\004\000\000\000&#9618;\006&#887;\027RD\bF\000\000\000\030&#9618;/\b&#9618;QD\b&#9618;=D\b&#9618;\000\000\000\224=D\b<\000\000\000&#9618;\000\000\000\024RD\b0sC\b&#9618;&#9618;\206&#9618;\004\000\000"...
        __orig_bailout = (jmp_buf *) 0xbf870578
        __bailout = {{__jmpbuf = {120, 135681184, -1081678924,
-1081670440, 1493838241, 1363069846}, __mask_was_saved = 0,
    __saved_mask = {__val = {136937744, 1397051990, 136938132,
3085373812, 136953576, 136936120, 135681184, 3083529070,
        3213296808, 1493944785, 1362967464, 0, 32, 136938156, 600,
3085430772, 136938312, 136918960, 3213296744, 0,
        429496729, 5, 0, 0, 0, 0, 0, 242, 2734592, 3084910580,
135681184, 3085340052}}}}
        prepend_file_p = (zend_file_handle *) 0x0
        append_file_p = (zend_file_handle *) 0x0
        prepend_file = {type = 0 '\0', filename = 0x0, opened_path =
0x0, handle = {fd = 0, fp = 0x0, stream = {
      handle = 0x0, reader = 0, closer = 0, fteller = 0, interactive =
0}}, free_filename = 0 '\0'}
        append_file = {type = 0 '\0', filename = 0x0, opened_path =
0x0, handle = {fd = 0, fp = 0x0, stream = {
      handle = 0x0, reader = 0, closer = 0, fteller = 0, interactive =
0}}, free_filename = 0 '\0'}
        old_cwd = 0xbf86e3c0 "/usr/local/php/lib"
        retval = 0
#31 0xb7beb333 in php_handler (r=0x8297ab8)
    at
/home/bagroff/distfiles/php5.2-200709251230/sapi/apache2handler/sapi_apache2.c:631
        zfd = {type = 5 '\005', filename = 0x82987a8
"/usr/local/apache2/htdocs/infin.php", opened_path = 0x0, handle = {
    fd = 136693672, fp = 0x825c7a8, stream = {handle = 0x825c7a8,
reader = 0xb7b3491c <_php_stream_read>,
      closer = 0xb7b1eb48 <stream_closer_for_zend>, fteller =
0xb7b1eb63 <stream_fteller_for_zend>, interactive = 0}},
  free_filename = 0 '\0'}
        __orig_bailout = (jmp_buf *) 0x0
        __bailout = {{__jmpbuf = {120, 135681184, -1211438226,
-1081670024, 1493946065, 1362262554}, __mask_was_saved = 0,
    __saved_mask = {__val = {0, 0, 4166, 4166, 136936120, 135103736,
3085430772, 0, 135355648, 3213297144, 3085430772,
        134993995, 1, 0, 1, 135354368, 136936120, 4294967295,
4294967295, 4294967295, 4294967295, 4294967295, 4294967295,
        4294967295, 4294967295, 4294967295, 3085373812, 4294967295,
4294967295, 4294967295, 4294967295, 136931312}}}}
        ctx = (php_struct * volatile) 0x829b698
        conf = (void *) 0x8120388
        brigade = (apr_bucket_brigade * volatile) 0x829c1a8
        bucket = (apr_bucket *) 0x0
        rv = 0
        parent_req = (request_rec * volatile) 0x0
#32 0x08074639 in ap_run_handler (r=0x8297ab8) at config.c:157
        n = 6
        rv = 137581592
#33 0x08077797 in ap_invoke_handler (r=0x8297ab8) at config.c:372
        handler = 0x8165488 "application/x-httpd-php"
        result = <value optimized out>
        old_handler = 0x0
        ignore = <value optimized out>
#34 0x0808dd4a in ap_internal_redirect (new_uri=0x829b678
"/infin.php?query=connect", r=0x8292830) at http_request.c:477
        new = (request_rec *) 0x8297ab8
        access_status = 7628140
#35 0x080a4eb4 in handler_redirect (r=0x8292830) at mod_rewrite.c:4729
No locals.
#36 0x08074639 in ap_run_handler (r=0x8292830) at config.c:157
        n = 5
        rv = 137581592
#37 0x08077797 in ap_invoke_handler (r=0x8292830) at config.c:372
        handler = 0x0
        result = <value optimized out>
        old_handler = 0x80c23db "redirect-handler"
        ignore = <value optimized out>
#38 0x0808dec8 in ap_process_request (r=0x8292830) at
http_request.c:258
        access_status = 7628140
#39 0x0808b1bb in ap_process_http_connection (c=0x828c9b0) at
http_core.c:184
        r = (request_rec *) 0x8292830
        csd = (apr_socket_t *) 0x828c818
#40 0x0807b559 in ap_run_process_connection (c=0x828c9b0) at
connection.c:43
        n = 0
        rv = 137581592
#41 0x080a9090 in child_main (child_num_arg=<value optimized out>) at
prefork.c:640
        numdesc = 0
        pdesc = (const apr_pollfd_t *) 0x0
        current_conn = (conn_rec *) 0x828c9b0
        csd = (void *) 0x828c818
        ptrans = (apr_pool_t *) 0x828c7e0
        allocator = (apr_allocator_t *) 0x828a750
        status = <value optimized out>
        i = <value optimized out>
        lr = <value optimized out>
        pollset = (apr_pollset_t *) 0x828a868
        sbh = (ap_sb_handle_t *) 0x828a860
        bucket_alloc = (apr_bucket_alloc_t *) 0x82907f0
        last_poll_idx = 0
#42 0x080a92f3 in make_child (s=0x80d7ce8, slot=0) at prefork.c:680
        pid = <value optimized out>
#43 0x080aa0cc in ap_mpm_run (_pconf=0x80d30a8, plog=0x81111a0,
s=0x80d7ce8) at prefork.c:956
        active_children = <value optimized out>
        cutoff = <value optimized out>
        index = <value optimized out>
        remaining_children_to_start = <value optimized out>
        rv = <value optimized out>
#44 0x080623d5 in main (argc=135073952, argv=0x828a7d8) at main.c:730
        c = 88 'X'
        configtestonly = 0
        confname = 0x80b33df "conf/httpd.conf"
        def_server_root = 0x80b33ef "/usr/local/apache2"
        temp_error_log = 0x0
        error = <value optimized out>
        process = (process_rec *) 0x80d1120
        server_conf = (server_rec *) 0x80d7ce8
        pglobal = (apr_pool_t *) 0x80d10a0
        pconf = (apr_pool_t *) 0x80d30a8
        plog = (apr_pool_t *) 0x81111a0
        ptemp = (apr_pool_t *) 0x80d90c0
        pcommands = (apr_pool_t *) 0x80d50b0
        opt = (apr_getopt_t *) 0x80d5148
        rv = 0
        optarg = 0x0

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42305

-- 
Edit this bug report at http://bugs.php.net/?id=42305&edit=1

Reply via email to