From: Operating system: Ubuntu Linux 10.04 PHP version: 5.3.3 Package: Unknown/Other Function Bug Type: Bug Bug description:Using PHPUnit 3.4.15 getMockFromWsdl() causes PHP to segfault
Description: ------------ I'm running PHPUnit 3.4.15 (from pear). I use Ubuntu 9.04 and PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch. I have a test in PHPUnit that makes PHP segfault. This could be reproduced on a second Ubuntu system. My colleague tested this on Mac and it works there. I filed the bug at PHPUnit but got redirected here. See: http://github.com/sebastianbergmann/phpunit/issues/issue/19/ I made the segfault dump core, you can find the test and the backtrace below. Please, let me know if you need anything else. Test script: --------------- $search = $this->getMockFromWsdl( 'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL', 'WSI2_RecherchePointRelais' ); Expected result: ---------------- PHPUnit 3.4.15 by Sebastian Bergmann. Segmentation fault Actual result: -------------- GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 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 "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/php...(no debugging symbols found)...done. warning: core file may not match specified executable file. [New Thread 10918] warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib/libcrypt-2.11.1.so...done. done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /usr/lib/libedit.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libedit.so.2 Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libncurses.so.5 Reading symbols from /lib/libssl.so.0.9.8...(no debugging symbols found)...done. Loaded symbols for /lib/libssl.so.0.9.8 Reading symbols from /usr/lib/libdb-4.8.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libdb-4.8.so Reading symbols from /lib/libbz2.so.1.0...(no debugging symbols found)...done. Loaded symbols for /lib/libbz2.so.1.0 Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libpcre.so.3 Reading symbols from /lib/librt.so.1...Reading symbols from /usr/lib/debug/lib/librt-2.11.1.so...done. done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.11.1.so...done. done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.11.1.so...done. done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libnsl.so.1...Reading symbols from /usr/lib/debug/lib/libnsl-2.11.1.so...done. done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgssapi_krb5.so.2 Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libkrb5.so.3 Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libk5crypto.so.3 Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libcom_err.so.2 Reading symbols from /usr/lib/libxml2.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libxml2.so.2 Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.11.1.so...done. done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libcrypto.so.0.9.8...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypto.so.0.9.8 Reading symbols from /lib/libresolv.so.2...Reading symbols from /usr/lib/debug/lib/libresolv-2.11.1.so...done. done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /lib/libbsd.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libbsd.so.0 Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.11.1.so...done. done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libkrb5support.so.0 Reading symbols from /lib/libkeyutils.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libkeyutils.so.1 Reading symbols from /usr/lib/php5/20090626/xdebug.so...done. Loaded symbols for /usr/lib/php5/20090626/xdebug.so Reading symbols from /usr/lib/php5/20090626/apc.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/apc.so Reading symbols from /usr/lib/php5/20090626/curl.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/curl.so Reading symbols from /usr/lib/libcurl.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libcurl.so.4 Reading symbols from /usr/lib/libidn.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libidn.so.11 Reading symbols from /usr/lib/liblber-2.4.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/liblber-2.4.so.2 Reading symbols from /usr/lib/libldap_r-2.4.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libldap_r-2.4.so.2 Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgnutls.so.26 Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libtasn1.so.3 Reading symbols from /lib/libgcrypt.so.11...(no debugging symbols found)...done. Loaded symbols for /lib/libgcrypt.so.11 Reading symbols from /lib/libgpg-error.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libgpg-error.so.0 Reading symbols from /usr/lib/php5/20090626/gd.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/gd.so Reading symbols from /usr/lib/libgd.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgd.so.2 Reading symbols from /usr/lib/libt1.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libt1.so.5 Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libX11.so.6 Reading symbols from /usr/lib/libXpm.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXpm.so.4 Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libpng12.so.0 Reading symbols from /usr/lib/libjpeg.so.62...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libfontconfig.so.1 Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libxcb.so.1 Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libexpat.so.1 Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXau.so.6 Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXdmcp.so.6 Reading symbols from /usr/lib/php5/20090626/memcache.so...done. Loaded symbols for /usr/lib/php5/20090626/memcache.so Reading symbols from /usr/lib/php5/20090626/memcached.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/memcached.so Reading symbols from /usr/lib/libmemcached.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libmemcached.so.2 Reading symbols from /usr/lib/php5/20090626/mysql.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/mysql.so Reading symbols from /usr/lib/libmysqlclient_r.so.16...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libmysqlclient_r.so.16 Reading symbols from /usr/lib/php5/20090626/mysqli.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/mysqli.so Reading symbols from /usr/lib/php5/20090626/pdo.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/pdo.so Reading symbols from /usr/lib/php5/20090626/pdo_mysql.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/pdo_mysql.so Reading symbols from /usr/lib/php5/20090626/pdo_sqlite.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/pdo_sqlite.so Reading symbols from /usr/lib/libsqlite3.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libsqlite3.so.0 Reading symbols from /usr/lib/php5/20090626/redis.so...done. Loaded symbols for /usr/lib/php5/20090626/redis.so Reading symbols from /usr/lib/php5/20090626/sqlite.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/sqlite.so Reading symbols from /usr/lib/libsqlite.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libsqlite.so.0 Reading symbols from /usr/lib/php5/20090626/sqlite3.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/sqlite3.so Reading symbols from /usr/lib/php5/20090626/thrift_protocol.so...done. Loaded symbols for /usr/lib/php5/20090626/thrift_protocol.so Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /usr/lib/php5/20090626/xsl.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/php5/20090626/xsl.so Reading symbols from /usr/lib/libexslt.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libexslt.so.0 Reading symbols from /usr/lib/libxslt.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libxslt.so.1 Reading symbols from /lib/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/libnss_files-2.11.1.so...done. done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_compat.so.2...Reading symbols from /usr/lib/debug/lib/libnss_compat-2.11.1.so...done. done. Loaded symbols for /lib/libnss_compat.so.2 Reading symbols from /lib/libnss_nis.so.2...Reading symbols from /usr/lib/debug/lib/libnss_nis-2.11.1.so...done. done. Loaded symbols for /lib/libnss_nis.so.2 Core was generated by `/usr/bin/php /usr/bin/phpunit library/PC/PickupPoint/FactoryTest.php'. Program terminated with signal 11, Segmentation fault. #0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31 31 ../sysdeps/x86_64/multiarch/../strlen.S: No such file or directory. in ../sysdeps/x86_64/multiarch/../strlen.S (gdb) bt #0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31 #1 0x00000000005f9e59 in php_addcslashes () #2 0x00007fac1991dacb in xdebug_var_export (struc=0x7fffda7cbfe8, str=0x7fffda7cbff0, level=1, debug_zval=0, options=0x373b5b0) at /build/buildd/xdebug-2.0.5/build-php5/xdebug_var.c:283 #3 0x00007fac1991df8e in xdebug_get_zval_value (val=0x34960f8, debug_zval=0, options=0x373b5b0) at /build/buildd/xdebug-2.0.5/build-php5/xdebug_var.c:365 #4 0x00007fac1990327e in add_stack_frame (zdata=0x7fac1d507358, op_array=0x2be4228, type=2) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1081 #5 0x00007fac19904984 in xdebug_execute (op_array=0x2be4228) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1512 #6 0x00000000006d165c in ?? () #7 0x00000000006bd400 in execute () #8 0x00007fac19904b9e in xdebug_execute (op_array=0x34656a0) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #9 0x00000000006e5c26 in ?? () #10 0x00000000006bd400 in execute () #11 0x00007fac19904b9e in xdebug_execute (op_array=0x345d368) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #12 0x000000000068b324 in zend_call_function () #13 0x0000000000540c24 in ?? () #14 0x00007fac19904f2a in xdebug_execute_internal (current_execute_data=0x7fac1d506678, return_value_used=1) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1631 #15 0x00000000006e5f36 in ?? () #16 0x00000000006bd400 in execute () #17 0x00007fac19904b9e in xdebug_execute (op_array=0x3463a50) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #18 0x00000000006e5c26 in ?? () #19 0x00000000006bd400 in execute () #20 0x00007fac19904b9e in xdebug_execute (op_array=0x34638b8) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #21 0x00000000006e5c26 in ?? () #22 0x00000000006bd400 in execute () #23 0x00007fac19904b9e in xdebug_execute (op_array=0x2d97620) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #24 0x00000000006e5c26 in ?? () #25 0x00000000006bd400 in execute () #26 0x00007fac19904b9e in xdebug_execute (op_array=0x34635f0) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #27 0x00000000006e5c26 in ?? () #28 0x00000000006bd400 in execute () #29 0x00007fac19904b9e in xdebug_execute (op_array=0x2fb83e8) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #30 0x00000000006e5c26 in ?? () #31 0x00000000006bd400 in execute () #32 0x00007fac19904b9e in xdebug_execute (op_array=0x2fac790) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #33 0x00000000006e5c26 in ?? () #34 0x00000000006bd400 in execute () #35 0x00007fac19904b9e in xdebug_execute (op_array=0x2c363a8) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #36 0x00000000006e5c26 in ?? () #37 0x00000000006bd400 in execute () #38 0x00007fac19904b9e in xdebug_execute (op_array=0x2c21c80) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #39 0x00000000006e5c26 in ?? () #40 0x00000000006bd400 in execute () #41 0x00007fac19904b9e in xdebug_execute (op_array=0x2c112e0) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #42 0x00000000006e5c26 in ?? () #43 0x00000000006bd400 in execute () #44 0x00007fac19904b9e in xdebug_execute (op_array=0x2be1438) at /build/buildd/xdebug-2.0.5/build-php5/xdebug.c:1562 #45 0x000000000069512d in zend_execute_scripts () ---Type <return> to continue, or q <return> to quit--- #46 0x0000000000640d98 in php_execute_script () #47 0x0000000000726236 in ?? () #48 0x00007fac1a92cc4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffda7d0888) at libc-start.c:226 #49 0x000000000042c639 in _start () (gdb) -- Edit bug report at http://bugs.php.net/bug.php?id=52814&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52814&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52814&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52814&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52814&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52814&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52814&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52814&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52814&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52814&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52814&r=support Expected behavior: http://bugs.php.net/fix.php?id=52814&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52814&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52814&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52814&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52814&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52814&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52814&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52814&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52814&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52814&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52814&r=mysqlcfg