Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201179 - dev-php5/xdebug-2.0.2 causes php segfault
Summary: dev-php5/xdebug-2.0.2 causes php segfault
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-04 02:42 UTC by Dave
Modified: 2008-11-14 14:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,14.58 KB, text/plain)
2007-12-04 02:43 UTC, Dave
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave 2007-12-04 02:42:09 UTC
Segmentation fault when xdebug is installed.
Here is what I get from gdb:
mccoy ~ # gdb /usr/bin/php
GNU gdb 6.7.1
Copyright (C) 2007 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/php

Program received signal SIGSEGV, Segmentation fault.
0xb7ee8662 in add_stack_frame (zdata=0x0, op_array=0x86edb4c, type=<value optimized out>)
    at /var/tmp/portage/dev-php5/xdebug-2.0.2/work/xdebug-2.0.2/xdebug.c:1166
1166    /var/tmp/portage/dev-php5/xdebug-2.0.2/work/xdebug-2.0.2/xdebug.c: No such file or directory.
        in /var/tmp/portage/dev-php5/xdebug-2.0.2/work/xdebug-2.0.2/xdebug.c
(gdb) bt
#0  0xb7ee8662 in add_stack_frame (zdata=0x0, op_array=0x86edb4c, type=<value optimized out>)
    at /var/tmp/portage/dev-php5/xdebug-2.0.2/work/xdebug-2.0.2/xdebug.c:1166
#1  0xb7eea7bb in xdebug_execute (op_array=0x86edb4c) at /var/tmp/portage/dev-php5/xdebug-2.0.2/work/xdebug-2.0.2/xdebug.c:1464
#2  0xb60c96a3 in suhosin_execute_ex (op_array=0x86edb4c, zo=0, dummy=0) at /var/tmp/portage/dev-php5/suhosin-0.9.20/work/suhosin-0.9.20/execute.c:558
#3  0xb60c96ed in suhosin_execute (op_array=0x86edb4c) at /var/tmp/portage/dev-php5/suhosin-0.9.20/work/suhosin-0.9.20/execute.c:570
#4  0xb6d22e9a in zm_activate_java (type=1, module_number=48) at /var/tmp/portage/dev-php5/php-java-bridge-4.3.0/work/php-java-bridge-4.3.0/java.c:159
#5  0x082e8394 in module_registry_request_startup (module=0x84da190) at /var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/Zend/zend_API.c:1952
#6  0x082ee628 in zend_hash_apply (ht=0x846e580, apply_func=0x82e8359 <module_registry_request_startup>)
    at /var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/Zend/zend_hash.c:867
#7  0x082e0513 in zend_activate_modules () at /var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/Zend/zend.c:911
#8  0x082851a2 in php_request_startup () at /var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/main/main.c:1303
#9  0x08365a1a in main (argc=1, argv=0xbff34cf4) at /var/tmp/portage/dev-lang/php-5.2.5/work/php-5.2.5/sapi/cli/php_cli.c:1042
Comment 1 Dave 2007-12-04 02:43:23 UTC
Created attachment 137684 [details]
emerge --info
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-04 07:42:04 UTC
emerge -pv output, please. Also, try w/ suhosin and the weird java-bridge thingy disabled. ;)
Comment 3 Dave 2007-12-05 00:41:24 UTC
mccoy ~ # emerge php -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-5.2.5  USE="apache2 bcmath berkdb bzip2 calendar cdb cgi cjk cli crypt ctype curl curlwrappers debug discard-path doc exif fdftk filter firebird flatfile force-cgi-redirect ftp gd gmp hash iconv imap inifile iodbc ipv6 java-external json kerberos ldap ldap-sasl mcve mhash mssql mysql mysqli ncurses nls odbc pcntl pcre pdo pic posix postgres qdbm readline reflection session sharedext sharedmem simplexml snmp soap sockets spell spl sqlite ssl suhosin sysvipc tidy tokenizer truetype unicode wddx xml xmlreader xmlrpc xmlwriter xpm xsl yaz zip zlib -adabas -birdstep -concurrentmodphp -db2 -dbase -dbmaker -empress -empress-bcs -esoob -fastbuild -frontbase -gd-external -gdbm -interbase -libedit -msql -oci8 -oci8-instant-client -recode -sapdb -solid -sybase -sybase-ct -threads -zip-external" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-04 01:01:57 UTC
Please, disable the php-java-bridge thing (p.masked now anyway) and try again.
Comment 5 Ivan Yarych 2008-11-14 14:19:45 UTC
I have the same problem. I have never noticed it before I installed Joomla (not from Portage, but manually) - it sometimes segfaults showing strange errors, sometimes empty page and sometimes works.

vanya@ravlyk ~ $ emerge php -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-5.2.6-r7  USE="apache2 bcmath berkdb bzip2 cli crypt ctype curl exif ftp gd gdbm hash iconv imap mysql mysqli ncurses nls pcre readline reflection session soap spell spl sqlite ssl threads truetype unicode xml zip zlib -adabas -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -gd-external -gmp -inifile -interbase -iodbc -ipv6 (-java-external) -json -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -sockets -solid -suhosin -sybase -sybase-ct -sysvipc -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip-external" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 6 Ivan Yarych 2008-11-14 14:21:19 UTC
vanya@ravlyk ~ $ emerge --info
Portage 2.1.4.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r9 i686)
=================================================================
System uname: 2.6.24-tuxonice-r9 i686 AMD Sempron(tm) 2200+
Timestamp of tree: Fri, 14 Nov 2008 01:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/ltsp-4.2/i386/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/store/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/ http://de-mirror.org/distro/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LC_ALL="uk_UA.UTF-8"
LINGUAS="uk ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/auto/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acpi alsa apache2 arts asf bcmath berkdb branding bzip2 cairo cdr cli cracklib crypt ctype cups curl dbus dga dri dvd dvdr dvdread emboss encode esd evo exif fam firefox fortran ftp gdbm gif gpm gstreamer gtk gtk2 hal iconv icq imap isdnlog jabber javascript jpeg jpeg2k mad midi mikmod mmx mp3 mpeg mudflap nas ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdf perl php plotutils png pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection sasl session soap spell spl sse ssl startup-notification svg tcpd tiff tk truetype unicode usb vorbis win32codecs x86 xcb xfce xml xmp xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers ident include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias xulrunner" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="uk ru en" USERLAND="GNU" VIDEO_CARDS="sis i810 fbdev vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS