GPUOpen-Drivers / AMDVLK

AMD Open Source Driver For Vulkan
MIT License
1.73k stars 162 forks source link

Invalid pointer crash #265

Closed Chryseus closed 2 years ago

Chryseus commented 2 years ago

Running any application using AMDVLK including vulkaninfo results in a crash, free(): invalid pointer, RADV works just fine. This appears to have been caused by last nights update to 2021.Q4.3-1 from 4.2-1. I'm running Arch Linux 5.15.11-arch2-1 glxinfo.txt

Update Downgrading to 4.2-1 fixes the problem.

cycomanic commented 2 years ago

I encounter the same issue. vulkan-radeon works, but amdvlk crashes.

$vulkaninfo --summary
free(): invalid pointer
fish: Job 1, 'vulkaninfo --summary' terminated by signal SIGABRT (Abort)

Relevant section from journal:


Dec 28 11:59:30 endeavourBase audit[16799]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 pid=16799 comm="vulkaninfo" exe="/usr/bin/vulkaninfo" sig=6 res=1
Dec 28 11:59:30 endeavourBase kernel: audit: type=1701 audit(1640689170.546:147): auid=1000 uid=1000 gid=1000 ses=3 pid=16799 comm="vulkaninfo" exe="/usr/bin/vulkaninfo" si>
Dec 28 11:59:30 endeavourBase audit: BPF prog-id=38 op=LOAD
Dec 28 11:59:30 endeavourBase audit: BPF prog-id=39 op=LOAD
Dec 28 11:59:30 endeavourBase audit: BPF prog-id=40 op=LOAD
Dec 28 11:59:30 endeavourBase kernel: audit: type=1334 audit(1640689170.551:148): prog-id=38 op=LOAD
Dec 28 11:59:30 endeavourBase kernel: audit: type=1334 audit(1640689170.551:149): prog-id=39 op=LOAD
Dec 28 11:59:30 endeavourBase kernel: audit: type=1334 audit(1640689170.551:150): prog-id=40 op=LOAD
Dec 28 11:59:30 endeavourBase systemd[1]: Started Process Core Dump (PID 16801/UID 0).
░░ Subject: A start job for unit systemd-coredump@2-16801-0.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit systemd-coredump@2-16801-0.service has finished successfully.
░░ 
░░ The job identifier is 2499.
Dec 28 11:59:30 endeavourBase audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-16801-0 comm="systemd" exe="/usr/lib/systemd/s>
Dec 28 11:59:30 endeavourBase kernel: audit: type=1130 audit(1640689170.552:151): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-16801-0 comm="syst>
Dec 28 11:59:30 endeavourBase systemd-coredump[16802]: [🡕] Process 16799 (vulkaninfo) of user 1000 dumped core.

                                                       Module linux-vdso.so.1 with build-id e03e20cb310dd7f3aa2cff60ad39737026d9ebe6
                                                       Module libxcb-dri2.so.0 with build-id 2dd6e65129a809dab828a1d26215a3f7a363fcc8
                                                       Module libnss_files.so.2 with build-id 1a36dfc01d3a1010b2ee79766a24a8090a3266d5
                                                       Module libcrypto.so.1.1 with build-id 4c926b672d97886b123e03a008387aecf0786de4
                                                       Module libssl.so with build-id 1024424ab33a3767da03f4fdb1fc1b02479f160f
                                                       Module amdvlk64.so with build-id 45a23aea5cfa127688d1c3f041b9f9d570f748c1
                                                       Module libicudata.so.70 with build-id e1dcc2a88cfaafed882d09c90c668af0eed4efed
                                                       Module liblzma.so.5 with build-id 8b615460aa230708c5183f16bede67aa0437d95e
                                                       Module libicuuc.so.70 with build-id 2e245c2bf12f95fd8ab79b3a4be99524677cbd70
                                                       Module libxml2.so.2 with build-id b710b880b0d4e9c93554fa632129db44c20632cd
                                                       Module libncursesw.so.6 with build-id 859adb8b03a5655151b4da104bc4b326a0d4bc8c
                                                       Module libedit.so.0 with build-id 4b0babfcad161c2ad0af6e59e2493258db23a331
                                                       Module libdrm.so.2 with build-id 457a1a1bd25f1d5541a10d3f16c5dc1440d77c7d
                                                       Module libxshmfence.so.1 with build-id 8876d9ccf620858795724ca24b9e567585a77cec
                                                       Module libxcb-shm.so.0 with build-id fb797f299a446f559a95afcc168227482cc800d1
                                                       Module libxcb-randr.so.0 with build-id b6c1c7d4b28863b55ade251813db7f246b7ffe8b
                                                       Module libxcb-sync.so.1 with build-id dda14591103b01b1311906053bf1ca9e82ade35c
                                                       Module libxcb-present.so.0 with build-id 68f5465258750e2397b1333b3ffc01ee33caa4e1
                                                       Module libX11-xcb.so.1 with build-id 0db4f94d8ae31b8dc9a83f825a9171656f1e532c
                                                       Module libzstd.so.1 with build-id 4b10444c1560ebc574af4d5f488b7408b22d450e
                                                       Module libexpat.so.1 with build-id 16023a53e7b5bbdff92bd0bf2eebd36f9b5b879f
                                                       Module libz.so.1 with build-id 81bf6e728a6d6f5b105b0f8b25f6c614ce10452a
                                                       Module libxcb-dri3.so.0 with build-id 9407a2480e09dc5a1dd9d9a0652fa8d32b328c91
                                                       Module libelf.so.1 with build-id 4300a0a24ac790c27ac0fe1fd5253729905ce708
                                                       Module libdrm_amdgpu.so.1 with build-id 30d019987d514b23115b47d6b47c1e45c18fdbaf
                                                       Module libLLVM-13.so with build-id 82982c299d46219d0eab8ee9cb8bb7365483453b
                                                       Module libvulkan_radeon.so with build-id 5acf9134b163454e51e06337deb316d61a1f3243
                                                       Module libvulkan.so with build-id 0c8486d8689e18bd837da80fe4d17664a248bc10
                                                       Module libm.so.6 with build-id 2b8fd1f869ecab4e0b55e92f2f151897f6818acf
                                                       Module libpthread.so.0 with build-id 07c8f95b4f3251d08550217ad8a1f31066229996
                                                       Module libffi.so.8 with build-id f90d8b734f6de9b25faedb8cbfab7054dafc0a42
                                                       Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955
                                                       Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff
                                                       Module ld-linux-x86-64.so.2 with build-id 040cc3dd10461562f177df39e3be2f3704258c3c
                                                       Module libc.so.6 with build-id 4b406737057708c0e4c642345a703c47a61c73dc
                                                       Module libgcc_s.so.1 with build-id 7f8508bb914546ada778809b64b99d234337d835
                                                       Module libstdc++.so.6 with build-id 9b5eeeb149bf3c4efe787fb398b44f00507aec87
                                                       Module libwayland-client.so.0 with build-id 0a237f2fd096bada4ca381eec5d64474c4078be4
                                                       Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478
                                                       Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222
                                                       Module libdl.so.2 with build-id 5abc547e7b0949f89f3c0e21ab0c8331a7440a8a
                                                       Module vulkaninfo with build-id 4b6a2602c15efdb4570a49446c2f480787c36b98
                                                       Stack trace of thread 16799:
                                                       #0  0x00007f199b294d22 raise (libc.so.6 + 0x3cd22)
                                                       #1  0x00007f199b27e862 abort (libc.so.6 + 0x26862)
                                                       #2  0x00007f199b2d6d28 __libc_message (libc.so.6 + 0x7ed28)
                                                       #3  0x00007f199b2de92a malloc_printerr (libc.so.6 + 0x8692a)
                                                       #4  0x00007f199b2dfcfc _int_free (libc.so.6 + 0x87cfc)
                                                       #5  0x00007f199b2e39e8 __libc_free (libc.so.6 + 0x8b9e8)
                                                       #6  0x00007f199043a095 n/a (amdvlk64.so + 0x1697095)
                                                       #7  0x00007f199044df82 n/a (amdvlk64.so + 0x16aaf82)
                                                       #8  0x00007f1990469cba n/a (amdvlk64.so + 0x16c6cba)
                                                       #9  0x00007f199046b0f0 n/a (amdvlk64.so + 0x16c80f0)
                                                       #10 0x00007f199072ea24 n/a (amdvlk64.so + 0x198ba24)
                                                       #11 0x00007f199072f4d4 n/a (amdvlk64.so + 0x198c4d4)
                                                       #12 0x00007f1990bbad81 n/a (amdvlk64.so + 0x1e17d81)
                                                       #13 0x00007f198f40acbf n/a (amdvlk64.so + 0x667cbf)
                                                       #14 0x00007f198f2e1a6b n/a (amdvlk64.so + 0x53ea6b)
                                                       #15 0x00007f198f2e4ea0 n/a (amdvlk64.so + 0x541ea0)
                                                       #16 0x00007f198f0db354 n/a (amdvlk64.so + 0x338354)
                                                       #17 0x00007f198f0bcca9 n/a (amdvlk64.so + 0x319ca9)
                                                       #18 0x00007f198f0be462 n/a (amdvlk64.so + 0x31b462)
                                                       #19 0x00007f1990c8ffed n/a (amdvlk64.so + 0x1eecfed)
                                                       #20 0x00007f199b090e2c n/a (libvulkan.so + 0x2fe2c)
                                                       #21 0x00007f199b09ad9f n/a (libvulkan.so + 0x39d9f)
                                                       #22 0x00007f199b09bc45 n/a (libvulkan.so + 0x3ac45)
                                                       #23 0x00007f199b09ffb8 vkCreateDevice (libvulkan.so + 0x3efb8)
                                                       #24 0x0000556de3e4be84 n/a (vulkaninfo + 0x75e84)
                                                       #25 0x0000556de3de834b n/a (vulkaninfo + 0x1234b)
                                                       #26 0x00007f199b27fb25 __libc_start_main (libc.so.6 + 0x27b25)
                                                       #27 0x0000556de3dea62e n/a (vulkaninfo + 0x1462e)

                                                       Stack trace of thread 16800:
                                                       #0  0x00007f199b2338ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
                                                       #1  0x00007f199b22d270 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf270)
                                                       #2  0x00007f199aa292fc n/a (libvulkan_radeon.so + 0x2602fc)
                                                       #3  0x00007f199aa28aec n/a (libvulkan_radeon.so + 0x25faec)
                                                       #4  0x00007f199b227259 start_thread (libpthread.so.0 + 0x9259)
                                                       #5  0x00007f199b3565e3 __clone (libc.so.6 + 0xfe5e3)
                                                       ELF object binary architecture: AMD x86-64
░░ Subject: Process 16799 (vulkaninfo) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 16799 (vulkaninfo) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
Dec 28 11:59:30 endeavourBase systemd[1]: systemd-coredump@2-16801-0.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit systemd-coredump@2-16801-0.service has successfully entered the 'dead' state.
Dec 28 11:59:30 endeavourBase audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@2-16801-0 comm="systemd" exe="/usr/lib/systemd/sy>
ahcm commented 2 years ago

Also breaks Bannerlord, downgrading to amdvlk-2021.Q4.2 fixes it.

rj1 commented 2 years ago

can reproduce. with this version upgrade on arch linux, path of exile no longer launches w/ proton/steam. same error free(): invalid pointer

edit: issue is fixed w/ update 2021.Q4.3-2

PhavourFlavour commented 2 years ago

I can confirm more games are affected

Downgrading mentionend in first post works.

lukedupin commented 2 years ago

I can confirm all of my wine games are broken with Q4.3

lordheavy commented 2 years ago

We have issues with lto. It should be fixed with 2021.Q4.3-2 package.

Chryseus commented 2 years ago

2021.Q4.3-2 seems to have fixed the issue.

ahcm commented 2 years ago

2021.Q4.3-2 fixed it.