From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Wed, 12 Feb 2014 21:59:09 +0000 (UTC) Subject: [lttng-dev] RFC: Fix crash in dlerror() In-Reply-To: <2141704629.23782.1392215703555.JavaMail.zimbra@efficios.com> References: <52F55511.2080309@mentor.com> <52F66118.5010003@mentor.com> <905376946.21151.1391898148330.JavaMail.zimbra@efficios.com> <52F9746F.5070302@mentor.com> <1494953964.23233.1392151900002.JavaMail.zimbra@efficios.com> <52FA8E5C.40203@mentor.com> <975853026.23546.1392176395828.JavaMail.zimbra@efficios.com> <2141704629.23782.1392215703555.JavaMail.zimbra@efficios.com> Message-ID: <1009657763.24078.1392242349218.JavaMail.zimbra@efficios.com> Patch merged into master as commit: commit 2594a5b4f2b60642973b4941ee506be41786c4d3 Author: Mathieu Desnoyers Date: Sat Feb 8 17:12:16 2014 -0500 Fix: malloc libc instrumentation wrapper calloc and realloc wrt dlsym and dlerror can trigger segmentation faults. Ensure that we fully populate the allocator symbols all at once, and also ensure that we use the static allocator while doing the dlsym lookups. Signed-off-by: Mathieu Desnoyers Thanks! Mathieu ----- Original Message ----- > From: "Mathieu Desnoyers" > To: "Stefan Seefeld" > Cc: lttng-dev at lists.lttng.org > Sent: Wednesday, February 12, 2014 9:35:03 AM > Subject: Re: [lttng-dev] RFC: Fix crash in dlerror() > > Updated patch, now ensuring that the wrapper is initialized before > UST starts other threads. It now has a constructor function that will > take care of initializing the wrapper before other program threads are > started anyhow. > > I also added a missing lookup check (calloc pointer) within realloc > (branch handling realloc of a statically allocated pointer). > > Thanks, > > Mathieu > > ----- Original Message ----- > > From: "Mathieu Desnoyers" > > To: "Stefan Seefeld" > > Cc: lttng-dev at lists.lttng.org > > Sent: Tuesday, February 11, 2014 10:39:55 PM > > Subject: Re: [lttng-dev] RFC: Fix crash in dlerror() > > > > Updated patch, now with tracepoints in the static allocator. > > > > Review welcome, > > > > Thanks, > > > > Mathieu > > -- > > Mathieu Desnoyers > > EfficiOS Inc. > > http://www.efficios.com > > > > _______________________________________________ > > lttng-dev mailing list > > lttng-dev at lists.lttng.org > > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > > > > -- > Mathieu Desnoyers > EfficiOS Inc. > http://www.efficios.com > > _______________________________________________ > lttng-dev mailing list > lttng-dev at lists.lttng.org > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com