This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
c++/2412: gdb crashes with complex data
- From: jacob at jacob dot remcomp dot fr
- To: gdb-gnats at sources dot redhat dot com
- Date: 6 Feb 2008 23:27:37 -0000
- Subject: c++/2412: gdb crashes with complex data
- Reply-to: jacob at jacob dot remcomp dot fr
>Number: 2412
>Category: c++
>Synopsis: gdb crashes with complex data
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 06 23:38:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Jacob Navia
>Release: GNU gdb 6.7.1
>Organization:
>Environment:
linux
>Description:
Every time I want to display a complex number in gdb
it crashes.
Crash in
void
print_floating (const gdb_byte *valaddr, struct type *type,
struct ui_file *stream)
How to reproduce
1) Define a long double _Complex number.
For example: long double _Complex foo = 4.8;
3) In gdb type
print foo
crash, gdb dies.
This is after I downloaded the latest version.
Machine:
i486 linux vanilla ubuntu distribution.
root@ubuntu:/tmp/gdb-6.7.1/gdb# gcc -v
Utilisation des specs internes.
Target: i486-linux-gnu
Configuré avec: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Modèle de thread: posix
version gcc 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
root@ubuntu:/tmp/gdb-6.7.1/gdb# gdb -v
GNU gdb 6.7.1
Copyright (C) 2007 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 "i686-pc-linux-gnu".
>How-To-Repeat:
1) Define a long double _Complex number.
For example: long double _Complex foo = 4.8;
2) In gdb type
print foo
crash, gdb dies.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: