Hide Forgot
+++ This bug was initially created as a clone of Bug #682286 +++ cmdline: gdb --interpreter=mi2 -quiet How to reproduce ----- 1. Open KDevelop 4.1.2 (shipped with Fedora 14). 2. Create a C++ project (CMake) with a simple hello world-like code (needs at least 2 executable lines). 3. Place a breakpoint in an executable line. 4. Compile the project. 5. Debug the project. 6. When the execution reaches the breakpoint and stops, select 'Step Over' the statement. GDB crashes at that point --- Additional comment from jan.kratochvil on 2011-03-05 08:02:00 CET --- I thought the archer-jankratochvil-vla branch has the unfinished types garbage collector disabled but it was enabled. varobj (=MI) did not properly mark the types as still used and thus a freed memory access happened, I am sorry. Disabled the garbage collector for now. ------------------------------------------------------------------------------- It affects only MI - that is front ends like Eclipse. devel_ack: Fix - disable free_all_types(): http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-vla-gc-disable.patch;hb=f14/master qa_ack: I will try to create a reproducer.
New testcase: http://sourceware.org/git/?p=archer.git;a=commitdiff_plain;h=b20c7d74a7e132186e7d80525eae8ed08ca4d5b8
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: GDB crashed when attempting to access dynamic types, such as variable length arrays, using the GDB/MI interface. GDB now no longer crashes under these circumstances.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0638.html