|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
boot: Segmentation fault message
In amd64_current, I notice a boot message:
Code:
.... savecore :/bsd : _dumpdev not in name list checking quotas: done Segmentation fault clearing /tmp .... My [FILE]/var/log/messages{/FILE] show this additional error. Code:
sendsyslog: dropped 2 messages. error 57, pid 30456 I did not see this in 6.6 release. Is there additional info needed before I post to tech@openbsd.org and if so, how best to generate? |
|
|||
I have a
/var/db/kwm_bsd.tmp but no /var/db/kvm_bsd.db After my packages load, I'll add the missing file, check the owner/group/user permissions from 6.6 stable, reboot and report back. Last edited by shep; 6th November 2019 at 06:54 PM. Reason: clarity, spelling |
|
|||
No *.core in /
Code:
# kvm_mkdb -v kvm_mkdb: rebuilding /var/db/kvm_bsd.db Segmentation fault |
|
||||
The core(2) man page refers to the KERN_NOSUIDCOREDUMP sysctl(2). That man page says:
Code:
KERN_NOSUIDCOREDUMP (kern.nosuidcoredump) Whether a process may dump core after changing user or group ID: value condition dump core to 0 euid == 0 current directory 1 never 2 always /var/crash 3 depends /var/crash/$programname/ |
|
|||
Code:
Kanga# gdb -c kvm_mkdb.core GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd6.6". Core was generated by `kvm_mkdb'. Program terminated with signal 11, Segmentation fault. #0 0x000011e59fb260bb in ?? () (gdb) |
|
||||
You may find building the program from source with debug symbols helpful to determining a probable cause with gdb(). A backtrace will show named entry points, you can step through the program line-by-line, etc. If you're interested and have the time.
The last CVS commit to the program was in June - a mass update to many programs for syscall error handling changes. |
|
|||
The system with the Segmentation fault is dual booting with Crux Linux/Grub2. My workstation Dual Boots Debian 10 and 6.6stable and does not have the segmentation fault. With that info, I suspect that the error arose sometime after the 6.6 code freeze/unfreeze.
I'm wondering where the kvm_bsd.tmp file came from? I do not recall any errors when the installer generated a unique kernel. |
|
||||
The program itself has not changed since June 28, as I noted. But there have been plenty of library changes between 6.6 and today.
This has nothing to do with the kernel, or dual booting. Instead, it has everything to do with whatever the program kvm_mkdb(8) does. To learn a little bit more about your problem, run a backtrace on the core file, eg: # gdb /usr/sbin/kvm_mkdb /path/to/kvm_mkdb.core then (gdb) bt . Libraries are not stripped of their symbols, so you will see those symbols in the backtrace, if the stack has not been trashed. But to learn a whole lot more about the problem, you'll need to learn a little debugging, as I mentioned above: source code, debugging symbols, etc.
|
|
|||
Quote:
Quote:
I'll run the gdb code on a fresh core dump and document the results. Will also ask the community if anyone has done a single-boot, post 6.6 release -current install and gets the error. May try a dedicated install using the same install66.fs. |
|
||||
As I stated above, this shouldn't be related to dual-booting. Procedurally:
Last edited by jggimi; 7th November 2019 at 05:21 PM. Reason: typos galore, boot.conf(5) and boot prompt references added. |
|
|||
I was able to get the error to go away although I was not rigidly systematic.
I originally was using Fedora whose boot loader writes this to the EFI System Partition. Code:
[EFI System Partition] `-- EFI `-- BOOT |-- BOOTX64.EFI `-- BOOTIA32.EFI https://ackstorm.de/posts/uefi-openb...dual-boot.html This is identical where to OpenBSD installs its BOOTX64.EFI/BOOTIA32.EFI. After installing OpenBSD (after Fedora/Crux), the system will initially boot directly into OpenBSD without showing the Grub Boot Menu. You can get grub back by booting the Linux install media as rescue and reinstalling grub2. With Crux linux, Grub2 booting Linux is via EFI System Partition/EFI/Grub/grub.efi so there is no conflict. Code:
[EFI System Partition] `-- EFI `-- Grub |-- grub.efi Then a /etc/grub.d/40-custom Code:
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'OpenBSD' { insmod part_gpt insmod search_fs_uuid insmod chain chainloader (hd0,gpt1)/openbsd/bootx64.efi } and can select Crux and OpenBSD from the Grub boot menu. OpenBSD boots without segfault messages. I also used a newer install66.fs although I checked the changlog and did not see anything that I thought would affect OpenBSD bootloader uefi install. Have to see if it survives an OpenBSD update. Last edited by shep; 9th November 2019 at 01:39 PM. Reason: fat finger typing BB tags |
|
|||
More Follow Up. On 3rd machine that originally had the segmentation fault, I ran susupgrade and duplicated the Grub2 boot after reinstalling Grub. It still had a Segmentation Fault. I reinstalled OpenBSD and the kernel failed to re-link and reboot generated the same Segmentation Fault. At this point I'm clueless but I think it is a unique issue and not likely to affect common use. The only difference I can see between the second and third machine is the bios and amd vs intel. I have a system to work on ports with and I do not think additional effort will be helpful to the community.
|
|
|||
I did exactly that, a single boot with the same install media on the same machine. No Segmentation fault on a single boot.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
segmentation fault | daemonfowl | OpenBSD General | 14 | 21st September 2012 01:39 PM |
a segmentation fault line | daemonfowl | OpenBSD General | 3 | 16th June 2012 08:13 PM |
Segmentation fault error139 | delboy | FreeBSD Ports and Packages | 8 | 9th July 2009 06:32 PM |
Segmentation fault (11) - Apache | ijk | FreeBSD Ports and Packages | 16 | 15th July 2008 11:04 AM |
Segmentation fault | ccc | FreeBSD General | 8 | 28th June 2008 02:15 PM |