tui/2090: ARM/TUI: Segfault pressing up-arrow with missing source
Thu Feb 23 02:48:00 GMT 2006

>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
>Release:        6.4, target=arm-linux
GDB 6.4 built from released sources, target=arm-linux, host=i686-pc-linux-gnu, on Ubuntu 5.04.
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

/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 

Press the up-arrow key.

(gdb) Segmentation fault

Content-Type: application/octet-stream; name="HelloWorld.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="HelloWorld.c"

More information about the Gdb-prs mailing list