bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault with PHP and bison 1.875(a)


From: Martin Schlemmer
Subject: Re: Segfault with PHP and bison 1.875(a)
Date: Sun, 05 Oct 2003 12:23:49 +0200

On Sun, 2003-10-05 at 11:05, Sebastian Bergmann wrote:
> Paul Eggert wrote:
> >>  http://bugs.php.net/bug.php?id=22215
> 
>   I applied the patch above to my current CVS checkout of PHP 5 and
>   it still segfaults when the parsers are generated with bison 1.875:
> 
> Starting program: /usr/src/php/php5/sapi/cli/php
> [New Thread 16384 (LWP 22087)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 16384 (LWP 22087)]
> 0x0823c5e8 in zend_stream_read (file_handle=0x0, buf=0x83c4e10 "",
> len=8192) at /usr/src/php/php5/Zend/zend_stream.c:95
> 95              if (file_handle->handle.stream.interactive) {
> (gdb) bt
> #0  0x0823c5e8 in zend_stream_read (file_handle=0x0, buf=0x83c4e10 "",
> len=8192) at /usr/src/php/php5/Zend/zend_stream.c:95
> #1  0x0820ebbf in yy_get_next_buffer () at Zend/zend_ini_scanner.c:1242
> #2  0x0820e87b in ini_lex (ini_lval=0xbfffe2c0) at
> Zend/zend_ini_scanner.c:1076
> #3  0x0820d863 in ini_parse () at Zend/zend_ini_parser.c:1087
> #4  0x0820d5cd in zend_parse_ini_file (fh=0xbffff480, unbuffered_errors=1
> '\001',
>      ini_parser_cb=0x81e5a29 <php_config_ini_parser_cb>, arg=0x83b1000) at
> zend_ini_parser.y:156
> #5  0x081e637b in php_init_config () at /usr/src/php/php5/main/php_ini.c:420
> #6  0x081e0ef5 in php_module_startup (sf=0x82ef200,
> additional_modules=0x0, num_additional_modules=0)
>      at /usr/src/php/php5/main/main.c:1390
> #7  0x0825b67e in main (argc=1, argv=0xbffff794) at
> /usr/src/php/php5/sapi/cli/php_cli.c:593
> #8  0x403feb47 in __libc_start_main () from /lib/libc.so.6

I have an idea where this all goes wrong - what did you tr
to get this ?  Basically do you have the .php and if relevant
.ini file that cause this?  I must admit I did the debugging
for a friend and do not really use php myself =)


Thanks,

-- 

Martin Schlemmer



Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]