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)
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.
Is this a regression from an earlier install, or is this a new install?
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.
(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?).
I have not been able to reproduce the issue with newer build FreeBSD constans 12.0-BETA3 FreeBSD 12.0-BETA3 r340099 GENERIC amd64