Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 May 2017 22:23:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 219153] head, stable/11, release/11.0.1: libkvm (& more?) not updated to handle powerpc/powerpc64 ET_DYN based vmcore.* 's and such
Message-ID:  <bug-219153-29464-phYSba2eae@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219153-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219153-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219153

--- Comment #3 from Mark Millard <markmi@dsl-only.net> ---
(In reply to Mark Millard from comment #2)

An FYI based on my ET_DYN test hack in
libkvm:

I've gotten some more panics with the libkvm
change in place. This makes the new core.txt.*
more interesting.

Initially here I just emphasize where
/usr/local/bin/gdb and /usr/libexec/gdb use
in crashinfo got different
results, picking an example vmcore file.

3c3
< Tue May  9 14:21:24 PDT 2017
---
> Tue May  9 14:58:07 PDT 2017
5c5
< FreeBSD FBSDG4S 12.0-CURRENT FreeBSD 12.0-CURRENT  r317820M  powerpc
---
>  FBSDG4S=20=20=20
9,24c9,15
< GNU gdb (GDB) 7.12.1 [GDB v7.12.1 for FreeBSD]
. . .
< This GDB was configured as "powerpc-portbld-freebsd12.0".
. . .
< Reading symbols from /boot/kernel/kernel...Reading symbols from
/usr/lib/debug//boot/kernel/kernel.debug...done.
< done.
---
> GNU gdb 6.1.1 [FreeBSD]
. . .
> This GDB was configured as "powerpc-marcel-freebsd"...kgdb: kvm_read:=20
25a17
>=20
38,39c30,31
< No thread selected.
< (kgdb) No thread selected.
---
> 0x00000000 in ?? ()
> (kgdb) #0  0x00000000 in ?? ()
113,115c105,107
< cpu0:decrementer                  140155       1757
< irq0: iichb0                      104190       1306
< irq8: bge0                          4043         51
---
> cpu0:decrementer                  140155        117
> irq0: iichb0                      104190         87
> irq8: bge0                          4043          3
117c109
< irq70: ohci0 ohci1+                22390        281
---
> irq70: ohci0 ohci1+                22390         19
122c114
< irq27: iichb1                         85          1
---
> irq27: iichb1                         85          0
124,125c116,117
< irq10: atapci0                      5778         72
< irq38: ata0                         8593        108
---
> irq10: atapci0                      5778          5
> irq38: ata0                         8593          7
127,132c119,124
< irq53: smudoorbell0                30226        379
< irq124: IPI                       237384       2976
< cpu3:decrementer                   32632        409
< cpu1:decrementer                   33061        415
< cpu2:decrementer                   34929        438
< Total                             653474       8193
---
> irq53: smudoorbell0                30226         25
> irq124: IPI                       237384        197
> cpu3:decrementer                   32632         27
> cpu1:decrementer                   33061         27
> cpu2:decrementer                   34929         29
> Total                             653474        543
143c135
< Device          512-blocks     Used    Avail Capacity
---
> Device          1K-blocks     Used    Avail Capacity
578,586c570,598
<  7f032b8 tcp4       0      0 *.111              *.*                LISTEN
<  7f03570 tcp6       0      0 *.111              *.*                LISTEN
<  7d56348 udp6       0      0 *.*                *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
<  5ea8c08 udp4       0      0 *.901              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
<  5ea8d20 udp4       0      0 *.111              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
<  5ea8e38 udp6       0      0 *.903              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
<  5ea9000 udp6       0      0 *.111              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
<  5ea9118 udp4       0      0 *.514              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
<  5ea9230 udp6       0      0 *.514              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
---
>  8f93000 tcp4       0      0 192.168.1.7.22     192.168.1.106.4955 ESTABL=
ISHED
>  a8732b8 tcp4       0      0 127.0.0.1.25       *.*                LISTEN
>  8fac570 tcp4       0      0 *.22               *.*                LISTEN
>  8fac828 tcp6       0      0 *.22               *.*                LISTEN
>  8fb9570 tcp6       0      0 *.2049             *.*                LISTEN
>  8fb9828 tcp4       0      0 *.2049             *.*                LISTEN
>  8facae0 tcp4       0      0 *.762              *.*                LISTEN
>  8fad000 tcp6       0      0 *.762              *.*                LISTEN
>  8f932b8 tcp4       0      0 *.111              *.*                LISTEN
>  8f93570 tcp6       0      0 *.111              *.*                LISTEN
>  8cbc8c0 udp4       0      0 127.0.0.1.123      *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbc9d8 udp6       0      0 fe80::1%lo0.123    *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbcaf0 udp6       0      0 ::1.123            *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbcc08 udp4       0      0 192.168.1.7.123    *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbcd20 udp6       0      0 2601:1c0:4301:25.1 *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbce38 udp6       0      0 fe80::214:51ff:f.1 *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbd000 udp4       0      0 *.123              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbd118 udp6       0      0 *.123              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  62ad000 udp6       0      0 *.2049             *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  62ad118 udp4       0      0 *.2049             *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbd230 udp4       0      0 *.762              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  8cbd348 udp6       0      0 *.762              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  62ad230 udp6       0      0 *.*                *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  627a9d8 udp4       0      0 *.610              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  627aaf0 udp4       0      0 *.111              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  627ac08 udp6       0      0 *.1013             *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  627ad20 udp6       0      0 *.111              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  627ae38 udp4       0      0 *.514              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
>  627b000 udp6       0      0 *.514              *.*=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
595a608,614
> tcp4  0/0/10                           localhost.smtp=20=20=20=20=20=20=
=20=20=20
> tcp4  0/0/128                          *.ssh=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
> tcp6  0/0/128                          *.ssh=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20
> tcp6  0/0/128                          *.nfsd=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20
> tcp4  0/0/128                          *.nfsd=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20
> tcp4  0/0/128                          *.quotad=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20
> tcp6  0/0/128                          *.quotad=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20

. . . (I do not show the < kernel configuration text here) . . .
---
> Assertion failed: (i =3D=3D size - 1 && ("\\0 found in the middle of a fi=
le")), function kernconfdump, file /usr/src/usr.sbin/config/main.c, line 73=
4.
> Abort trap (core dumped)

Some text that is not different based on which gdb
but has odd content is:

------------------------------------------------------------------------
ps -axlww

UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT  TIME COMMAND

------------------------------------------------------------------------
vmstat -s

 25198744 cpu context switches
1099617232 device interrupts
1099617232 software interrupts
1099617232 traps
1099617232 system calls
1099617232 kernel threads created
1099617232  fork() calls
1099617232 vfork() calls
1099617232 rfork() calls
1099617232 swap pager pageins
1099617232 swap pager pages paged in
1099617232 swap pager pageouts
1099617232 swap pager pages paged out
1099617232 vnode pager pageins
1099617232 vnode pager pages paged in
1099617232 vnode pager pageouts
1099617232 vnode pager pages paged out
1099617232 page daemon wakeups
1099617232 pages examined by the page daemon
1099617232 clean page reclamation shortfalls
1099617232 pages reactivated by the page daemon
1099617232 copy-on-write faults
1099617232 copy-on-write optimized faults
1099617232 zero fill pages zeroed
1099617232 zero fill pages prezeroed
1099617232 intransit blocking page faults
1099617232 total VM faults taken
1099617232 page faults requiring I/O
1099617232 pages affected by kernel thread creation
1099617232 pages affected by  fork()
1099617232 pages affected by vfork()
1099617232 pages affected by rfork()
1099617232 pages freed
1099617232 pages freed by daemon
1099617232 pages freed by exiting processes
        0 pages active
        0 pages inactive
        0 pages in the laundry queue
        0 pages wired down
        0 pages free
        0 bytes per page
        0 total name lookups
          cache hits (0% pos + 0% neg) system 0% per-directory
          deletions 0%, falsehits 0%, toolong 0%

The following had titles but no content:

vmstat -m
vmstat -z
pstat -s
netstat -m
fstat

The following got an error:

iostat
iostat: readkmem: error reading value (kvm_read):=20

The following reported all zeros:

nfsstat
netstat -s

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219153-29464-phYSba2eae>