|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-25 21:27 UTC] shimi@php.net
Description: ------------ I compiled PHP4.3.3 with the same configure line that I had for PHP4.3.2 and PHP4.3.3RC2 that used to work. Appears that now, it does not. [root php-4.3.3]# make install Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PHP SAPI module: apache [activating module `php4' in /etc/httpd/conf/httpd.conf] cp libs/libphp4.so /usr/lib/apache/libphp4.so chmod 755 /usr/lib/apache/libphp4.so cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf rm /etc/httpd/conf/httpd.conf.new Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ Installing PEAR environment: /usr/local/lib/php/ make[1]: *** [install-pear-installer] Segmentation fault (core dumped) make: *** [install-pear] Error 2 The configure line is as follows: [root php-4.3.3]# php -i | grep configure Configure Command => './configure' '--enable-memory-limit' '--enable-zend-multibyte' '--with-tsrm-pthreads' '--with-tsrm-pth' '--with-gzip' '--enable-yp' '--with-sablot-js' '--enable-wddx' '--enable-snmp' '--enable-shmop' '--with-mysql' '--enable-mbregex' '--enable-mbstring' '--with-ldap' '--with-imap-ssl' '--with-iconv' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--enable-ftp' '--with-dba' '--enable-calendar' '--enable-bcmath' '--with-bz2' '--with-zlib' '--with-openssl' '--enable-fastcgi' '--with-apxs' '--with-imap' '--with-gettext' '--with-kerberos' As mentioned before, it's the same configure line from the previous versions, which always worked. I would attach a gdb backtrace, just that I don't know what exactly did segfault... I Actual result: -------------- make install not completeing it's job (it is to be noted that PHP was installed as an apache SAPI module, and the CLI was, too, and even the SQLite extension that runs on PEAR, is loaded into PHP, but I still don't like the fact it didn't finish the installation process). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 20:00:01 2025 UTC |
Ok I have a script that searches the web for news, gathers them into a DB, and then creates a nice HTML summary for all of them. I have now copied sapi/cli/php to the backend creation directory, and ran this: bash-2.05$ ./php ZZZupdate-60-news.php Segmentation fault (core dumped) <?php require("Inc/hebdate.php"); require("Inc/config.php"); require("Inc/header.php"); require("Inc/categories.php"); $searchform = fopen("search.html", "r"); while(!feof($searchform)) { $output .= fgets($searchform, 10000); } fclose($searchform); $panel = $news_label . " | " . cCreateLink($economy_label,$economy_file) . " | " . cCreateLink($technology_label,$technology_file) . " | " . cCreateLink($sport_label,$sport_file) . " | " . cCreateLink($entertainment_label,$entertainment_file); $output = ereg_replace("___URL___",$news_file,$output); $output .= "<CENTER><H2>60 הכותרות האחרונות בחדשות</H2></CENTER><BR>\n"; $output .= "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=\"#9CB8D0\" ALIGN=\"Center\" WIDTH=\"97%\"><TR><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=3 WIDTH=\"100%\">"; $output .= "<TR BGCOLOR=\"#F7F7F7\"><TD COLSPAN=5><FONT FACE=\"Arial\" SIZE=\"-1\">הצג 60 כותרות אחרונות ב: ".$panel."</FONT></TD></TR>"; require("Inc/connectdb.php"); $query="SELECT * FROM news WHERE genre='news' ORDER BY unixtime DESC LIMIT 60"; require("Inc/maketable.php"); $output .= "<CENTER><FONT FACE=\"Arial\" SIZE=\"-1\">[ <A HREF=\"today-news.html\">הצג כותרות מ24 השעות האחרונות</A> ]</FONT></CENTER><BR>"; require("Inc/footer.php"); $fp=fopen($news_offset.$news_file,"w"); fputs($fp, $output); fclose($fp); ?> I know, this include various files. In those files basically there are normal for/while loops and string replaces, just like you saw here, no extra code functionality (besides the DB connection that happens in connectdb.php). Anyways... bash-2.05$ gdb ./php GNU gdb Red Hat Linux (5.2-2) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run ZZZupdate-60-news.php Starting program: ./php ZZZupdate-60-news.php Program received signal SIGSEGV, Segmentation fault. 0x0818e743 in lex_scan (zendlval=0xbfff9c24) at Zend/zend_language_scanner.c:3699 3699 Zend/zend_language_scanner.c: No such file or directory. in Zend/zend_language_scanner.c (gdb) bt #0 0x0818e743 in lex_scan (zendlval=0xbfff9c24) at Zend/zend_language_scanner.c:3699 #1 0x08198fbc in zendlex (zendlval=0xbfff9c20) at /root/php-4.3.3/Zend/zend_compile.c:2464 #2 0x0818af8f in zendparse () at Zend/zend_language_parser.c:1880 #3 0x0818dc76 in compile_file (file_handle=0xbfffab20, type=8) at Zend/zend_language_scanner.c:3110 #4 0x0818ddc1 in compile_filename (type=8, filename=0x834f5a8) at Zend/zend_language_scanner.c:3164 #5 0x081bacd9 in execute (op_array=0x835055c) at /root/php-4.3.3/Zend/zend_execute.c:2150 #6 0x081bade5 in execute (op_array=0x834b57c) at /root/php-4.3.3/Zend/zend_execute.c:2181 #7 0x081a2d48 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php-4.3.3/Zend/zend.c:885 #8 0x0817ae98 in php_execute_script (primary_file=0xbfffe8a0) at /root/php-4.3.3/main/main.c:1723 #9 0x081be2a0 in main (argc=2, argv=0xbfffe944) at /root/php-4.3.3/sapi/cli/php_cli.c:818 #10 0x402b7657 in __libc_start_main (main=0x81bd968 <main>, argc=2, ubp_av=0xbfffe944, init=0x8077114 <_init>, fini=0x8212ae0 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbfffe93c) at ../sysdeps/generic/libc-start.c:129 (gdb) hope this helps more...