NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/44061: src/sys/gdbscripts/msgbuf doesn't work
The following reply was made to PR bin/44061; it has been noted by GNATS.
From: Sergey Svishchev <shattered%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/44061: src/sys/gdbscripts/msgbuf doesn't work
Date: Wed, 5 Oct 2016 23:38:18 +0300
On Sun, Oct 02, 2016 at 07:05:00PM +0000, David Holland wrote:
>The following reply was made to PR bin/44061; it has been noted by GNATS.
>
>From: David Holland <dholland-bugs%netbsd.org@localhost>
>To: gnats-bugs%NetBSD.org@localhost
>Cc:
>Subject: Re: bin/44061: src/sys/gdbscripts/msgbuf doesn't work
>Date: Sun, 2 Oct 2016 19:04:22 +0000
>
> On Sun, Nov 07, 2010 at 06:50:00PM +0000, shattered%NetBSD.org@localhost wrote:
> > Typical output from 'msgbuf' command defined by this script:
> >
> > msgbufp 0xcbbe1000: bufx 409 bufr 410 bufs 16368
> > Dumping 0xcbbe11a9 length 15959
> > Cannot access memory at address 0xcbbe5000
> >
> >
> > >How-To-Repeat:
> > Try to analyze a crash dump.
> > >Fix:
> > 'x/s $p' instead of 'printf "%s\n", $p' works, but is not pretty.
>
> ...why would this change whether $p is a valid pointer? Or is the
> issue that the "string" isn't terminated so it chugs off the end, and
> the behavior of x and printf in this case is different?
IIRC, it was the latter -- unterminated string. Haven't needed to run that script in a long while, though.
--
Sergey Svishchev
Home |
Main Index |
Thread Index |
Old Index