bug-autogen
[Top][All Lists]
Advanced

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

[Bug-autogen] invalid free in xml2ag


From: Hanno Böck
Subject: [Bug-autogen] invalid free in xml2ag
Date: Sat, 21 Jan 2017 13:53:22 +0100

Hi,

It seems the xml2ag tool shipped with autogen causes an invalid free.

I directly get this error just by calling it:

*** Error in `/usr/bin/autogen': realloc(): invalid pointer: 0x00007ffe97eaea78 
***
======= Backtrace: =========
/lib64/libc.so.6(+0x6f6db)[0x7f11c932e6db]
/lib64/libc.so.6(+0x74ff6)[0x7f11c9333ff6]
/lib64/libc.so.6(realloc+0x1e3)[0x7f11c9338503]
/usr/bin/autogen[0x40132d]
/usr/bin/autogen[0x4024ba]
/usr/bin/autogen[0x4015dd]
/lib64/libc.so.6(__libc_start_main+0xf1)[0x7f11c92df691]
/usr/bin/autogen[0x4017e9]
======= Memory map: ========
00400000-00405000 r-xp 00000000 08:04 3052299                            
/usr/bin/xml2ag
00604000-00605000 r--p 00004000 08:04 3052299                            
/usr/bin/xml2ag
00605000-00606000 rw-p 00005000 08:04 3052299                            
/usr/bin/xml2ag
[lots more]



With valgrind I can get some info where in the code this happens:
$ valgrind -q xml2ag
==21040== Invalid free() / delete / delete[] / realloc()
==21040==    at 0x4C2E2BE: realloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==21040==    by 0x40132C: add_arg (fork.c:23)
==21040==    by 0x4024B9: forkAutogen (fork.c:165)
==21040==    by 0x4015DC: main (xml2ag.c:128)
==21040==  Address 0xffefffb38 is on thread 1's stack
==21040== 
No memory for 6 args

(this is with autogen 5.18.12)

-- 
Hanno Böck
https://hboeck.de/

mail/jabber: address@hidden
GPG: FE73757FA60E4E21B937579FA5880072BBB51E42



reply via email to

[Prev in Thread] Current Thread [Next in Thread]