VirtualBox

Opened 6 months ago

Last modified 3 months ago

#22193 new defect

segfault on arch linux due to missing libdl.so

Reported by: thorstenhirsch Owned by:
Component: other Version: VirtualBox-7.1.2
Keywords: Cc:
Guest type: all Host type: Linux

Description

There's a thread in the arch forum with lots of details, see: https://bbs.archlinux.org/viewtopic.php?id=299392

Summary: VirtualBox 7.1.x seems to be linked (transitively?) against libdl.so, which is missing on modern Linux installations. As a workaround users can create the following symlink:

/usr/lib/virtualbox/libdl.so -> /usr/lib/libdl.so.2

But the real solution would be that Oracle fixes the build.

P.S.: Not sure about the necessity of a similar libpthread.so symlink, which is also mentioned in the linked thread.

Change History (7)

comment:1 by Trevor Hemsley, 5 months ago

Also broken on Fedora 40 and fixed by running

cd /usr/lib64/virtualbox
ln -s ../libpthread.so.0 libpthread.so
ln -s ../libdl.so.2 libdl.so

Tried with just the libdl.so symlink first but still failed until the libpthread one was created too.

Last edited 5 months ago by Trevor Hemsley (previous) (diff)

comment:2 by thorstenhirsch, 5 months ago

Problem stays the same in VirtualBox 7.1.4

comment:3 by galitsyn, 5 months ago

Hi thorstenhirsch,

Do you see this issue with the official build from Downloads page? We don't ship package for Arch Linux (you could try "All distributions" .run version though), but with Fedora package I do not see the problem you are reporting.

If VirtualBox package is built by your distribution, please consider filing a report to Arch bug tracker.

comment:4 by mmmmmmmax, 5 months ago

Same issue with Debian 12. I get the segfault until I add the symlinks from comment 1. (Then I get another error related to the kernel module, but that's a different issue.)

I suggest that the issue title is changed to show that the problem is not only on Arch.

comment:5 by galitsyn, 5 months ago

Hi mmmmmmmax,

Which package have you installed?

comment:6 by davedeaven, 4 months ago

This also occurs on OpenSuSE LEAP 15.6, virtualbox 7.1.4-lp156.2.4.1 and is resolved by adding explicit symlinks in /usr/lib/virtualbox:

/usr/lib/virtualbox/libdl.so -> /lib64/libdl.so.2
/usr/lib/virtualbox/libpthread.so -> /lib64/libpthread.so.0

comment:7 by bq, 3 months ago

I also have the same problem on Ubuntu 22.04.5 and VB 7.1.4 installed from the VB Repo from https://www.virtualbox.org/wiki/Linux_Downloads. All patches up to date. Slightly different paths required:

/usr/lib/virtualbox/libpthread.so -> /usr/lib/x86_64-linux-gnu/libpthread.so.0
/usr/lib/virtualbox/libdl.so -> /usr/lib/x86_64-linux-gnu/libdl.so.2

libpthread link is required for me.

Last edited 3 months ago by bq (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette