Re: Double free() in libc or gdb ?

看板FB_current作者時間14年前 (2012/03/14 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/9 (看更多)
--nextPart2450732.H3uro372yC Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear, On Tuesday 13 March 2012 15:18:31 jb wrote: > Alexandre Martins <alexandre.martins <at> netasq.com> writes: > > ... > > first.c: > > ... > > second.c > > ... > > main.c > > ... > >=20 > > while(42) >=20 > How do you exit that loop ? It's just a sample. There is no exit here, you have to kill the process. >=20 > > ... > > Compilation and execution : > >=20 > > gcc -shared -O0 -g second.c -o second.so > > gcc -shared -O0 -g first.c -o libfirst.so > > gcc -O0 -g toto.c -lfirst -L. -o test > > export LD_LIBRARY_PATH=3D$PWD > > gdb ./test > > ... >=20 > What is your toto.c (source code) ? > What about your main.c in compilation ? Yes, you're right. "toto.c" is the "main.c" file. >=20 > jb >=20 >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" To Konstantin Belousov : The GDB v7.3 solved the assert. but is still memleak. Regards =2D-=20 Alexandre Martins NETASQ -- We secure IT --nextPart2450732.H3uro372yC--
文章代碼(AID): #1FNujV4w (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FNujV4w (FB_current)