Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #19

Closed
tvlooy opened this issue Sep 10, 2010 · 3 comments
Closed

Segmentation fault #19

tvlooy opened this issue Sep 10, 2010 · 3 comments

Comments

@tvlooy
Copy link

tvlooy commented Sep 10, 2010

I'm running 3.4.15 (from pear). I have a test that segfaults. My colleague tested this on Mac and it works there. This is the test.

$search = $this->getMockFromWsdl(
'http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL',
'WSI2_RecherchePointRelais'
);

I made it dump core, you can find the backtrace below. Please, let me know if you need anything else.

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 to continue, or q to quit---
#46 0x0000000000640d98 in php_execute_script ()
#47 0x0000000000726236 in ?? ()
#48 0x00007fac1a92cc4d in __libc_start_main (main=, argc=, ubp_av=, init=,

fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffda7d0888) at libc-start.c:226

#49 0x000000000042c639 in _start ()

(gdb)

@sebastianbergmann
Copy link
Owner

PHPUnit cannot segfault, only PHP can. This makes this a PHP issue -- which I cannot do anything about. Sorry.

@tvlooy
Copy link
Author

tvlooy commented Sep 10, 2010

Yes, but it's PHPUnit that causes PHP to segfault. So I guess you are not particularly happy with that. I filed it at php.net http://bugs.php.net/bug.php?id=52814

@tvlooy
Copy link
Author

tvlooy commented Sep 11, 2010

http://bugs.php.net/bug.php?id=52814&edit=2

It would be cool if the PHP project, PHPUnit and xdebug fix this together. I'll do anything I can to help, but I can't provide a test script without breaking up PHPUnit, and I'm not familiar with any of the code bases.

axiac pushed a commit to axiac/phpunit that referenced this issue May 8, 2018
…longer triggers a fatal error when certain uncloneable objects are passed to mock methods. Refs sebastianbergmannGH-19.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants