Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55836 - pear (php pearcmd.php) segfaults with several command line params with mod_php 4.3.4-r4 on amd64
Summary: pear (php pearcmd.php) segfaults with several command line params with mod_ph...
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2004-07-01 16:23 UTC by Florian Huber
Modified: 2004-07-30 17:08 UTC (History)
1 user (show)

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 Florian Huber 2004-07-01 16:23:19 UTC
Pear (php pearcmd.php) segfaults with several command line params (list-all, install, etc.) with mod_php 4.3.4-r4 on amd64.

Possible reason (from strace): 
mprotect(0, 1044544, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)

Reproducible: Always
Steps to Reproduce:
1. emerge mod_php
2. pear list-all

Actual Results:  
# pear list-all
Segmentation fault


Last lines of the strace

mremap(0x2a955ce000, 311296, 311296, MREMAP_MAYMOVE) = 0x2a955ce000
select(4, [3], NULL, NULL, {60, 0})     = 1 (in [3], left {60, 0})
recvfrom(3, "", 8192, 0, NULL, NULL)    = 0
close(3)                                = 0
mmap(NULL, 311296, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2a98dc6000
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2a98e12000
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=21512, ...}) = 0
mmap(NULL, 21512, PROT_READ, MAP_SHARED, 3, 0) = 0x2a98e93000
close(3)                                = 0
futex(0x2a9899fc00, FUTEX_WAKE, 2147483647) = 0
open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\6\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=1054968, ...}) = 0
mmap(NULL, 1052736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x2a98e99000
mprotect(0, 1044544, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a98f99000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x2a98f99000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

-----------

# emerge info
Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.7)
=================================================================
System uname: 2.6.7 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="ftp://172.16.0.1/ http://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X X509 acpi alsa amd amd64 avi berkdb cddb crypt curl devfs26 dga diet
divx4linux dv dvb dvd dvdr encode esd ethereal ffmpeg flash fmod freetype gd
gdbm gif gimp gtk gtk2 icq imagemagick imap imlib imlib2 ipv6 jabber jikes jpeg
libwww maildir memlimit mpeg mpeg4 multilib mysql ncurses nls nptl nvidia
offensive oggvorbis opengl openssh pam pcap pdflib perl pic plotutils png python
qhull quicktime readline scanner sdk sdl slang speedo src ssl tcc tiff transcode
truetype type1 unicode usb v4l v4l2 vim-with-x wmf xface xine xml xml2 xmms xosd
xv xvid zlib zvbi"
Comment 1 Florian Huber 2004-07-30 17:08:59 UTC
Seems to be solved with PHP 4.3.8

Solution: 
emerge \>=dev-php/php-4.3.8