This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight project.


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

insight/41: Dereferencing NULL in variable window will core dump



>Number:         41
>Category:       insight
>Synopsis:       Dereferencing NULL in variable window will core dump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 04 15:53:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     rich@iozo.com
>Release:        Insight 5.0 - release
>Organization:
>Environment:
RedHat Linux 6.2
>Description:
When I have a node that is NULL, I can click on it to
dereference it, which will then send my debugging session
into a tailspin and die.  This may be a "don't do that" 
thing, so that's why this is a change request.

My opinion, even debuggers shouldn't core dump.  Either the
debugger should always prevent this, or warn you.
>How-To-Repeat:
1) Compile the program wiuth debugging.
2) Run under the debugger.
3) set a breakpoint on return (line 10).
4) Run
(stops at breakpoint)
5) View local variables.
6) Expand testNode
7) Expand testNode->next
8) Expand testNode->next->next

core dump
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-unknown-content-type-c_auto_file; name="dump.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="dump.c"

dHlwZWRlZiBzdHJ1Y3Qgbm9kZQp7CiAgICBzdHJ1Y3Qgbm9kZSogbmV4dDsKfSBub2RlOwoKaW50
Cm1haW4odm9pZCkKewogICAgbm9kZSB0ZXN0Tm9kZSA9IHsgMHgwfTsKICAgIHJldHVybiAwOwp9
Cg==

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