Skip to content

Segfaults in hiprtCreateGeometry when using distribution packaged hip #18

@littlewu2508

Description

@littlewu2508

I'm using 6700XT on Gentoo dev-util/hip-5.6.0 with upstream clang-16.0.6, and hiprt buildID_linux.txt: 453.

00_context_creation passed.

When executing 01_geom_intersection64D, it segfaults. The stack trace:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/opt/gentoo/lib64/libthread_db.so.1".
[New Thread 0x7fffe8dff6c0 (LWP 3748500)]
[New Thread 0x7fffe3fff6c0 (LWP 3748501)]
[Thread 0x7fffe3fff6c0 (LWP 3748501) exited]
hiprt ver.02000
Executing on 'AMD Radeon RX 6700 XT'

Thread 1 "01_geom_interse" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) thread apply all bt

Thread 2 (Thread 0x7fffe8dff6c0 (LWP 3748500) "01_geom_interse"):
#0  0x00007ffff7a47c1b in ioctl () from /opt/gentoo/lib64/libc.so.6
#1  0x00007ffff78f1df0 in ?? () from /opt/gentoo/usr/lib64/libhsakmt.so.1
#2  0x00007ffff78eb295 in hsaKmtWaitOnMultipleEvents () from /opt/gentoo/usr/lib64/libhsakmt.so.1
#3  0x00007ffff52dc285 in ?? () from /opt/gentoo/usr/lib64/libhsa-runtime64.so.1
#4  0x00007ffff52b859e in ?? () from /opt/gentoo/usr/lib64/libhsa-runtime64.so.1
#5  0x00007ffff52d1f6a in ?? () from /opt/gentoo/usr/lib64/libhsa-runtime64.so.1
#6  0x00007ffff527e537 in ?? () from /opt/gentoo/usr/lib64/libhsa-runtime64.so.1
#7  0x00007ffff79d0299 in ?? () from /opt/gentoo/lib64/libc.so.6
#8  0x00007ffff7a5332c in ?? () from /opt/gentoo/lib64/libc.so.6

Thread 1 (Thread 0x7ffff7ea5740 (LWP 3748497) "01_geom_interse"):
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7f3804a in ?? () from ../../hiprt/linux64/libhiprt0200064.so
#2  0x00007ffff7f621a4 in hiprtCreateGeometry () from ../../hiprt/linux64/libhiprt0200064.so
#3  0x000055555556e2eb in Tutorial::run (this=0x7fffffffc3e0) at ../01_geom_intersection/main.cpp:69
#4  0x000055555556deb6 in main (argc=1, argv=0x7fffffffc548) at ../01_geom_intersection/main.cpp:96

If I use the amd's rocm distribution (at /opt/rocm), then it's the same issue with #15 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions