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]

c++/2333: gdb gets segv evaluating valid function call


>Number:         2333
>Category:       c++
>Synopsis:       gdb gets segv evaluating valid function call
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 11 19:38:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Gordon Prieur
>Release:        gdb 6.6
>Organization:
>Environment:
Windows XP, Solaris 10, Redhat Fedora Core 6
>Description:
See the attached program. If you run to line 137 and do the
command "print getDiscountFor(customerName)" (or substitue
"John" for customerName) you get a SIGSEGV.

If you "print customerName" before doing this you'll see that
its a valid std::string.

For more information, see
http://www.netbeans.org/issues/show_bug.cgi?id=116683
>How-To-Repeat:
1. Unzip and build quote sample app.
2. Run gdb on "dist/Debug/GNU-Solaris-x86/quote" (ignore the
   Solaris part)
3. Set breakpoint on line 137 and run the app
4. Type "John" at the prompt
5. When the breakpoint is hit, type
   "print getDiscountFor(customerName)"
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="quote.tar.bzip2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="quote.tar.bzip2"


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