Tips of Malloc and Free - Tetsuyuki Kobayashi, Kyoto Microcomputer
Sometimes you may encounter segmentation fault at malloc or free. It looks a bug of malloc library, but at most case it is not. Some other part destroys heap management area. It is very hard to tell which program actually destroys the heap if the process is very large and uses so many libraries and threads.
In this session I will show you some tips to trouble shoot heap problem.
(1) tips of malloc library in glibc
(2) how to hook and replace malloc
(3) use mspace in dlmalloc to separete memory space
Expected audience is developers who writes code in C/C++ language and want to solve problems related heap memory.
Tetsuyuki Kobayashi is 20+ years experienced engineer working on embedded system development. Now he belongs Kyoto Microcomputer, which is Japanese development tool vendor. He is working in gcc, linux, QEMU, Android and so on. Especially, he studies Android source code since it released at 2008. He presented many times in Japan Technical Jamboree of CE Working Group of Linux Foundation. Also he presented at LinuxCon Japan 2011, ELC Europe 2011, Android Builders Summit 2012 and ELC 2013.
Attendance numbers do not account for private attendees. Get there early!
Remove this from your schedule?
This session is full and you may not be able to get back in.