[OpenAFS-devel] LWP and clang
Benjamin Kaduk
kaduk@MIT.EDU
Wed, 16 Oct 2013 13:26:08 -0400 (EDT)
Hi all,
I've been seeing lots of runtime crashes when running clang-compiled
LWP-using binaries, for several months now at least. My experiences have
only been on freebsd systems, though, using the clang provided in the base
system (which has been getting rather frequent updates, admittedly). When
I'm working with master, most things are pthreaded and work fine (though I
do have to remember to use, e.g., tptserver instead of ptserver), and my
1.6 builds have ended up using the system compiler, which has been gcc
"forever". However, the upcoming FreeBSD 10.0 release will switch the
system compiler to clang, so the issue is becoming more pressing. I would
prefer to not have to make the freebsd packaging force gcc, since we
otherwise don't have any dependencies.
Is this a well-known issue? Do other people see it?
There are no warnings produced at compile time that obviously indicate the
LWP code is doing things clang does not like, so I don't have any good
ideas for debugging other than pondering the disassembly of the faulting
instruction(s).
-Ben