DragonFly bugs List (threaded) for 2006-11
DragonFly BSD
DragonFly bugs List (threaded) for 2006-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Is this a bug in ld-elf.so.2?


From: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Date: Thu, 23 Nov 2006 10:22:25 +0100

walt wrote:
While debugging an error in evolution-2.8, I ran across this odd-
looking error message in gdb:

0x2806b445      1667            strncpy(pathname, dir, dirlen);
(gdb)
strncpy (
    dst=0x2976de83
"/usr/pkg/lib/evolution/2.8:/usr/pkg/lib:/usr/pkg/lib/nss:/usr/pkg/xorg/lib:/usr/pkg/lib/nspr:/usr/lib/gcc34:/usr/lib",
    src=0x1a <Error reading address 0x1a: Bad address>, n=3217027296)
    at /usr/src/lib/libc_rtld/../libc/string/strncpy.c:50

The line 1667 in question is at /usr/src/libexec/rtld-elf/rtld.c:1667
and the program continues past that error as if nothing had gone
wrong.  (Possibly because the return code from strncpy is never
checked?  Dunno, but it worries me.)

it not neccessarily is a stray pointer, it just means that gdb thinks that it points to 0x1a. that happens from time to time. if it doesn't segfault here, you don't have to worry.


cheers
 simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]