This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]