ID: 42293 Updated by: [EMAIL PROTECTED] Reported By: m dot artuso at etraspa dot it -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: linux debian testing/unstable PHP Version: 5CVS-2007-08-14 (snap) New Comment:
Well, add --enable-debug to the build and perhaps then you can get useful GDB backtrace.. Previous Comments: ------------------------------------------------------------------------ [2007-08-14 08:15:20] m dot artuso at etraspa dot it I come from a debian package that is not compiling (I was doing a custom install) for the same reason. Debian mantainers suggested to file a bug here, since I noticed that the problem arises also with the latest snapshot. The compiling options came from the standard debian configure lines. Using --with-pcre-regex and leaving out --disable-rpath and --disable-static the segfault persists: Core was generated by `./sapi/cli/php'. Program terminated with signal 11, Segmentation fault. #0 0x00002b65ccba69ea in ?? () (gdb) bt #0 0x00002b65ccba69ea in ?? () I also tried to exclude the --with-pcre-regex option but I got the same output. Thanks for your help, Matteo ------------------------------------------------------------------------ [2007-08-14 07:56:51] [EMAIL PROTECTED] Why do you use system PCRE when we most likely have bundled more recent and more bug free PCRE library? Change this: --with-pcre-regex=/usr to this: --with-pcre-regex (or just leave it out, it's enabled by default anyway) These are also unnecessary: --disable-rpath --disable-static ------------------------------------------------------------------------ [2007-08-14 07:09:43] m dot artuso at etraspa dot it Description: ------------ I already successfully compiled earlier php (5.2.1) on my machine (HP Proliant 380 - with Intel Xeon 64 cpus) but now at compile time I get a segfault. The fault seems related to sapi/cli/php, which causes the segfault. Reproduce code: --------------- #./configure --prefix=/usr --enable-force-cgi-redirect --enable-fastcgi --with-config-file-path=/etc/php5/cgi --with-config-file-scan-dir=/etc/php5/cgi/conf.d --build=x86_64-linux-gnu --host=x86_64-linux-gnu --mandir=/usr/share/man --enable-debug --with-regex=php --disable-rpath --disable-static --with-pic --with-layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr --with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip --with-mime-magic=/usr/share/file/magic.mime --with-exec-dir=/usr/lib/php5/libexec --without-mm --disable-pdo --without-mysql --without-sybase-ct --without-sqlite # make test Actual result: -------------- This GDB was configured as "x86_64-linux-gnu"...BFD: /usr/src/php5.2-200708140430/sapi/cli/php: don't know how to handle OS specific section `.gnu.hash' [0x6ffffff6] "/usr/src/php5.2-200708140430/sapi/cli/php": not in executable format: File format not recognized Core was generated by `./sapi/cli/php'. Program terminated with signal 11, Segmentation fault. #0 0x00002b85523579ea in ?? () (gdb) bt #0 0x00002b85523579ea in ?? () (gdb) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42293&edit=1