Hallo.

I thought that I had PHP 4.2.1 compiled just fine on SuSE 7.2, 
however when I start Apache 1.3.19, it seg faults.

I compiled PHP like this:

CFLAGS="-O2 -m486 -fno-strength-reduce -fPIC -DHAVE_LIBDL=1 \
        -I'/usr/include/mysql' -I/usr/include/gd" \
LDFLAGS=        \
EXTRA_LIBS="-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl \
        -lm -L/usr/X11R6/lib/ -lpng -lXpm -lssl" \
./configure i386-suse-linux --prefix=/usr/share
--datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share
--includedir=/usr/include --with-config-file-path=/etc
--with-exec-dir=/usr/lib/php/bin --with-mm --enable-versioning
--enable-yp --enable-bcmath --enable-trans-sid
--enable-inline-optimization --enable-track-vars --enable-magic-quotes
--enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-shmop --enable-calendar --enable-mbstring
--enable-mbstr-enc-trans --enable-exif --enable-memory-limit
--enable-wddx --enable-filepro --enable-dbase --enable-ctype
--disable-debug --enable-force-cgi-redirect --enable-discard-path
--enable-sigchild --with-pear=/usr/share/php/pear --with-pgsql=/usr
--with-mysql=/usr --with-imap=yes --with-imap --with-imap-ssl
--with-curl --enable-cli --with-mhash --with-ming --with-recode
--with-iconv --with-dom --with-dom-xslt --with-dom-exslt --with-gd=yes
--enable-gd-native-ttf --enable-gd-imgstrttf --with-tiff-dir=/usr
--with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6
--with-ttf --with-freetype --with-freetype-dir=/usr/include/freetype2
--with-t1lib --with-zlib=yes --with-bz2 --with-gmp --with-mcal=/usr
--with-sablot --with-ftp --enable-ftp --with-gdbm --with-ndbm
--with-qtdom=/usr/lib/qt --with-openssl --with-gettext --with-mcrypt
--enable-dbx --enable-mbregex --with-apxs=/usr/sbin/apxs
--with-pgsql=/usr --with-mysql=/usr --with-imap=yes
--with-imap --with-imap-ssl --with-curl --enable-cli --with-mhash
--with-ming --with-recode --with-iconv --with-dom --with-dom-xslt
--with-dom-exslt --with-gd=yes --enable-gd-native-ttf
--enable-gd-imgstrttf --with-tiff-dir=/usr --with-jpeg-dir=/usr
--with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-ttf --with-freetype
--with-freetype-dir=/usr/include/freetype2 --with-t1lib --with-zlib=yes
--with-bz2 --with-gmp --with-mcal=/usr --with-sablot --with-ftp
--enable-ftp --with-gdbm --with-ndbm --with-qtdom=/usr/lib/qt
--with-openssl --with-gettext --with-mcrypt

As I said, when I restart Apache, it segfaults.  Here are the last
few lines of a strace (the complete strace output is available at
http://digitalprojects.com/php-strace.txt):

open("./php.ini", O_RDONLY|O_LARGEFILE) = 5
getcwd("/etc", 4095)                    = 5
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/php.ini", {st_mode=S_IFREG|0644, st_size=28100, ...}) = 0
brk(0x8379000)                          = 0x8379000
ioctl(5, TCGETS, 0xbffff3bc)            = -1 ENOTTY (Inappropriate ioctl for
device)
fstat64(5, {st_mode=S_IFREG|0644, st_size=28100, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40e6a000
read(5, "[PHP]\n; $Id: php.ini-dist,v 1.78"..., 8192) = 8192
read(5, "desired error\n; reporting level\n"..., 8192) = 8192
read(5, "dll\n;extension=php_ifx.dll\n;exte"..., 8192) = 8192
brk(0x837a000)                          = 0x837a000
brk(0x837b000)                          = 0x837b000
read(5, "ession.entropy_length = 16\n\n;ses"..., 8192) = 3524
read(5, "", 4096)                       = 0
brk(0x837c000)                          = 0x837c000
read(5, "", 8192)                       = 0
ioctl(5, TCGETS, 0xbfffe7f8)            = -1 ENOTTY (Inappropriate ioctl for
device)
close(5)                                = 0
munmap(0x40e6a000, 4096)                = 0
brk(0x837d000)                          = 0x837d000
brk(0x837e000)                          = 0x837e000
brk(0x837f000)                          = 0x837f000
brk(0x8380000)                          = 0x8380000
brk(0x8381000)                          = 0x8381000
brk(0x8382000)                          = 0x8382000
brk(0x8383000)                          = 0x8383000
brk(0x8384000)                          = 0x8384000
brk(0x8385000)                          = 0x8385000
brk(0x8386000)                          = 0x8386000
brk(0x8387000)                          = 0x8387000
brk(0x8388000)                          = 0x8388000
brk(0x8389000)                          = 0x8389000
brk(0x838a000)                          = 0x838a000
brk(0x838b000)                          = 0x838b000
brk(0x838c000)                          = 0x838c000
brk(0x838d000)                          = 0x838d000
brk(0x838e000)                          = 0x838e000
brk(0x838f000)                          = 0x838f000
brk(0x8390000)                          = 0x8390000
brk(0x8391000)                          = 0x8391000
brk(0x8392000)                          = 0x8392000
brk(0x8393000)                          = 0x8393000
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=22205, ...}) = 0
old_mmap(NULL, 22205, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40e6a000
close(5)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300!\0"..., 1024) =
1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=45903, ...}) = 0
old_mmap(NULL, 40676, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0x40e70000
mprotect(0x40e79000, 3812, PROT_NONE)   = 0
old_mmap(0x40e79000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5,
0x8000) = 0x40e79000
close(5)                                = 0
munmap(0x40e6a000, 22205)               = 0
open("/etc/protocols", O_RDONLY)        = 5
shmat(5, 0x1, 0x1)                      = ?
shmat(5, 0x1, 0x2)                      = ?
fstat64(5, {st_mode=S_IFREG|0644, st_size=6327, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40e6a000
read(5, "#\n# protocols\tThis file describe"..., 4096) = 4096
close(5)                                = 0
munmap(0x40e6a000, 4096)                = 0
open("/etc/protocols", O_RDONLY)        = 5
shmat(5, 0x1, 0x1)                      = ?
shmat(5, 0x1, 0x2)                      = ?
fstat64(5, {st_mode=S_IFREG|0644, st_size=6327, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40e6a000
read(5, "#\n# protocols\tThis file describe"..., 4096) = 4096
close(5)                                = 0
munmap(0x40e6a000, 4096)                = 0
brk(0x8395000)                          = 0x8395000
brk(0x8396000)                          = 0x8396000
brk(0x8398000)                          = 0x8398000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

There's only one thing which is irritating me:

ioctl(5, TCGETS, 0xbfffe7f8)            = -1 ENOTTY (Inappropriate ioctl for device)

Anyone got an idea about what might be broken here?

Thanks a lot,

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.iso-top.de      |    Jabber: [EMAIL PROTECTED]
   iso-top.de - Die gŁnstige Art an Linux Distributionen zu kommen
______________________________________________________________________________
Seien Sie dabei und sichern Sie sich 500 WEB.Cent, 100% Leistung
und 100% Vorteil. https://digitaledienste.web.de/Club/?mc=021110


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to