tui/2090: ARM/TUI: Segfault pressing up-arrow with missing source

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

tui/2090: ARM/TUI: Segfault pressing up-arrow with missing source

Flash Sheridan

>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:     [hidden email]
>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"