case:/tmp# LC_ALL=C gdb /usr/bin/php-cgi --core=core-php-cgi-11-33-33-18773-1333049112 --eval-command='bt full'
GNU gdb (GDB) 7.4-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php-cgi...Reading symbols from /usr/lib/debug/usr/bin/php5-cgi...done.
done.
[New LWP 18773]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".

warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20100525+lfs/mysql.so" does not match "/usr/lib/php5/20100525+lfs/mysql.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525+lfs/mysql.so" does not match "/usr/lib/php5/20100525+lfs/mysql.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20100525+lfs/mysqli.so" does not match "/usr/lib/php5/20100525+lfs/mysqli.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525+lfs/mysqli.so" does not match "/usr/lib/php5/20100525+lfs/mysqli.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20100525+lfs/pdo_mysql.so" does not match "/usr/lib/php5/20100525+lfs/pdo_mysql.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20100525+lfs/pdo_mysql.so" does not match "/usr/lib/php5/20100525+lfs/pdo_mysql.so" (CRC mismatch).

Core was generated by `/usr/bin/php-cgi'.
Program terminated with signal 11, Segmentation fault.
#0  zend_llist_add_element (l=0xbf96013c, element=0x9e961d0)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/Zend/zend_llist.c:39
39	/build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/Zend/zend_llist.c: No such file or directory.
#0  zend_llist_add_element (l=0xbf96013c, element=0x9e961d0)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/Zend/zend_llist.c:39
        tmp = 0x0
        l = 0x0
        element = 0x0
#1  0x080abf66 in _php_list_set_error_structure (error=0x9e496d0, msg=0x0)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/ext/libxml/libxml.c:485
        error_copy = {domain = -1223959561, code = 5, message = 0x17 <Address 0x17 out of bounds>, level = 166290872, 
          file = 0x2 <Address 0x2 out of bounds>, line = 0, str1 = 0x13 <Address 0x13 out of bounds>, str2 = 0x0, 
          str3 = 0x0, int1 = 0, int2 = 0, ctxt = 0x4f, node = 0x9e49550}
        ret = 0
#2  0xb710a225 in __xmlRaiseError () from /usr/lib/libxml2.so.2
No symbol table info available.
#3  0xb7148f98 in ?? () from /usr/lib/libxml2.so.2
No symbol table info available.
#4  0xb714d003 in htmlParseEntityRef () from /usr/lib/libxml2.so.2
No symbol table info available.
#5  0xb714d49a in ?? () from /usr/lib/libxml2.so.2
No symbol table info available.
#6  0xb714df6a in ?? () from /usr/lib/libxml2.so.2
No symbol table info available.
---Type <return> to continue, or q <return> to quit--- 
#7  0xb714e4e0 in ?? () from /usr/lib/libxml2.so.2
No symbol table info available.
#8  0xb714f160 in htmlParseDocument () from /usr/lib/libxml2.so.2
No symbol table info available.
#9  0x080de302 in dom_load_html.isra.1 (ht=0, return_value=0x9dc54a8, this_ptr=0x83d7321, mode=165406684)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/ext/dom/document.c:2195
        docp = 0x0
        newdoc = 0x87803c0
        intern = 0x9e49550
        doc_prop = 0xbf960488
        source = 0x835013d "\203\370\377\017\204\201\002"
        source_len = 165871992
        refcount = 0
        ret = 3557
        options = 9
        ctxt = 0x9e49550
#10 0x083d7321 in zend_do_fcall_common_helper_SPEC (execute_data=0xb6f11af0)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/Zend/zend_vm_execute.h:642
        ret = 0xb6f11ea0
        opline = 0xb6e33101
        should_change_scope = 84 'T'
        fbc = 0x9a773e0
#11 0x08392dc5 in execute (op_array=0x83296d9)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/Zend/zend_vm_execute.h:410
        ret = 0
        execute_data = 0xb6f11af0
        nested = 191 '\277'
        original_in_execution = 150 '\226'
        op_array = 0x9d633ec
#12 0x083296d9 in zend_execute_scripts (type=0, retval=0xbf962928, file_count=0)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/Zend/zend.c:1272
        i = 161746120
        file_handle = <incomplete type>
        orig_op_array = 0x1
---Type <return> to continue, or q <return> to quit---
        orig_retval_ptr_ptr = 0x0
#13 0x082c329e in php_execute_script (primary_file=0xbf962928)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/main/main.c:2473
        __orig_bailout = 0xbf9627f0
        __bailout = {{__jmpbuf = {141953012, 142083008, -1080682776, -1080678648, 1169724155, 835781524}, 
            __mask_was_saved = 0, __saved_mask = {__val = 0xbf9615f0}}}
        prepend_file_p = 0x0
        append_file_p = 0x0
        prepend_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0, 
            stream = {handle = 0x0, isatty = 0, mmap = {len = <unknown type>, pos = <unknown type>, map = 0x0, buf = 0x0, 
                old_handle = 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}}, free_filename = 0 '\000'}
        append_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0, 
            stream = {handle = 0x0, isatty = 0, mmap = {len = <unknown type>, pos = <unknown type>, map = 0x0, buf = 0x0, 
                old_handle = 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}}, free_filename = 0 '\000'}
        retval = 0
        primary_file = 0xbf962928
#14 0x0807022b in main (argc=1, argv=0xbf962a64)
    at /build/buildd-php5_5.4.0-3-i386-2XGvJx/php5-5.4.0/sapi/cgi/cgi_main.c:2422
        __bailout = {{__jmpbuf = {-1075184649, 6, 4096, 17, 100, 3}, __mask_was_saved = 134512692, __saved_mask = {
              __val = 0xbf962ab4}}}
        free_query_string = -1215623180
        exit_status = -1080676420
        cgi = 0
        file_handle = {type = ZEND_HANDLE_FILENAME, filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0, 
            stream = {handle = 0x0, isatty = 0, mmap = {len = <unknown type>, pos = <unknown type>, map = 0x0, buf = 0x0, 
                old_handle = 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}}, free_filename = 0 '\000'}
        s = 0x87806a0 ""
        behavior = -1080676399
        orig_optind = -1080676446
        orig_optarg = 0xbf962f7f "PATH=/sbin:/bin:/usr/sbin:/usr/bin"
        max_requests = -1080676498
        requests = 0
        fastcgi = 16
        bindpath = 0x21 <Address 0x21 out of bounds>
        fcgi_fd = 142083744
        repeats = 1
        start = {tv_sec = 0, tv_usec = 0}
        end = {tv_sec = 0, tv_usec = 0}
        status = 0
