This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/2205] New: Systemtap parser will fall into infinite loop.
- From: "hiramatu at sdl dot hitachi dot co dot jp" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 25 Jan 2006 11:48:32 -0000
- Subject: [Bug translator/2205] New: Systemtap parser will fall into infinite loop.
- Reply-to: sourceware-bugzilla at sourceware dot org
How reproducible:
Always
Steps to reproduce:
Run stap with the script below:
--
function testfunc () %{
// no end brace
--
Then the stap command falls into infinite loop, after a while it hangs up.
Cause of the probrem:
Parser fails to check the EOF while parsing the embedded C code.
Solutions:
I think fix "EOF" check code at parse.cxx:600, as below.
- if (c == 0) // EOF
+ if (c < 0) // EOF
--
Summary: Systemtap parser will fall into infinite loop.
Product: systemtap
Version: unspecified
Status: NEW
Severity: critical
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: hiramatu at sdl dot hitachi dot co dot jp
http://sourceware.org/bugzilla/show_bug.cgi?id=2205
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.