Date: Thu, 17 Sep 2020 09:53:33 +0200 From: Olivier Piras <freebsd@oprs.eu> To: freebsd-bugs@freebsd.org Subject: kgmon -b causes processes to crash Message-ID: <CAHCfMdkeOonugfTc-Dpt7h9UOoxJL75N14L5o9GirOthG5T=2w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I'm getting a strange behaviour while trying to perform some basic kernel profiling with kgmon and gprof on -CURRENT. context: . Installed last week's -CURRENT snapshot from an .iso on a spare machine. . Updated /usr/src, compiled world and the kernel (make -j4 kernel CONFIGARGS=3D-p). . rebooted, then make installworld; mergemaster -Ui . rebooted again. problem: root@current:~ # kgmon -b kgmon: kernel profiling is running. Segmentati=EF=BF=BD^3=EF=BF=BD=EF=BF=BD=EF=BF=BD oprs@current% id <jemalloc>: jemalloc_extent.c:463: Failed assertion: "!extent_heap_empty(&extents->heaps[i])" Abort trap (core dumped) >From that point on, the system is totally unusable (processes crash repeatedly). The kernel itself seems to be running though; I can still ping the machine, in fact my ssh session is still up at this point. After rebooting (reset from kdb), dmesg shows a lot of process crashes: pid 941 (csh), jid 0, uid 0: exited on signal 11 (core dumped) pid 931 (login), jid 0, uid 0: exited on signal 11 pid 946 (getty), jid 0, uid 0: exited on signal 6 (core dumped) pid 947 (getty), jid 0, uid 0: exited on signal 6 (core dumped) pid 948 (getty), jid 0, uid 0: exited on signal 6 (core dumped) [...] My first instinct was to rebuild the kernel again, this time with world already installed, as I was suspecting some kind of inconsistency between libkvm and the kernel, but obviously the problem is still there. Am I doing something wrong here ? I'd like to get your opinion before I investigate further, and possibly create a bug report. Regards, -Olivier.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHCfMdkeOonugfTc-Dpt7h9UOoxJL75N14L5o9GirOthG5T=2w>