Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:407 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63490 invoked from network); 28 Mar 2003 07:54:53 -0000 Received: from unknown (HELO deathstar.de-punkt.de) (62.4.81.205) by pb1.pair.com with SMTP; 28 Mar 2003 07:54:53 -0000 Received: (qmail 5634 invoked by uid 511); 28 Mar 2003 07:54:52 -0000 Received: from unknown (HELO wopr) (62.225.226.216) by deathstar.de-punkt.de with SMTP; 28 Mar 2003 07:54:52 -0000 Received: from wopr [127.0.0.1] by wopr (192.168.0.1) (userid 2) with Hamster-NewsToMail-Gate (Classic Hamster Version 2.0 Build 2.0.1.0) ; Fri, 28 Mar 2003 08:56:12 +0100 Date: Fri, 28 Mar 2003 08:56:12 +0100 Organization: www.sebastian-bergmann.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: de, en X-Enigmail-Version: 0.73.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: internals@lists.php.net Sender: admin Lines: 40 Subject: bison 1.875 causes segfault From: sebastian@php.net (Sebastian Bergmann) Message-ID: 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 , 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.6 The 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.c I 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/