[Pkg-clamav-devel] [sparc] Bus error in _dl_new_object

Michael Tautschnig mt at debian.org
Sun Mar 29 12:57:40 UTC 2009


Package: libc6
Version: 2.9-6

Here's another problem that popped up while running clamav's test suite. Again's
there a problem loading /usr/lib/gconv/UTF-16.so (as in #521556), but here I'm
unable to really see which pointer is invalid because gdb refused to provide any
information about the objects used in line 110 of dl-object.c (new or
dl_load_adds). Below is all I got from gdb.

Best,
Michael

(sid)mt at sperger:~/clamav-0.95+dfsg/unit_tests$ LD_LIBRARY_PATH=/usr/lib/debug/:../libclamav/.libs/ gdb --args ../clamscan/.libs/clamscan --quiet -dtest-db/test.hdb ../test/clam* --log=clamscan.log
GNU gdb 6.8-debian
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-linux-gnu"...
(gdb) set environment LD_PRELOAD /usr/lib/libefence.so
(gdb) run
Starting program: /home/mt/clamav-0.95+dfsg/clamscan/.libs/clamscan --quiet -dtest-db/test.hdb ../test/clam-aspack.exe ../test/clam-fsg.exe ../test/clam-mew.exe ../test/clam-nsis.exe ../test/clam-pespin.exe ../test/clam-petite.exe ../test/clam-upack.exe ../test/clam-upx.exe ../test/clam-v2.rar ../test/clam-v3.rar ../test/clam-wwpack.exe ../test/clam.arj ../test/clam.bz2.zip ../test/clam.cab ../test/clam.chm ../test/clam.d64.zip ../test/clam.ea05.exe ../test/clam.ea06.exe ../test/clam.exe ../test/clam.exe.binhex ../test/clam.exe.bz2 ../test/clam.exe.html ../test/clam.exe.mbox.base64 ../test/clam.exe.mbox.uu ../test/clam.exe.rtf ../test/clam.exe.szdd ../test/clam.impl.zip ../test/clam.mail ../test/clam.ole.doc ../test/clam.pdf ../test/clam.ppt ../test/clam.sis ../test/clam.tar.gz ../test/clam.tnef ../test/clam.zip --log=clamscan.log

  Electric Fence 2.1 Copyright (C) 1987-1998 Bruce Perens.
[Thread debugging using libthread_db enabled]

  Electric Fence 2.1 Copyright (C) 1987-1998 Bruce Perens.
[New Thread 0xf7f166d0 (LWP 8944)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0xf7f166d0 (LWP 8944)]
_dl_new_object (realname=0xf6dbbfe4 "/usr/lib/gconv/UTF-16.so", libname=0xf6db3fe4 "/usr/lib/gconv/UTF-16.so", type=2, loader=0x0, mode=-1879048191, nsid=0) at dl-object.c:110
warning: Source file is more recent than executable.
110   new->l_serial = GL(dl_load_adds);
(gdb) where
#0  _dl_new_object (realname=0xf6dbbfe4 "/usr/lib/gconv/UTF-16.so", libname=0xf6db3fe4 "/usr/lib/gconv/UTF-16.so", type=2, loader=0x0, mode=-1879048191, nsid=0) at dl-object.c:110
#1  0xf7ef04b4 in _dl_map_object_from_fd (name=0xf6db3fe4 "/usr/lib/gconv/UTF-16.so", fd=8, fbp=0xfff027c0, realname=0xf6dbbfe4 "/usr/lib/gconv/UTF-16.so", loader=0x0, l_type=2, 
    mode=-1879048191, stack_endp=0xfff029c4, nsid=0) at dl-load.c:973
#2  0xf7ef1f30 in _dl_map_object (loader=0x0, name=0xf6db3fe4 "/usr/lib/gconv/UTF-16.so", preloaded=0, type=2, trace_mode=0, mode=-1879048191, nsid=0) at dl-load.c:2239
#3  0xf7efcdb8 in dl_open_worker (a=0xfff02be0) at dl-open.c:293
#4  0xf7ef8118 in _dl_catch_error (objname=0xfff02c08, errstring=0xfff02c04, mallocedp=0xfff02c0f, operate=0xf7efcc40 <dl_open_worker>, args=0xfff02be0) at dl-error.c:178
#5  0xf7efc6c4 in _dl_open (file=0xf6db3fe4 "/usr/lib/gconv/UTF-16.so", mode=-2147483647, caller_dlopen=0x0, nsid=-2, argc=39, argv=0xfff07484, env=0xfff07524) at dl-open.c:596
#6  0xf7ce3be8 in do_dlopen (ptr=0xfff02e94) at dl-libc.c:86
#7  0xf7ef8118 in _dl_catch_error (objname=0xfff02e18, errstring=0xfff02e14, mallocedp=0xfff02e1f, operate=0xf7ce3b80 <do_dlopen>, args=0xfff02e94) at dl-error.c:178
#8  0xf7ce3cdc in dlerror_run (operate=0xf7ce3b80 <do_dlopen>, args=0xfff02e94) at dl-libc.c:47
#9  0xf7ce3e6c in *__GI___libc_dlopen_mode (name=0xf6db3fe4 "/usr/lib/gconv/UTF-16.so", mode=-2147483647) at dl-libc.c:160
#10 0xf7bdf3e0 in __gconv_find_shlib (name=0xfff02f80 "/usr/lib/gconv/UTF-16.so") at gconv_dl.c:118
#11 0xf7bdea98 in find_module (directory=<value optimized out>, filename=0xf6da7334 "UTF-16.so", result=0xf6daff88) at gconv_cache.c:196
#12 0xf7bdece8 in __gconv_lookup_cache (toset=<value optimized out>, fromset=<value optimized out>, handle=0xfff0311c, nsteps=0xfff03118, flags=<value optimized out>)
    at gconv_cache.c:395
#13 0xf7bd6a60 in __gconv_find_transform (toset=0xfff031a0 "UTF-16BE//", fromset=0xfff03190 "UTF-16LE//", handle=0xfff0311c, nsteps=0xfff03118, flags=0) at gconv_db.c:729
#14 0xf7bd5154 in __gconv_open (toset=0xfff031a0 "UTF-16BE//", fromset=0xfff03190 "UTF-16LE//", handle=0xfff031b4, flags=0) at gconv_open.c:174
#15 0xf7bd4bc0 in iconv_open (tocode=<value optimized out>, fromcode=0xf7885ff4 "UTF-16LE") at iconv_open.c:72
#16 0xf7e7b14c in encoding_normalize_toascii (in_m_area=0xfff03f7c, initial_encoding=<value optimized out>, out_m_area=0xfff03f70) at entconv.c:680
#17 0xf7e1ffdc in cli_filetype2 (desc=7, engine=0xf786df80) at filetypes.c:211
#18 0xf7e1b448 in cli_magic_scandesc (desc=7, ctx=0xfff04ca0) at scanners.c:1895
#19 0xf7e5ab1c in ea05 (desc=6, ctx=0xfff04ca0, tmpd=0xf7895fd0 "/tmp/clamav-07116e1e1b92c14100681ecb677ed68e") at autoit.c:375
#20 0xf7e5c5e4 in cli_scanautoit (desc=6, ctx=0xfff04ca0, offset=<value optimized out>) at autoit.c:927
#21 0xf7e1f424 in cli_scanraw (desc=6, ctx=0xfff04ca0, type=CL_TYPE_MSEXE, typercg=<value optimized out>, dettype=0xfff04c2c) at scanners.c:1773
#22 0xf7e1c1c8 in cli_magic_scandesc (desc=6, ctx=0xfff04ca0) at scanners.c:2083
#23 0xf7e1ca64 in cl_scandesc (desc=6, virname=0xfff04d94, scanned=0x31450, engine=0xf786df80, scanoptions=25143) at scanners.c:2135
#24 0x00015d44 in scanfile (filename=0xf7881fe8 "../test/clam.ea05.exe", engine=0xf786df80, opts=<value optimized out>, options=25143) at manager.c:150
#25 0x00016c24 in scanmanager (opts=0xf7ab7fd4) at manager.c:620
#26 0x000154f4 in main (argc=39, argv=<value optimized out>) at clamscan.c:172


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20090329/629c95a2/attachment.pgp 


More information about the Pkg-clamav-devel mailing list