Segmentation fault while starting Dwarf Fortress

Hi, I installed Dwarf Fortress using pacman. When I execute dwarffortress in my console, the command outputs the following message:

/usr/bin/dwarffortress: line 15: 13472 Segmentation fault      (core dumped) LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${DF_DIR}" $DF_DIR/dwarfort "$@"

How can I solve or debug this problem? Thanks.

Here, I will add my system information:

System:
  Kernel: 6.12.12-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.12-x86_64
    root=UUID=799cd1ed-8450-457b-8f4c-8d6b3149ec3d rw quiet splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 6.2.5 tk: Qt v: N/A info: frameworks v: 6.10.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 21FW000KLM v: ThinkPad P1 Gen 6
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 21FW000KLM v: SDK0T76530 WIN
    serial: <superuser required> part-nu: LENOVO_MT_21FW_BU_Think_FM_ThinkPad
    P1 Gen 6 uuid: <superuser required> UEFI: LENOVO v: N3ZET45W (1.32 )
    date: 09/05/2024
Battery:
  ID-1: BAT0 charge: 87.6 Wh (99.0%) condition: 88.5/90.1 Wh (98.2%)
    volts: 17.4 min: 15.5 model: SMP 5B11K07736 type: Li-poly serial: <filter>
    status: not charging cycles: 44
Memory:
  System RAM: total: 32 GiB available: 31.01 GiB used: 10.26 GiB (33.1%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 96 GiB slots: 2 modules: 2 EC: None
    max-module-size: 48 GiB note: est.
  Device-1: Controller0-ChannelA/B-DIMM0 type: DDR5 detail: synchronous
    size: 16 GiB speed: 5600 MT/s volts: curr: 1 width (bits): data: 64
    total: 64 manufacturer: Samsung part-no: M425R2GA3BB0-CWMOD
    serial: <filter>
  Device-2: Controller1-ChannelA/B-DIMM0 type: DDR5 detail: synchronous
    size: 16 GiB speed: 5600 MT/s volts: curr: 1 width (bits): data: 64
    total: 64 manufacturer: Samsung part-no: M425R2GA3BB0-CWMOD
    serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: 13th Gen Intel Core i7-13700H bits: 64 type: MST AMCP
    arch: Raptor Lake gen: core 13 level: v3 note: check built: 2022+
    process: Intel 7 (10nm) family: 6 model-id: 0xBA (186) stepping: 2
    microcode: 0x4123
  Topology: cpus: 1x dies: 1 clusters: 8 cores: 14 threads: 20 mt: 6 tpc: 2
    st: 8 smt: enabled cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32
    KiB, 8x64 KiB L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB
    desc: 1x24 MiB
  Speed (MHz): avg: 400 min/max: 400/4800:5000:3700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400 14: 400
    15: 400 16: 400 17: 400 18: 400 19: 400 20: 400 bogomips: 116780
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts clflush clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16 cx8
    de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fsrm fxsr gfni hfi ht hwp hwp_act_window
    hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ibt ida intel_pt
    invpcid lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b movdiri
    msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pclmulqdq pdcm pdpe1gb
    pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed rdtscp
    rep_good sdbg sep serialize sha_ni smap smep smx split_lock_detect ss
    ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
    tsc_adjust tsc_deadline_timer tsc_known_freq umip user_shstk vaes vme vmx
    vnmi vpclmulqdq vpid waitpkg x2apic xgetbv1 xsave xsavec xsaveopt xsaves
    xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB:
    conditional; RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics] vendor: Lenovo driver: i915
    v: kernel alternate: xe arch: Xe process: Intel 7 (10nm) built: 2022+ ports:
    active: none off: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:a7a0
    class-ID: 0300
  Device-2: NVIDIA GA107GLM [RTX A1000 6GB Laptop GPU] vendor: Lenovo
    driver: nvidia v: 550.144.03 alternate: nouveau,nvidia_drm
    non-free: 550/565.xx+ status: current (as of 2025-01; EOL~2026-12-xx)
    arch: Ampere code: GAxxx process: TSMC n7 (7nm) built: 2020-2023 pcie:
    gen: 2 speed: 5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:25bc class-ID: 0300
  Device-3: Logitech C920 PRO HD Webcam driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:3
    chip-ID: 046d:08e5 class-ID: 0102 serial: <filter>
  Device-4: Syntek Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:4 chip-ID: 174f:1812
    class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.15 with: Xwayland v: 24.1.5
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 676x380mm (26.61x14.96")
    s-diag: 775mm (30.53") monitors: <missing: xrandr>
  Monitor-1: eDP-1 model: AU Optronics 0xb69d built: 2021 res: 1920x1200
    dpi: 142 gamma: 1.2 chroma: red: x: 0.659 y: 0.329 green: x: 0.282 y: 0.635
    blue: x: 0.145 y: 0.055 white: x: 0.314 y: 0.329
    size: 344x215mm (13.54x8.46") diag: 406mm (16") ratio: 16:10
    modes: 1920x1200
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia gbm: drv: kms_swrast surfaceless: drv: nvidia x11: drv: iris
    inactive: wayland
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.3.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Iris Xe Graphics (RPL-P)
    device-ID: 8086:a7a0 memory: 15.14 GiB unified: yes
  API: Vulkan v: 1.4.303 layers: 1 device: 0 type: discrete-gpu name: NVIDIA
    RTX A1000 6GB Laptop GPU driver: N/A device-ID: 10de:25bc
    surfaces: xcb,xlib
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdpyinfo,xprop
Audio:
  Device-1: Intel Raptor Lake-P/U/H cAVS vendor: Lenovo
    driver: sof-audio-pci-intel-tgl alternate: snd_hda_intel, snd_soc_avs,
    snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:51ca class-ID: 0401
  Device-2: NVIDIA GA107 High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:2291 class-ID: 0403
  Device-3: Logitech C920 PRO HD Webcam driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:3
    chip-ID: 046d:08e5 class-ID: 0102 serial: <filter>
  API: ALSA v: k6.12.12-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Raptor Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f1 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-10:6 chip-ID: 8087:0033
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 40.7 GiB (8.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVL2512HDJD-00BLL size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 6L2QGXD7 temp: 43.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 139.7 GiB size: 136.45 GiB (97.67%)
    used: 19.32 GiB (14.2%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 799cd1ed-8450-457b-8f4c-8d6b3149ec3d
  ID-2: /boot/efi raw-size: 3.73 GiB size: 3.72 GiB (99.80%)
    used: 288 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
    uuid: 2C40-9512
  ID-3: /home raw-size: 288.81 GiB size: 283.22 GiB (98.06%)
    used: 21.33 GiB (7.5%) fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4
    label: N/A uuid: b2397eec-b537-4dd5-8421-f88c868a6b64
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 44.7 GiB used: 53.9 MiB (0.1%)
    priority: -2 dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: a491f448-4685-4f6d-b187-1327a5744f47
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-6:2 info: Shenzhen Goodix USB2.0 MISC type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 power: 100mA chip-ID: 27c6:6594 class-ID: ef00 serial: <filter>
  Device-2: 1-7:3 info: Logitech C920 PRO HD Webcam type: video,audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 500mA
    chip-ID: 046d:08e5 class-ID: 0102 serial: <filter>
  Device-3: 1-8:4 info: Syntek Integrated Camera type: video
    driver: uvcvideo interfaces: 5 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s)
    lanes: 1 mode: 2.0 power: 500mA chip-ID: 174f:1812 class-ID: fe01
    serial: <filter>
  Hub-2: 1-9:5 info: Terminus Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 1-9.1:7 info: HP HyperX Alloy Origins Core type: keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 500mA chip-ID: 03f0:098f class-ID: 0300
  Device-2: 1-9.3:8 info: Logitech G102/G203 LIGHTSYNC Gaming Mouse
    type: mouse,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 300mA
    chip-ID: 046d:c092 class-ID: 0300 serial: <filter>
  Device-3: 1-10:6 info: Intel AX211 Bluetooth type: bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 8087:0033 class-ID: e001
  Hub-3: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 3-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-5: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 62.0 C mobo: 51.5 C
  Fan Speeds (rpm): fan-1: 2067 fan-2: 2376
Repos:
  Packages: pm: pacman pkgs: 1309 libs: 366 tools: pamac pm: flatpak pkgs: 0
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirror.math.princeton.edu/pub/manjaro/stable/$repo/$arch
    2: http://ftp.belnet.be/mirrors/manjaro/repos/stable/$repo/$arch
    3: http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable/$repo/$arch
    4: https://mirror.ufro.cl/manjaro/stable/$repo/$arch
    5: https://mirrors.eric.ovh/manjaro/stable/$repo/$arch
    6: https://mirrors.jlu.edu.cn/manjaro/stable/$repo/$arch
    7: https://mirror.nyist.edu.cn/manjaro/stable/$repo/$arch
    8: https://ftp.caliu.cat/pub/distribucions/manjaro/stable/$repo/$arch
Info:
  Processes: 449 Power: uptime: 3h 10m states: freeze,mem,disk suspend: s2idle
    wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
    image: 12.37 GiB services: org_kde_powerdevil, power-profiles-daemon,
    upowerd Init: systemd v: 257 default: graphical tool: systemctl
  Compilers: clang: 19.1.7 gcc: 14.2.1 Shell: Zsh v: 5.9 running-in: konsole
    inxi: 3.3.37

Hello and welcome to the Manjaro Community!

Whilst I may not be able to help with your specific issue (I don’t run any games at present) I’d advise you post some system info, as this “helps the helpers”:

inxi -zv8

You will likely be asked for further output(s).

Cheers! :smiley:

1 Like

journalctl -r
(for instance)
reveals more about the cause:

Mär 03 22:34:30 jokde systemd-coredump[1498]: [🡕] Process 1495 (dwarfort) of user 1000 dumped core.
                                               
                                               Module [dso] without build-id.
                                               Stack trace of thread 1495:
                                               #0  0x0000724c064bc41b n/a (n/a + 0x0)
                                               ELF object binary architecture: AMD x86-64
Mär 03 22:34:30 jokde systemd[1]: Started Process Core Dump (PID 1497/UID 0).
Mär 03 22:34:30 jokde systemd-coredump[1497]: Process 1495 (dwarfort) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mär 03 22:34:30 jokde kernel: Code: 89 44 24 24 0f 11 44 24 14 40 84 f6 0f 85 cd 00 00 00 48 89 e6 31 d2 48 89 ef e8 30 f4 f6 ff 48 89 ef 49 89 c4 e8 65 e1 f6 ff <41> 8b 74 24 10 85 f6 74 54 41 8b 4c 24 14 45 31 c9 0f 1f 40 00 85
Mär 03 22:34:30 jokde kernel: dwarfort[1495]: segfault at 10 ip 0000724c064bc41b sp 00007fffd4718e20 error 4 in libg_src_lib.so[bc41b,724c06427000+b0000] likely on CPU 0 (core 0, socket 0)

But I do not know what

Module [dso] without build-id.

means and whether this or the rest of the message is helpful.

1 Like

I will debug the program with gdb to see what’s happening.

The error seems to happen while reading the curses_640x300.png art file:

openat(AT_FDCWD, "data/art/curses_640x300.png", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1568, ...}) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=1568, ...}) = 0
lseek(5, 0, SEEK_CUR)                   = 0
lseek(5, 0, SEEK_CUR)                   = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=1568, ...}) = 0
read(5, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\200\0\0\0\300\1\3\0\0\0\366\250\371"..., 4096) = 1568
lseek(5, 0, SEEK_SET)                   = 0
read(5, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\200\0\0\0\300\1\3\0\0\0\366\250\371"..., 4096) = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
lseek(5, 1568, SEEK_SET)                = 1568
close(5)                                = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10} ---
+++ killed by SIGSEGV (core dumped) +++

I updated my system recently, and the error was solved. :sweat_smile:.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.