Bug 231795 - 12-ALPHA8 top SIGSEGV
Summary: 12-ALPHA8 top SIGSEGV
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-09-29 03:33 UTC by Jeremy Faulkner
Modified: 2018-11-10 01:33 UTC (History)
4 users (show)

See Also:


Attachments
tar zcvf top-core.tar.gz /usr/bin/top top.core (96.59 KB, application/x-gzip)
2018-09-29 03:33 UTC, Jeremy Faulkner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Faulkner 2018-09-29 03:33:34 UTC
Created attachment 197585 [details]
tar zcvf top-core.tar.gz /usr/bin/top top.core

FreeBSD constans 12.0-ALPHA8 FreeBSD 12.0-ALPHA8 r338991 GENERIC  amd64

constans# gdb top top.core
GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd12.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from top...Reading symbols from /usr/lib/debug//usr/bin/top.debug...done.
done.
[New LWP 102558]
Core was generated by `top'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  format_next_process (xhandle=0x213590 <handle>, get_userid=0x20f6a0 <username>, flags=0)
    at /usr/src/usr.bin/top/machine.c:895
895             if ((pp->ki_flag & P_INMEM) == 0) {
(gdb) bt
#0  format_next_process (xhandle=0x213590 <handle>, get_userid=0x20f6a0 <username>, flags=0)
    at /usr/src/usr.bin/top/machine.c:895
#1  0x000000000020e398 in main (argc=2147483647, argv=0x8007cd000) at /usr/src/usr.bin/top/top.c:652
(gdb)
Comment 1 Jeremy Faulkner 2018-10-01 04:04:26 UTC
Top when run on the host has a chance to core dump when an new app loads in a jail. It has core dumped just logging in to a jail via ssh.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2018-10-09 15:46:36 UTC
Is this a regression from an earlier install, or is this a new install?
Comment 3 Jeremy Faulkner 2018-10-09 20:57:33 UTC
This system was upgraded from 11.2-RELENG branch to 12-ALPHA by cloning the boot environment, and then building from source. I forget exactly which ALPHA 4, or 5 but it's currently at 8.
Comment 4 Conrad Meyer freebsd_committer 2018-11-03 16:02:57 UTC
(In reply to Jeremy Faulkner from comment #0)
The attached top lacks debugging symbols.  Can you also copy your /usr/lib/debug/usr/bin/top.debug (or if the system has been upgraded since, have you been able to reproduce the problem?).
Comment 5 Jeremy Faulkner 2018-11-10 01:33:36 UTC
I have not been able to reproduce the issue with newer build

FreeBSD constans 12.0-BETA3 FreeBSD 12.0-BETA3 r340099 GENERIC  amd64