Bug #53479 [Com]: Eval triggers segmentation fault when argument is a string returned by sprintf

From: Date: Tue, 04 Jan 2011 20:44:13 +0000
Subject: Bug #53479 [Com]: Eval triggers segmentation fault when argument is a string returned by sprintf
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157593@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53479&edit=1

 ID:                 53479
 Comment by:         daniel at ozonesolutions dot com
 Reported by:        nicobn@php.net
 Summary:            Eval triggers segmentation fault when argument is a
                     string returned by sprintf
 Status:             Feedback
 Type:               Bug
 Package:            *General Issues
 Operating System:   2.6.32-25-generic #45-Ubuntu SMP
 PHP Version:        5.3.3
 Block user comment: N
 Private report:     N

 New Comment:

We had a similar problem and found that disabling x-debug fixed it.  I
don't know if you had it installed, but it is worth a try.


Previous Comments:
------------------------------------------------------------------------
[2010-12-06 09:10:16] johannes@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Works for me. Please also try a snapshot.

------------------------------------------------------------------------
[2010-12-06 03:43:06] nicobn@php.net

Description:
------------
eval(), when provided with a parameter string returned by the sprintf()
function, 
causes the PHP script (in console at least) to crash with a segmentation
fault.

Test script:
---------------
// Crashes
eval(sprintf('class Roger {}'));

// Does not crash
eval('class Roger {}');

Expected result:
----------------
No segfaulting.

Actual result:
--------------
Segmentation fault


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53479&edit=1


Thread (4 messages)

« previous php.bugs (#157593) next »