2010/3/1 Török Edwin <edwinto...@gmail.com>:
> On 03/01/2010 10:46 PM, Renato Botelho wrote:
>> 2010/3/1 Török Edwin <edwinto...@gmail.com>:
>>> On 03/01/2010 09:22 PM, Renato Botelho wrote:
>>>> Hello one more time,
>>>>
>>>> I was trying to update clamav-devel port to a more recent snapshot
>>>> and I got some segfaults during make test, like you can see here:
>>> Which FreeBSD version, and which architecture?
>>
>> 6.4-RELEASE amd64
>
> I have 6.4 i386 in a VM :(
>
> I just installed gcc42 on it (pkg_add needed some convincing to use
> packages-6-stable instead of packages-6.4-release), and llvmunittest_ADT
> worked.
>
> I did this:
> ./configure CXX=g++42 CC=gcc42 --disable-clamav --enable-llvm
> cd libclamav/c++
> make llvmunittest_ADT
> ./llvmunittest_ADT
>
> It told me that 92 tests passed.
>
> My guess is that something goes wrong during startup, the ADT test is
> really simple and tehre isn't much that can segfault there.
>
>>
>>> Can you get a gdb backtrace for one of these? (when built with debug
>>> symbols)
>>> Just run gdb ./llvmunittest_ADT
>>> (gdb) run
>>> ...
>>> (gdb) bt

I got a real 6.4 amd64 machine, and i reproduced the problem,
here is the data i collected after build with -g:

testegw# gdb ./llvmunittest_ADT
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run
Starting program:
/home/garga/clamav-devel/work/clamav-devel-20100303/libclamav/c++/llvmunittest_ADT
[New LWP 100047]
[New Thread 0x60f000 (LWP 100047)]
[New LWP 100047]

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 100047]
0x000000080073931d in _pthread_mutex_trylock () from /usr/lib/libthr.so.2
(gdb) bt
#0  0x000000080073931d in _pthread_mutex_trylock () from /usr/lib/libthr.so.2
#1  0x0000000800739686 in pthread_mutex_lock () from /usr/lib/libthr.so.2
#2  0x0000000800b740af in __register_frame_info_bases (begin=Variable
"begin" is not available.
) at gthr-posix.h:611
#3  0x0000000800b6c191 in frame_dummy () from /usr/local/lib/gcc42/libgcc_s.so.1
#4  0x0000000000000000 in ?? ()
#5  0x0000000800b6bf01 in _init () from /usr/local/lib/gcc42/libgcc_s.so.1
#6  0x00007fffffffeaf0 in ?? ()
#7  0x0000000800601e4d in _rtld_error () from /libexec/ld-elf.so.1
#8  0x0000000800604ac2 in _rtld () from /libexec/ld-elf.so.1
#9  0x0000000800601479 in .rtld_start () from /libexec/ld-elf.so.1
#10 0x0000000000000000 in ?? ()
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000000 in ?? ()
#14 0x0000000000000001 in ?? ()
#15 0x00007fffffffeda0 in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0x00007fffffffedf3 in ?? ()
#18 0x00007fffffffedfd in ?? ()
#19 0x00007fffffffee08 in ?? ()
#20 0x00007fffffffee17 in ?? ()
#21 0x00007fffffffee7d in ?? ()
#22 0x00007fffffffee91 in ?? ()
#23 0x00007fffffffee9d in ?? ()
#24 0x00007fffffffeeb2 in ?? ()
#25 0x00007fffffffeebd in ?? ()
#26 0x00007fffffffeece in ?? ()
#27 0x00007fffffffeedd in ?? ()

Let me know if you need something else.
-- 
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to