Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285908 - dev-lang/php-5.2.10 - memory leaks - signal Segmentation fault
Summary: dev-lang/php-5.2.10 - memory leaks - signal Segmentation fault
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 285910 285911 285913 285914 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-22 07:55 UTC by Szmuc Pawel
Modified: 2010-04-14 23:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Szmuc Pawel 2009-09-22 07:55:00 UTC
Hi 

I have build new stabke dev-lang/php and i have alots of info in error log

==> /var/log/httpd/apache-error_log <==
[Tue Sep 22 09:43:31 2009]  Script:  '/home/prodzekts/kolegiata/trunk/html/index.php'
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/filter/filter.c(393) :  Freeing 0x555558CD0E70 (52 bytes), script=/home/prodzekts/kolegiata/trunk/html/index.php
Last leak repeated 2 times
[Tue Sep 22 09:43:31 2009]  Script:  '/home/prodzekts/kolegiata/trunk/html/index.php'
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/main/SAPI.c(946) :  Freeing 0x555558CD0F18 (52 bytes), script=/home/prodzekts/kolegiata/trunk/html/index.php
Last leak repeated 4 times
[Tue Sep 22 09:43:31 2009]  Script:  '/home/prodzekts/kolegiata/trunk/html/index.php'
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/filter/filter.c(367) :  Freeing 0x555558B878C0 (72 bytes), script=/home/prodzekts/kolegiata/trunk/html/index.php
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/Zend/zend_API.c(827) : Actual location (location was relayed)
Last leak repeated 2 times
[Tue Sep 22 09:43:31 2009]  Script:  '/home/prodzekts/kolegiata/trunk/html/index.php'
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/Zend/zend_hash.c(433) :  Freeing 0x555558B7EC88 (83 bytes), script=/home/prodzekts/kolegiata/trunk/html/index.php
Last leak repeated 2 times
[Tue Sep 22 09:43:31 2009]  Script:  '/home/prodzekts/kolegiata/trunk/html/index.php'
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/main/php_variables.c(213) :  Freeing 0x555558AFAFF8 (24 bytes), script=/home/prodzekts/kolegiata/trunk/html/index.php
Last leak repeated 2 times
[Tue Sep 22 09:43:31 2009]  Script:  '/home/prodzekts/kolegiata/trunk/html/index.php'
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/standard/base64.c(70) :  Freeing 0x5555589F9798 (409 bytes), script=/home/prodzekts/kolegiata/trunk/html/index.php
/home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/Zend/zend_alloc.c(2503) : Actual location (location was relayed)
=== Total 18 memory leaks detected ===
[Tue Sep 22 09:45:25 2009] [notice] child pid 5890 exit signal Segmentation fault (11)



Portage 2.1.6.13 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.24.5-grsec-xxxx-grs-ipv4-64 x86_64)
=================================================================
System uname: Linux-2.6.24.5-grsec-xxxx-grs-ipv4-64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 19 Sep 2009 00:00:21 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7, 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
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.2, 1.11
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/local/apache/conf /usr/local/lib/php4 /usr/local/lib/php5 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/home/server/system/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sfperms strict userfetch"
gentoo-distfiles/"
LANG="pl_PL"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-ovh"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X509 acl addition adns agent amd64 apache2 authdaemond bacula-console bcmath berkdb big-tables bootstrap bzip2 calendar caps cdb cgi chroot clamav clamd cli contentcache corefonts courier cracklib crypt ctype cups curl disassembler discard-path dri enscript exif extras fam fastbuild fastcgi filter flatfile flv fontconfig force-cgi-redirect frontend ftp gcrypt gd gdbm geoip gnutls gpm hardened hash iconv imap inifile inode ipfilter ipv6 isdnlog java jbig jpeg jpeg2k jpgraph justify kerberos latin1 libs logrotate logwatch loop-aes mailwrapper memcache mhash mmx mudflap mysql mysqli ncurses netboot nptlonly openntpd pam pcntl pcre pdo perl php png posix postfix postgres pppd rar readline reflection rrdtool ruby securelink server session sharedext sharedmem simplexml smi sni spam-auth-user spamassassin spl sse sse2 ssl status sub subject-rewrite subversion suexec suhosin suphp svg sysfs tidy tiff tokenizer tools truetype unicode urandom vhosts vim-syntax webdav webdav-neon webdav-serf xattr xml xmlreader xmlrpc xmlwriter xorg xsl zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm 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 include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS





Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-09-22 08:19:47 UTC
*** Bug 285910 has been marked as a duplicate of this bug. ***
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-09-22 08:19:53 UTC
*** Bug 285911 has been marked as a duplicate of this bug. ***
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-09-22 08:46:06 UTC
*** Bug 285913 has been marked as a duplicate of this bug. ***
Comment 4 Szmuc Pawel 2009-09-22 08:48:23 UTC
(In reply to comment #0)
> Hi 
> 
> I have build new stabke dev-lang/php and i have alots of info in error log
> 
> ==> /var/log/httpd/apache-error_log <==
> [Tue Sep 22 09:43:31 2009]  Script: 
> '/home/prodzekts/kolegiata/trunk/html/index.php'
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/filter/filter.c(393)
> :  Freeing 0x555558CD0E70 (52 bytes),
> script=/home/prodzekts/kolegiata/trunk/html/index.php
> Last leak repeated 2 times
> [Tue Sep 22 09:43:31 2009]  Script: 
> '/home/prodzekts/kolegiata/trunk/html/index.php'
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/main/SAPI.c(946)
> :  Freeing 0x555558CD0F18 (52 bytes),
> script=/home/prodzekts/kolegiata/trunk/html/index.php
> Last leak repeated 4 times
> [Tue Sep 22 09:43:31 2009]  Script: 
> '/home/prodzekts/kolegiata/trunk/html/index.php'
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/filter/filter.c(367)
> :  Freeing 0x555558B878C0 (72 bytes),
> script=/home/prodzekts/kolegiata/trunk/html/index.php
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/Zend/zend_API.c(827)
> : Actual location (location was relayed)
> Last leak repeated 2 times
> [Tue Sep 22 09:43:31 2009]  Script: 
> '/home/prodzekts/kolegiata/trunk/html/index.php'
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/Zend/zend_hash.c(433)
> :  Freeing 0x555558B7EC88 (83 bytes),
> script=/home/prodzekts/kolegiata/trunk/html/index.php
> Last leak repeated 2 times
> [Tue Sep 22 09:43:31 2009]  Script: 
> '/home/prodzekts/kolegiata/trunk/html/index.php'
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/main/php_variables.c(213)
> :  Freeing 0x555558AFAFF8 (24 bytes),
> script=/home/prodzekts/kolegiata/trunk/html/index.php
> Last leak repeated 2 times
> [Tue Sep 22 09:43:31 2009]  Script: 
> '/home/prodzekts/kolegiata/trunk/html/index.php'
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/standard/base64.c(70)
> :  Freeing 0x5555589F9798 (409 bytes),
> script=/home/prodzekts/kolegiata/trunk/html/index.php
> /home/server/system/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/Zend/zend_alloc.c(2503)
> : Actual location (location was relayed)
> === Total 18 memory leaks detected ===
> [Tue Sep 22 09:45:25 2009] [notice] child pid 5890 exit signal Segmentation
> fault (11)
> 
> 
> 
> Portage 2.1.6.13 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.3,
> glibc-2.9_p20081201-r2, 2.6.24.5-grsec-xxxx-grs-ipv4-64 x86_64)
> =================================================================
> System uname:
> Linux-2.6.24.5-grsec-xxxx-grs-ipv4-64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.11.1
> Timestamp of tree: Sat, 19 Sep 2009 00:00:21 +0000
> app-shells/bash:     4.0_p28
> dev-java/java-config: 1.3.7, 2.1.8-r1
> dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
> dev-python/pycrypto: 2.0.1-r6
> sys-apps/baselayout: 1.12.11.1
> sys-apps/sandbox:    1.6-r2
> sys-devel/autoconf:  2.13, 2.63-r1
> 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.2,
> 1.11
> sys-devel/binutils:  2.18-r3
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.27-r2
> ACCEPT_KEYWORDS="amd64"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe -march=k8"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/local/apache/conf /usr/local/lib/php4
> /usr/local/lib/php5 /var/bind"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
> CXXFLAGS="-O2 -pipe -march=k8"
> DISTDIR="/home/server/system/usr/portage/distfiles"
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sfperms strict
> userfetch"
> gentoo-distfiles/"
> LANG="pl_PL"
> LDFLAGS="-Wl,-O1"
> LINGUAS="pl"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> 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="/usr/portage"
> PORTDIR_OVERLAY="/usr/local/portage-ovh"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="X509 acl addition adns agent amd64 apache2 authdaemond bacula-console
> bcmath berkdb big-tables bootstrap bzip2 calendar caps cdb cgi chroot clamav
> clamd cli contentcache corefonts courier cracklib crypt ctype cups curl
> disassembler discard-path dri enscript exif extras fam fastbuild fastcgi filter
> flatfile flv fontconfig force-cgi-redirect frontend ftp gcrypt gd gdbm geoip
> gnutls gpm hardened hash iconv imap inifile inode ipfilter ipv6 isdnlog java
> jbig jpeg jpeg2k jpgraph justify kerberos latin1 libs logrotate logwatch
> loop-aes mailwrapper memcache mhash mmx mudflap mysql mysqli ncurses netboot
> nptlonly openntpd pam pcntl pcre pdo perl php png posix postfix postgres pppd
> rar readline reflection rrdtool ruby securelink server session sharedext
> sharedmem simplexml smi sni spam-auth-user spamassassin spl sse sse2 ssl status
> sub subject-rewrite subversion suexec suhosin suphp svg sysfs tidy tiff
> tokenizer tools truetype unicode urandom vhosts vim-syntax webdav webdav-neon
> webdav-serf xattr xml xmlreader xmlrpc xmlwriter xorg xsl zip zlib"
> ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 authn_alias authn_anon
> authn_dbm authn_default authn_file authz_dbm 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 include info
> log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
> status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork"
> ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
> LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
> text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga
> neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 
> 
> 
> 
> 
> Reproducible: Always
> 

Comment 5 Szmuc Pawel 2009-09-22 08:48:50 UTC
Sorry for this, when i refresh create new ticket Sorry for this
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2009-09-22 08:51:16 UTC
*** Bug 285914 has been marked as a duplicate of this bug. ***
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2010-04-14 23:21:00 UTC
Thanks for reporting this bug. And sorry for the delay :/

First thing: does this error still occur with php-5.2.13? If so, please reopen this bug and attach some more info:
* If at all possible, attach a small php script that produces this error
* Please provide the output of "emerge --info dev-lang/php"
* I'm curious: why are you running php from /var/tmp/portage??