Edit report at http://bugs.php.net/bug.php?id=51761&edit=1
ID: 51761 Updated by: [email protected] Reported by: russell dot tempero at rightnow dot com Summary: Memory Error: IPR in language scanner -Status: Open +Status: Feedback Type: Bug Package: Scripting Engine problem Operating System: Linux PHP Version: 5.3.2 Block user comment: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2010-06-20 16:33:36] [email protected] We are using re2c instead of flex for 5.3+. ------------------------------------------------------------------------ [2010-05-13 19:11:09] russell dot tempero at rightnow dot com If you are confident that these errors can be fixed by altering the grammar, I'll do some more looking to see what I can come up with. This is probably going to take me a little while though. Based on what I was seeing, I thought this was more a problem with how flex generated the scanner from the grammar. ------------------------------------------------------------------------ [2010-05-12 09:34:12] [email protected] This should have been set to feedback, shouldn't it? ------------------------------------------------------------------------ [2010-05-08 11:58:17] [email protected] Hi You should change the grammar in zend_language_scanner.l instead of the .c file which is generated based on the contains from the .l file. Else the patch looks good ------------------------------------------------------------------------ [2010-05-07 00:21:08] russell dot tempero at rightnow dot com Here is some useful debug information if you wish to trace exactly where the IPRs are happening: . . . state: 476 char: ? addr: 0xf1c7885e state: 140 char: ? addr: 0xf1c7885e state: 121 char: ? addr: 0xf1c7885e state: -1 char: ? addr: 0xffce705b state: 166 char: ? addr: 0xf1c7885e state: 201 char: > addr: 0xf1c7885f state: 203 char: addr: 0xf1c78860 RUSSELL: YYCURSOR: 0xf1c78860 YYLIMIT: 0xf1c78861 state: 202 char: state: 0 char: state: 4 char: state: 3 char: RUSSELL: returning 0 in yy3 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51761 -- Edit this bug report at http://bugs.php.net/bug.php?id=51761&edit=1
