I am not seeing this problem with Apache 1.3, PHP_4_3 or php5-HEAD and tru64, nor with the cli.
What platform are you seeing it on ? Could it be any unitilized or buffer overflow issue ?
Dave
----- Original Message -----
From: "Sebastian Bergmann" [email protected] To: [email protected]
Sent: Friday, March 28, 2003 2:56 AM
Subject: [PHP-DEV] bison 1.875 causes segfault
Quoted text · 17 lines
Building PHP with bison versions up to 1.75 works fine, but both bison 1.875 and 1.875a cause a segfault during the startup of PHP.
Backtrace:
Program received signal SIGSEGV, Segmentation fault. 0x081919b4 in ini_parse () at Zend/zend_ini_parser.c:1042 1042 YYSTACK_RELOCATE (yyss); (gdb) bt
#0 0x081919b4 in ini_parse () at Zend/zend_ini_parser.c:1042 #1 0x08191831 in zend_parse_ini_file (fh=0xbffff430, unbuffered_errors=1 '\001',
ini_parser_cb=0x816b336 <php_config_ini_parser_cb>, arg=0x8315a40) at /usr/src/php5/Zend/zend_ini_parser.y:156 #2 0x0816bc64 in php_init_config () at /usr/src/php5/main/php_ini.c:420 #3 0x081670ee in php_module_startup (sf=0x82561c0, additional_modules=0x0,
num_additional_modules=0) at /usr/src/php5/main/main.c:1284 #4 0x081d10fe in main (argc=1, argv=0xbffff744) at /usr/src/php5/sapi/cli/php_cli.c:589
#5 0x402419ed in __libc_start_main () from /lib/libc.so.6The differences between the parsers generated by bison 1.75 and bison 1.875a can be seen here
http://www.sebastian-bergmann.de/stuff/diff-zend_ini_parser.c http://www.sebastian-bergmann.de/stuff/diff-zend_language_parser.cI also brought this up on the bison mailinglist last night, maybe some kind sould from there can help.
For the time beeing I think it would best to bail out on bison versions greater than 1.75 in configure.
Greetings,
Sebastian--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
David Hill wrote:
What platform are you seeing it on?
Linux.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/