I don't think the results are much ( they are below). We are running ClamAV installed from a package. WIll I need to recompile clamd myself to use gdb?

David



Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9"...

warning: Can't read pathname for load map: I/O error.
Reading symbols from /opt/ClamAV/lib/sparcv9/libclamav.so.6...done.
Loaded symbols for /opt/ClamAV/lib/sparcv9/libclamav.so.6
Reading symbols from /usr/lib/sparcv9/libz.so.1...done.
Loaded symbols for /usr/lib/64/libz.so.1
Reading symbols from /usr/lib/sparcv9/libbz2.so.1...done.
Loaded symbols for /usr/lib/64/libbz2.so.1
Reading symbols from /usr/lib/sparcv9/libm.so.1...done.
Loaded symbols for /usr/lib/64/libm.so.1
Reading symbols from /usr/lib/sparcv9/libnsl.so.1...done.
Loaded symbols for /usr/lib/64/libnsl.so.1
Reading symbols from /usr/lib/sparcv9/libdl.so.1...done.
Loaded symbols for /usr/lib/64/libdl.so.1
Reading symbols from /usr/lib/sparcv9/libsocket.so.1...done.
Loaded symbols for /usr/lib/64/libsocket.so.1
Reading symbols from /usr/lib/sparcv9/libresolv.so.2...done.
Loaded symbols for /usr/lib/64/libresolv.so.2
Reading symbols from /usr/lib/sparcv9/libpthread.so.1...done.
Loaded symbols for /usr/lib/64/libpthread.so.1
Reading symbols from /usr/lib/sparcv9/libc.so.1...done.
Loaded symbols for /usr/lib/64/libc.so.1
Reading symbols from /usr/lib/sparcv9/libmp.so.2...done.
Loaded symbols for /usr/lib/64/libmp.so.2
Reading symbols from /usr/platform/SUNW,Sun-Fire-880/lib/sparcv9/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Fire-880/lib/sparcv9/libc_psr.so.1
Reading symbols from /usr/lib/sparcv9/libthread.so.1...done.

warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /usr/lib/64/libthread.so.1
Reading symbols from /opt/ClamAV/lib/sparcv9/libclamunrar_iface.so.6.1.9...done.

warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /opt/ClamAV/lib/sparcv9/libclamunrar_iface.so.6.1.9
Reading symbols from /opt/ClamAV/lib/sparcv9/libclamunrar.so.6...done.

warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /opt/ClamAV/lib/sparcv9/libclamunrar.so.6

warning: Couldn't find general-purpose registers in core file.

warning: Wrong size fpregset in core file.

warning: Can't read pathname for load map: I/O error.

warning: Can't read pathname for load map: I/O error.

warning: Couldn't find general-purpose registers in core file.

warning: Wrong size fpregset in core file.
#0  0x0000000000000000 in ?? ()
(gdb) thread apply all bt
(gdb) quit


--On Monday, April 04, 2011 8:17 PM +0300 Török Edwin <edwinto...@gmail.com> wrote:

On 2011-04-04 19:58, David Alix wrote:
I don't know what you mean by "alighnment issue".

alignment issue, for example: on Sparc memory reads of 4-byte in size
must be 4-byte aligned. If it is not properly aligned you get SIGBUS.
This issue doesn't exist on x86, at least not for regular instructions.


dmesg output is going into my logs already, and I can see no indication
of an event around the time the clamd daemon abends.  It is now
happening as often as every 2 minutes.

I have a core file, but my adb(mdb) is rusty.

Please install gdb, and then run these commands, and paste the results:
$ gdb -c core /usr/sbin/clamd
...
(gdb) thread apply all bt

where 'core' is the name of your corefile
/usr/sbin/clamd is the full path to clamd
(gdb) is the gdb prompt
'thread apply all bt' is the command you type in


It should be possible to get a stacktrace with mdb too, but I'm not
familiar with it.

--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml



___________________________________
David Alix
Information Systems and Computing
david.a...@isc.ucsb.edu
(805)893-4456
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to