public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug backtrace/13866] New: crashes from stale frame_info *
@ 2012-03-18 18:20 jan.kratochvil at redhat dot com
  2012-06-05 19:51 ` [Bug backtrace/13866] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-03-18 18:20 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 13866
           Summary: crashes from stale frame_info *
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: backtrace
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
    Classification: Unclassified
            Target: x86_64-unknown-linux-gnu


https://bugzilla.redhat.com/show_bug.cgi?id=804256

Even FSF GDB HEAD has still stale frame_info pointers:

#1  in freehook (ptr=0xb3c45e0, caller=0x825759) at mcheck.c:211
#2  in xfree (ptr=0xb3c45e0) at ./common/common-utils.c:107
#3  in obstack_free (h=0x1d4ac20, obj=0x0) at obstack.c:367
#4  in reinit_frame_cache () at frame.c:1542 
#5  in switch_to_thread (ptid=...) at thread.c:989
#6  in switch_to_program_space_and_thread (pspace=0x27c38a0) at progspace.c:494 
#7  in skip_prologue_sal (sal=0x24ec190) at symtab.c:2694
#8  in decode_all_digits () at linespec.c:2523
#9  in decode_line_internal () at linespec.c:1132
#10 in decode_line_1 (flags=1default_line=81) at linespec.c:1344
#11 in until_break_command (arg="",from_tty=1,anywhere=0) at breakpoint.c:10532

There are currently too many situations with stale frame_info * after
switch_to_* invalidate them now, IMO reinit_frame_cache needs to be removed in
these simple cases.

-- 
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] 5+ messages in thread

* [Bug backtrace/13866] crashes from stale frame_info *
  2012-03-18 18:20 [Bug backtrace/13866] New: crashes from stale frame_info * jan.kratochvil at redhat dot com
@ 2012-06-05 19:51 ` cvs-commit at gcc dot gnu.org
  2012-06-12 19:52 ` jan.kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-06-05 19:51 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-06-05 19:50:56 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    palves@sourceware.org    2012-06-05 19:50:51

Modified files:
    gdb            : ChangeLog breakpoint.c 

Log message:
    2012-06-05  Pedro Alves  <palves@redhat.com>

    PR backtrace/13866

    * breakpoint.c (until_break_command): Only fetch the selected
    frame after decode_line_1.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14326&r2=1.14327
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.678&r2=1.679

-- 
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] 5+ messages in thread

* [Bug backtrace/13866] crashes from stale frame_info *
  2012-03-18 18:20 [Bug backtrace/13866] New: crashes from stale frame_info * jan.kratochvil at redhat dot com
  2012-06-05 19:51 ` [Bug backtrace/13866] " cvs-commit at gcc dot gnu.org
@ 2012-06-12 19:52 ` jan.kratochvil at redhat dot com
  2012-06-14 21:15 ` cvs-commit at gcc dot gnu.org
  2012-07-14 20:52 ` jan.kratochvil at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-06-12 19:52 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
         AssignedTo|unassigned at sourceware    |palves at redhat dot com
                   |dot org                     |

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-06-12 19:51:43 UTC ---
There are currently no known bugs anymore.

Still some more proactive protection would be useful.

-- 
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] 5+ messages in thread

* [Bug backtrace/13866] crashes from stale frame_info *
  2012-03-18 18:20 [Bug backtrace/13866] New: crashes from stale frame_info * jan.kratochvil at redhat dot com
  2012-06-05 19:51 ` [Bug backtrace/13866] " cvs-commit at gcc dot gnu.org
  2012-06-12 19:52 ` jan.kratochvil at redhat dot com
@ 2012-06-14 21:15 ` cvs-commit at gcc dot gnu.org
  2012-07-14 20:52 ` jan.kratochvil at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-06-14 21:15 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-06-14 21:15:25 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    macro@sourceware.org    2012-06-14 21:15:20

Modified files:
    gdb            : ChangeLog infrun.c 

Log message:
    PR backtrace/13866
    * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
    after hiding inline functions.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14366&r2=1.14367
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&r1=1.544&r2=1.545

-- 
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] 5+ messages in thread

* [Bug backtrace/13866] crashes from stale frame_info *
  2012-03-18 18:20 [Bug backtrace/13866] New: crashes from stale frame_info * jan.kratochvil at redhat dot com
                   ` (2 preceding siblings ...)
  2012-06-14 21:15 ` cvs-commit at gcc dot gnu.org
@ 2012-07-14 20:52 ` jan.kratochvil at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-07-14 20:52 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |11914

-- 
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] 5+ messages in thread

end of thread, other threads:[~2012-07-14 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-18 18:20 [Bug backtrace/13866] New: crashes from stale frame_info * jan.kratochvil at redhat dot com
2012-06-05 19:51 ` [Bug backtrace/13866] " cvs-commit at gcc dot gnu.org
2012-06-12 19:52 ` jan.kratochvil at redhat dot com
2012-06-14 21:15 ` cvs-commit at gcc dot gnu.org
2012-07-14 20:52 ` jan.kratochvil 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).