public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/12119] New: push_frame_filter doesn't close over frame_filter, which will lead to infinite recursion with multiple filters
@ 2010-10-13 20:12 markflorisson88 at gmail dot com
  2011-01-06 21:27 ` [Bug python/12119] " tromey at redhat dot com
  2011-01-07 20:31 ` tromey at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: markflorisson88 at gmail dot com @ 2010-10-13 20:12 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12119

           Summary: push_frame_filter doesn't close over frame_filter,
                    which will lead to infinite recursion with multiple
                    filters
           Product: gdb
           Version: archer
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: markflorisson88@gmail.com


When installing multiple backtrace filters
(gdb/python/lib/gdb/backtrace.py:push_frame_filter), filtering will lead to
infinite recursion because 'frame_filter' is global and not part of the
closure.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/12119] push_frame_filter doesn't close over frame_filter, which will lead to infinite recursion with multiple filters
  2010-10-13 20:12 [Bug python/12119] New: push_frame_filter doesn't close over frame_filter, which will lead to infinite recursion with multiple filters markflorisson88 at gmail dot com
@ 2011-01-06 21:27 ` tromey at redhat dot com
  2011-01-07 20:31 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-01-06 21:27 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12119

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-01-06 21:26:59 UTC ---
Could you try this and verify that it works?

@@ -32,7 +32,7 @@ an iterator returning such objects."""
     if frame_filter == None:
         frame_filter = constructor
     else:
-        frame_filter = lambda iterator: constructor (frame_filter (iterator))
+        frame_filter = lambda iterator, filter = frame_filter: constructor
(filter (iterator))

 def create_frame_filter (iter):
     global frame_filter


Note also that we are going to rewrite this code.
It has some design flaws as-is.
We'll be sure to send a note to the Archer list when this gets underway.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/12119] push_frame_filter doesn't close over frame_filter, which will lead to infinite recursion with multiple filters
  2010-10-13 20:12 [Bug python/12119] New: push_frame_filter doesn't close over frame_filter, which will lead to infinite recursion with multiple filters markflorisson88 at gmail dot com
  2011-01-06 21:27 ` [Bug python/12119] " tromey at redhat dot com
@ 2011-01-07 20:31 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-01-07 20:31 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12119

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2011-01-07 20:30:53 UTC ---
I checked this in on archer-tromey-python.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-07 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-13 20:12 [Bug python/12119] New: push_frame_filter doesn't close over frame_filter, which will lead to infinite recursion with multiple filters markflorisson88 at gmail dot com
2011-01-06 21:27 ` [Bug python/12119] " tromey at redhat dot com
2011-01-07 20:31 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).