This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
tui/2090: ARM/TUI: Segfault pressing up-arrow with missing source
- From: flash at pobox dot com
- To: gdb-gnats at sources dot redhat dot com
- Cc: flash at pobox dot com
- Date: 23 Feb 2006 02:41:27 -0000
- Subject: tui/2090: ARM/TUI: Segfault pressing up-arrow with missing source
- Reply-to: flash at pobox dot com
>Number: 2090
>Category: tui
>Synopsis: ARM/TUI: Segfault pressing up-arrow with missing source
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 23 02:48:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: flash@pobox.com
>Release: 6.4, target=arm-linux
>Organization:
>Environment:
GDB 6.4 built from released sources, target=arm-linux, host=i686-pc-linux-gnu, on Ubuntu 5.04.
>Description:
Pressing the up-arrow key in TUI mode when source is missing, results in a segmentation fault. Originally found with a real executable built on a different machine.
Similar steps with native x86 GDB don't crash. Also happens with GDB 6.3 for ARM.
PalmSource bug 121672
>How-To-Repeat:
Compile:
/opt/crosstool/gcc-3.4.4-glibc-2.3.5/armv5te-softfloat-linux-gnu/bin/armv5te-softfloat-linux-gnu-gcc -g /tmp/BUG121672/HelloWorld.c -o HelloWorldMoved.kj
rm /tmp/BUG121672/HelloWorld.c
rm: remove write-protected regular file `/tmp/BUG121672/HelloWorld.c'? y
rmdir /tmp/BUG121672/
Start GDB:
/opt/gdb-6.4-gnu/gdb/gdb -tui HelloWorldMoved.kj
In GDB:
Press the up-arrow key.
Result:
(gdb) Segmentation fault
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="HelloWorld.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="HelloWorld.c"