DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
Old 15th November 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I'm not there and cannot see over your shoulder, but my opinion differs regarding the apparent root cause.

I would guess that the root cause is a damaged /bsd file, as that file is the source of the kernel symbol name list being created by kvm_mkdb. The program goes off the rails because the input is not valid. I assume that strtab + sbuf.st_name in nlist.c line 218 points outside the kernel address space, causing the segfault.
Reply With Quote
Old 20th October 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

This has always bothered me that I did not get to a conclusion but I think this was not actually a bug.

I noticed that some Linux (Fedora, RHEL, Centos, Rocky) systems use /boot/efi/BOOT/BOOTX64.EFI which is exactly where OpenBSD puts its BOOTX64.EFI. If you install one of the conflicting linux systems followed by a GPT/EFI OpenBSD install, OpenBSD overwrites the Linux BOOTX64.EFI and the Grub Linux boot option will boot OpenBSD. For that reason, I would rename OpenBSD BOOTX64.EFI to BSD_BOOTX64.EFI. Re-linking in OpenBSD would subsequently fail.

Debian, and it's derivatives do not use the same location and if the OpenBSD BOOTX64.EFI file is not renamed, there are no kernel re-linking errors.

Two thoughts on fixing. Upstream i could make this a configurable option in the re-linking code or if the BSD's rename their *.EFI's to something like NBSD_BOOTX64.EFI, OBSD_BOOTX64.EFI and FBSD_BOOTX64.EFI.
Reply With Quote
Old 20th October 2021
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

While I've not used one of the "conflicting" Linuxes, or grub ... just a thought:

Maybe you could move their EFI boot stuff into a different directory, and tell the UEFI firmware where to find it with the Linux efibootmgr program?
Reply With Quote
Old 23rd October 2021
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

Quote:
Originally Posted by IdOp View Post
Maybe you could move their EFI boot stuff into a different directory, and tell the UEFI firmware where to find it with the Linux efibootmgr program?
That was my initial work around based on this:

https://ackstorm.de/posts/uefi-openb...dual-boot.html

I think this 2016 guide was before OpenBSD implemented kernel re-linking. My system still functioned but without the security of a re-linked kernel

I suspect it was because the OpenBSD re-linking code was looking for /boot/efi/BOOTX64.EFI. It the file was renamed/relocated, it would not be found.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick