Bug 15331 - Segfault when resizing gnome-terminal while using "layout asm"
Summary: Segfault when resizing gnome-terminal while using "layout asm"
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: 7.3
: P2 normal
Target Milestone: 7.10
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-03 12:37 UTC by Andreas
Modified: 2015-09-15 15:48 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas 2013-04-03 12:37:29 UTC
As the summary says gdb segfaults when the gnome-terminal is resized and the "layout asm" feature is being used at the same time.

Use case in the gnome-terminal:
$ gdb
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>.
(gdb) file ~/Desktop/test 
Reading symbols from /home/andreas/Desktop/test...done.
(gdb) layout asm
(gdb) 

Now do the following:
1. Resize the terminal window
2. Press <Enter>
3. Resize the terminal window
4. Press <Enter>

And bang segfault.

This also happens with the latest: GNU gdb (GDB) 7.6.50.20130403-cvs
Comment 1 Andreas 2013-04-03 12:42:40 UTC
My system information (uname -a) is
Linux andreas-laptop 3.0.0-32-generic-pae #51-Ubuntu SMP Thu Mar 21 16:09:48 UTC 2013 i686 i686 i386 GNU/Linux
Comment 2 Michael Fiedler 2015-09-15 11:04:23 UTC
I can reproduce this using version 7.4.1-debian from Debian 7 wheezy x86:

[~]$ gdb -v
GNU gdb (GDB) 7.4.1-debian
...
This GDB was configured as "i486-linux-gnu".
...


I can NOT reproduce this using 7.7.1-0ubuntu5~14.04.2 from Ubuntu 14.04 x86_64:

$ gdb -v
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
...
This GDB was configured as "x86_64-linux-gnu".
...


I can NOT reproduce this using the most recent Git commit ade90bdeb78ccaeb294e34af04751f2f649a324f on Ubuntu 14.04 x86_64:

$ gdb -v
GNU gdb (GDB) 7.10.50.20150915-cvs
...
This GDB was configured as "x86_64-pc-linux-gnu".
...
Comment 3 Pedro Alves 2015-09-15 15:48:54 UTC
Thanks.  I'm closing this.  I believe this was addressed in 7.10; setting milestone accordingly.