----- "Dave Anderson" <anderson@xxxxxxxxxx> wrote: > ----- "Bob Montgomery" <bob.montgomery@xxxxxx> wrote: > > > I accidentally tried to dump a struct from a bogus pointer while using > > crash-5.0.0 on x86-64. ... [ snip ] ... > > Enough to go on? Already known? > > Not already known... > > But I can reproduce it (at least with some bogus addresses) -- I'll take > a look at it tomorrow... Caused by a slight change in the crash/gdb-7.0 exception handling. Simple fix attached... Thanks, Dave
--- crash-5.0.0/symbols.c.orig +++ crash-5.0.0/symbols.c @@ -5403,7 +5403,7 @@ print_struct(char *s, ulong addr) else sprintf(buf, "output *(struct %s *)0x%lx", s, addr); fprintf(fp, "struct %s ", s); - gdb_pass_through(buf, NULL, 0); + gdb_pass_through(buf, NULL, GNU_RETURN_ON_ERROR); fprintf(fp, "\n"); } @@ -5421,7 +5421,7 @@ print_union(char *s, ulong addr) else sprintf(buf, "output *(union %s *)0x%lx", s, addr); fprintf(fp, "union %s ", s); - gdb_pass_through(buf, NULL, 0); + gdb_pass_through(buf, NULL, GNU_RETURN_ON_ERROR); } /*
-- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility