This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 c++/23910] Assertion `bpt != NULL' failed


https://sourceware.org/bugzilla/show_bug.cgi?id=23910

--- Comment #8 from Tom Tromey <tromey at sourceware dot org> ---
Can you try git master?
I think this was probably fixed by:

commit 2cd8cc0b66ca297bce4d08e4f712f86d9f1a2fb6
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Dec 19 11:44:28 2018 -0700

    Fix a crash in jit.c

    A user at Mozilla pointed out a crash in jit.c.  In his situation, an
    inferior using the JIT API exec'd an executable that did not use it.
    This caused an assertion failure when jit.c:free_objfile_data called
    delete_breakpoint with NULL.

    This patch fixes the problem in the obvious way.  New test case
    included.

    gdb/ChangeLog
    2018-12-28  Tom Tromey  <tom@tromey.com>

            * jit.c (free_objfile_data): Only delete breakpoint if non-null.

    gdb/testsuite/ChangeLog
    2018-12-28  Tom Tromey  <tom@tromey.com>
                Simon Marchi <simark@simark.ca>

            * gdb.base/jit-exec.exp: New file.
            * gdb.base/jit-exec.c: New file.
            * gdb.base/jit-execd.c: New file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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