maintainer-feedback requested: [Bug 240761] Segmentation fault in OpenCL programs using clover
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 23 07:26:28 UTC 2019
Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-x11 mailing list
<x11 at FreeBSD.org> for maintainer-feedback:
Bug 240761: Segmentation fault in OpenCL programs using clover
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240761
--- Description ---
Hello. This is a long standing bug (at least for me), but I've decided to
report only now. When you use an OpenCL program using lang/clover, the programm
will crash at exit.
I've tracked the problem to a file src/util/u_queue.c in mesa sources. The
segmentation fault occurs while executing atexit handlers (one such hander is
added in global_init() ). BTW, there is nothing wrong with atexit_handler()
function itself: it can be empty and the result will be the same (segmentation
fault).
I tried to reproduce this behavior in a test program without success, so I have
no idea what is causing the bug.
Meanwhile, I wrote a little workarond using constructor and destructor
functions (supported by both clang and gcc). This works just fine without any
errors.
More information about the freebsd-x11
mailing list