[Bug 240761] Segmentation fault in OpenCL programs using clover
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 23 07:26:29 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240761
Bug ID: 240761
Summary: Segmentation fault in OpenCL programs using clover
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: x11 at FreeBSD.org
Reporter: shamaz.mazum at gmail.com
Assignee: x11 at FreeBSD.org
Flags: maintainer-feedback?(x11 at FreeBSD.org)
Attachment #207731 text/plain
mime type:
Created attachment 207731
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=207731&action=edit
Constructor/destructor workaround
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-x11
mailing list