pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59771: emulators/dosbox segfaults in i386 machine



>Number:         59771
>Category:       pkg
>Synopsis:       emulators/dosbox segfaults in i386 machine
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 17 07:35:00 +0000 2025
>Originator:     Ramiro Aceves
>Release:        11.0_BETA
>Organization:
>Environment:
packardbell_netbsd$ uname -a
NetBSD packardbell_netbsd 11.0_BETA NetBSD 11.0_BETA (GENERIC) #0: Tue Oct 28 15:00:36 UTC 2025 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
Hello,

I have updated my i386 system to 11.0_BETA just to test "install/59759: Core dump on sysupgrade to 11.0 BETA" that was recently posted here.

I have also updated all packages to 11.0_2025Q3


packardbell_netbsd$ cat /usr/pkg/etc/pkgin/repositories.conf
..
..
..

# NetBSD OS release can look like 6.0_STABLE, do not use it as-is
https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/11.0_2025Q3/All
packardbell_netbsd$

I installed dosbox

dosbox-0.74.3nb4 =   Multi-platform DOS emulator using SDL


packardbell_netbsd$ dosbox
/usr/pkg/bin/dosbox: text relocations
[1]   Segmentation fault (core dumped) dosbox
packardbell_netbsd$ 

RVP in the netbsd-users mailing list pointed out a possible origin of the bug:

"""This looks like a runtime linker (ld.elf_so) bug. At least _two_ on 11.0_BETA,
in fact.

1. In 11.0_BETA, the new GNU ld(1) now creates 4 LOAD segments in an executable.
   In 10.x and prev. versions, there were only 2 LOAD segments.

   The ld.elf_so(1) in 11.0 and -HEAD hasn't been updated to account for this,
   it looks like, so the runtime linker picks the wrong segment size (much
   smaller that reqd.) when it goes to patch the text relocation addresses
   (only on i386).

2. ASLR also doesn't seem to be accounted for. dosbox(1) works perfectly on
   NetBSD/i386 10.x if your turn off ASLR (the only bug there)."""


>How-To-Repeat:
just run dosbox
>Fix:



Home | Main Index | Thread Index | Old Index