#889 Snapshot GDB gdb-6.3-2 Null Pointer Access Violation

OTHER
closed
gdb (39)
out-of-date
Known_bugs
2013-01-28
2006-01-09
fsc
No

gdb-6.3-2 produces an Null Pointer Access Violation
when stopping on a breakpoint.

You'll find a stackdump of the Null Pointer Access
Violation attached.

I use GDB through the GUI frontend of our IDE (Slickedit)
on a rather large project. So I dont' know exactly
which command produces the crash. I also couln't yet
reproduce it with a small example. But I found out that
it crashes in the the function 'cp_print_value_fields'
on the line 'n_baseclasses = TYPE_N_BASECLASSES
(type);' there it tries to access
'type->main_type->type_specific.cplus_stuff->main_type'
but 'type->main_type->type_specific.cplus_stuff' is null!

I added the lines

if( type->main_type==0 ||
type->main_type->type_specific.cplus_stuff==0)
{
return;
}

bevor the

'n_baseclasses = TYPE_N_BASECLASSES (type);'

line. Now a can debug without the crash but i don't
know what impact my change has.

- Franz

Discussion

  • fsc

    fsc - 2006-01-09

    stackdump of the Null Pointer Access Violation

     
  • Earnie Boyd

    Earnie Boyd - 2012-10-24
    • milestone: --> Aged_issue
    • status: open --> closed-out-of-date
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-28
    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Known_bugs
    • milestone: --> OTHER
     

Log in to post a comment.