From: Alaney D. <27...@al...> - 2011-05-04 22:23:34
|
Hi all While testing the mlan implementation i hit on this *** Program received signal SIGABRT (Aborted) *** [0m*** glibc detected *** /home/alien/Projects/ffado-2/tests/ffado-test: free(): invalid next size (fast): 0x00000000006394e0 *** /lib64/libc.so.6[0x3b3da76d63] /usr/lib/libffado.so.2(_ZNK9ConfigRom13getGuidStringEv+0x88)[0x7ffff7c071ce] /usr/lib/libffado.so.2(_ZN11FFADODevice7getNameEv+0x37)[0x7ffff7bffb33] /usr/lib/libffado.so.2(_ZN7Control9Container10addElementEPNS_7ElementE+0xdc)[0x7ffff7c4bd3e] /usr/lib/libffado.so.2(_ZN13DeviceManager8discoverEbb+0x17b1)[0x7ffff7bf3f15] at the start I thought it was problem with addElement but after further debugging I found that is free that is making the SIGABRT. It's not missing a malloc in the following code? I commented free. const std::string ConfigRom::getGuidString() const { char* buf; asprintf( &buf, "%08x%08x", ( unsigned int ) ( getGuid() >> 32 ), ( unsigned int ) ( getGuid() & 0xffffffff ) ); std::string result = buf; free( buf ); return result; } Regards Alaney |