This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa mudflap] -fwritable-strings causes a violation


registering the (unused) string leads to this:

mf: register ptr=0804963c size=4 type=4 name='/home/eyal/zz.c:1 string'
mf: violation pc=40017a8a location= type=3 ptr=0804963c size=4
*******
mudflap violation 1 (register): time=1053146782.014624 ptr=0804963c
size=4
pc=40017a8a
mf: reentrancy detected in `malloc'
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__mf_register+0x5a)
[0x40017a8a]
      /home/eyal/zz [0x80485d9]
      /home/eyal/zz [0x80485f2]
Nearby object 1: checked region begins 0B into and ends 3B into
mudflap object 080499d0: name=`string literal'
bounds=[0804963c,08049647] size=12 area=static check=0r/0w liveness=0
alloc time=1053146782.014597 pc=40017a8a
number of nearby objects: 1

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>

Attachment: zz13.sh
Description: Bourne shell script


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]