ctdb debug vasprintf memory overwrite in ib

tridge at samba.org tridge at samba.org
Sat Apr 21 07:54:16 GMT 2007


Peter,

 > (gdb) break ibwrapper.c:559
 > Breakpoint 1 at 0x805697b: file ib/ibwrapper.c, line 559.
 > (gdb) run -i 1 -d 10.0.0.2:8001 -t 0 -n 1000
 > Starting program: /root/psomogyi/ctdb/bin/ibwrapper_test -i 1 -d 
 > 10.0.0.2:8001 -t 0 -n 1000
 > [Thread debugging using libthread_db enabled]
 > [New Thread -1209997120 (LWP 9731)]
 > [Switching to Thread -1209997120 (LWP 9731)]

why is this program linked to a threads library?

 > More precisely, after the call vasprintf gets the memory overwritten (shows me 
 > gdb by stepping).

I doubt it is the fault of vasprintf(). Can you try running with
valgrind and see what it finds?

Cheers, Tridge


More information about the samba-technical mailing list