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]

[Bug objc/20501] New: Creating NSString convenience variable crashes GDB


https://sourceware.org/bugzilla/show_bug.cgi?id=20501

            Bug ID: 20501
           Summary: Creating NSString convenience variable crashes GDB
           Product: gdb
           Version: 7.11.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: objc
          Assignee: unassigned at sourceware dot org
          Reporter: gdb at crelg dot com
  Target Milestone: ---

Created attachment 9466
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9466&action=edit
source and makefile, backtrace, and GNUstep install instructions

Component: GDB (7.11.1)
OS: Windows Server (2008 R2) + MINGW32 (20160205)
Language: Objective C + GNUstep

Summary:
Creating an NSString convenience variable crashes GDB.
Creating a C string convenience variable causes an error.

Steps to Reproduce:
Create the simplest imaginable GNUstep tool and build it and gdb it.
(gdb) b main
(gdb) r
(gdb) p $a = "foo"            # char * convenience var
$3 = <error reading variable> # unexpected, instead of "foo"
(gdb) set $b = @"bar"         # NSString convenience var
Segmentation fault            # unexpected, instead of @"bar"
Debugger exited abnormally with code 5

Observation: strdata=0, len=99243256 at memcpy in write_exp_string at
parse.c:372

Attachments: backtrace.txt, mytool.m, GNUmakefile, gnustep-install.txt

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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