This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/2205] New: Systemtap parser will fall into infinite loop.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]