Red Hat Bugzilla – Bug 83111
efence broken on Hammer
Last modified: 2008-05-01 11:38:05 EDT
Description of problem:
ElectricFence dumps core on Hammer immediately at startup.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ ef ls
anything linked against -lefence does likewise, as does running the test suite
in the EF sources.
Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <email@example.com>
/usr/bin/ef: line 20: 1132 Segmentation fault ( export
LD_PRELOAD=libefence.so.0.0; exec $* )
EF test suite passes if not compiled with -DUSE_SEMAPHORE.
From adding debugging, the segfault occurs in exactly the pthread_self() call in
(As an aside, efence.c seems to assume 0 isn't a valid pthread_t, which I don't
believe is correct, and it probably should be using pthread_equal rather than !=
to compare pthread_t values. Neither of these seem to be the cause of the
Should be fixed in ElectricFence-2.2.2-15.
Thanks Jakub, works fine for me now.