[LLVMdev] My LLVM program crashes gdb

Daniel Dunbar daniel at zuster.org
Sat Feb 13 14:26:25 PST 2010


On Sat, Feb 13, 2010 at 9:42 AM, Talin <viridia at gmail.com> wrote:
> One of my unit tests has been failing recently, and the odd thing is that
> when I attempt to debug it in gdb, it causes a segfault:
>
> $ gdb test/stdlib/HashMapTest
> GNU gdb (GDB) 7.0-ubuntu
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> /home/talin/Projects/tart/build-eclipse/test/stdlib/HashMapTest...done.
> (gdb) break main
> Segmentation fault
>
> I'm not sure whether this is LLVM's fault or mine - and I'm not sure how to
> go about finding out. I'm guessing something is wrong with the DWARF
> debugging info.

Probably a good guess, although gdb probably shouldn't crash either.
If you file a bug against gdb, they can probably tell what is wrong.

 - Daniel

> --
> -- Talin
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>




More information about the llvm-dev mailing list