Bug 253088 - bhyveload: /boot/userboot.so: Undefined symbol "gfx_fb_bezier"
Summary: bhyveload: /boot/userboot.so: Undefined symbol "gfx_fb_bezier"
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: 13.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: Toomas Soome
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-30 02:08 UTC by John Kennedy
Modified: 2021-02-02 13:03 UTC (History)
2 users (show)

See Also:


Attachments
src.conf (230 bytes, text/plain)
2021-01-30 14:43 UTC, John Kennedy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Kennedy 2021-01-30 02:08:40 UTC
FreeBSD 13.0-ALPHA3 stable/13-c256224-ga455b23cf348

I haven't been kicking the tires on my FreeBSD BHYVEs lately, but I tried to start one today and ran across this:

(pulling out bit that I need from /usr/share/examples/bhyve/vmrun.sh)

/usr/sbin/bhyveload -c stdio -m 12G -d /zroot/stash/iso/FreeBSD-13.0-CURRENT-amd64-20200806-r363935-disc1.iso  bsd13
/boot/userboot.so: Undefined symbol "gfx_fb_bezier"

If I truss it, the final bits are:

open("/boot/userboot.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 4 (0x4)
fstat(4,{ mode=-r--r--r-- ,inode=14806,size=845368,blksize=131072 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34376941568 (0x801068000)
mmap(0x0,67932160,PROT_NONE,MAP_GUARD,-1,0x0)    = 48358227968 (0xb42600000)
mmap(0xb42600000,151552,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 48358227968 (0xb42600000)
mmap(0xb42625000,626688,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x24000) = 48358379520 (0xb42625000)
mmap(0xb426be000,16384,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xbc000) = 48359006208 (0xb426be000)
mmap(0xb426c2000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xbf000) = 48359022592 (0xb426c2000)
mmap(0xb426c5000,67125248,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 48359034880 (0xb426c5000)
munmap(0x801068000,4096)                         = 0 (0x0)
close(4)                                         = 0 (0x0)
munmap(0x801065000,12288)                        = 0 (0x0)
mmap(0x0,163840,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34381344768 (0x80149b000)
munmap(0xb42600000,67932160)                     = 0 (0x0)
fstat(1,{ mode=crw--w---- ,inode=225,size=0,blksize=4096 }) = 0 (0x0)
ioctl(1,TIOCGETA,0x7fffffffe6b0)                 = 0 (0x0)
/boot/userboot.so: Undefined symbol "gfx_fb_bezier"
write(1,"/boot/userboot.so: Undefined sym"...,52) = 52 (0x34)
exit(0x1)
process exit, rval = 1
Comment 1 John Kennedy 2021-01-30 14:43:07 UTC
Created attachment 222021 [details]
src.conf

In sleeping on it, as nobody else has noticed it yet, chances are probably good that having WITH_BIND_NOW in /etc/src.conf has a lot to do with that.
Comment 2 Kyle Evans freebsd_committer freebsd_triage 2021-01-30 14:46:57 UTC
+tsoome
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-01-30 19:21:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d51cc252a062411a1656960eb5d47e954c6c835d

commit d51cc252a062411a1656960eb5d47e954c6c835d
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-01-30 19:16:20 +0000
Commit:     Toomas Soome <tsoome@FreeBSD.org>
CommitDate: 2021-01-30 19:20:27 +0000

    userboot: provide stub gfx functions

    Make sure we have needed functions present, to avoi getting undefined
    symbols error(s).

    PR: 253088
    Reported by: John Kennedy

 stand/userboot/userboot/Makefile        |  3 +-
 stand/userboot/userboot/gfx_fb.c (new)  | 78 +++++++++++++++++++++++++++++++++
 stand/userboot/userboot/userboot_cons.c |  4 --
 3 files changed, 80 insertions(+), 5 deletions(-)
Comment 4 John Kennedy 2021-01-30 23:52:51 UTC
That fixed it for me.  Now on 13.0-ALPHA3 stable/13-c256228-gbb8fa72dae42-dirty.
Comment 5 John Kennedy 2021-02-02 00:23:04 UTC
I didn't see a MFC date and the ticket is still set to "New"...  is this going to get merged back into 13/stable?  Does it need more testing?
Comment 6 commit-hook freebsd_committer freebsd_triage 2021-02-02 13:02:54 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a66467dcfd65bc6d4915a3c2c1b5ab2ca77133d4

commit a66467dcfd65bc6d4915a3c2c1b5ab2ca77133d4
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-01-30 19:16:20 +0000
Commit:     Toomas Soome <tsoome@FreeBSD.org>
CommitDate: 2021-02-02 10:21:49 +0000

    userboot: provide stub gfx functions

    Make sure we have needed functions present, to avoi getting undefined
    symbols error(s).

    PR: 253088
    Reported by: John Kennedy

    (cherry picked b79f2bc6c5c7431fa1f7c02937ec97a64653ade1)

 stand/userboot/userboot/Makefile        |  3 +-
 stand/userboot/userboot/gfx_fb.c (new)  | 78 +++++++++++++++++++++++++++++++++
 stand/userboot/userboot/userboot_cons.c |  4 --
 3 files changed, 80 insertions(+), 5 deletions(-)