[clamav-users] Clamd Segmentation Fault when built on Mac OS X Yosemite
Al Varnell
alvarnell at mac.com
Thu Apr 30 00:22:46 UTC 2015
I wouldn’t spend a lot of time on it until we get some confirmation from ClamAV®, but the instructions on the ClamXav site for Bring Your Own Engine
<http://www.clamxav.com/docs_byo.html> might help.
-Al-
On Wed, Apr 29, 2015 at 05:00PM, Larry Stone wrote:
>
> So how can I use what the information your provided. I am more of a system administrator type rather than a developer. I mostly expect configure and make to work as documented. Debugging them is beyond my current skill set.
>
> Larry Stone
> lstone19 at stonejongleux.com
> http://www.stonejongleux.com/
>
> On Apr 29, 2015, at 4:03 PM, Al Varnell <alvarnell at mac.com> wrote:
>> I received a report from a ClamXav user today who attempted to install engine 0.98.7 is having the same issues with clamd segmentation fault 11 and Yosemite 10.10.
>>
>> Although there were scattered reports of this same error early on with ClamXav Sentry use with the 0.98.6 engine, the developer was able to work through that one. The build info on that are as follows:
>>
>>> Build information
>>> -----------------
>>> Clang: 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56) (4.2.1)
>>> GNU C++: 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56) (4.2.1)
>>> CPPFLAGS:
>>> CFLAGS: -O2 -g -D_FILE_OFFSET_BITS=64 -mmacosx-version-min=10.6 -arch x86_64 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>>> CXXFLAGS:
>>> LDFLAGS:
>>> Configure: '--disable-dependency-tracking' '--enable-llvm' '--enable-clamdtop' '--with-user=_clamav' '--with-group=_clamav' '--enable-all-jit-targets' '--prefix=/usr/local/clamXav' 'CFLAGS=-O2 -g -D_FILE_OFFSET_BITS=64 -mmacosx-version-min=10.6 -arch x86_64 -w' --enable-ltdl-convenience
>>> sizeof(void*) = 8
>>> Engine flevel: 79, dconf: 79
>>
>> -Al-
>>
>> On Wed, Apr 29, 2015 at 01:03PM, Larry Stone wrote:
>>>
>>> Clamd throws a "Segmentation Fault: 11" error when attempting to run it when built on Mac OS X 10.10 Yosemite. This happens with both 0.98.6 and 0.98.7 when built on Yosemite (my version of 0.98.6 built on 10.9 ran fine on 10.10). But I just upgraded my server from 10.9 to 10.10 and with today's relase of 0.98.7, this was my first time attempting to build ClamAV under Yosemite.
>>>
>>> Various articles I've found are pointing to an issue with libtool where 10.10 gets treated as if it's 10.1. This article (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63610) seems to describe the issue but a lot of it is beyond me. I've attempted defining MACOSX_DEPLOYMENT_TARGET=10.9 as described in that article but that didn't make a difference (nor am I seeing anything else defining it to 10.10 so I didn't expect it make a difference).
>>>
>>> ./configure is happy and make generates a lot of warning but no errors. The error only happens when trying to run it.
>>>
>>> Note this is ClamAV, not ClamXav.
>>>
>>> -- Larry Stone
>>> lstone19 at stonejongleux.com
More information about the clamav-users
mailing list