From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1250 invoked by alias); 4 Jan 2014 23:20:51 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 1210 invoked by uid 48); 4 Jan 2014 23:20:47 -0000 From: "fcollyer at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug malloc/15592] mtrace.c tr_break() is not called from malloc hooks Date: Sat, 04 Jan 2014 23:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fcollyer at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00031.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=15592 --- Comment #2 from Felipe Collyer --- (In reply to Ondrej Bilka from comment #1) > Created attachment 7233 [details] > patch > > Does marking tr_break noinline help? > What about second trick of adding side effect as a __asm__ in attached patch > does? The 2 techniques employed together may work. I don't have the resources at hand to check (let me know if any final dso analysis helps). As further notice, _dl_debug_state() follows similar tr_break() usage pattern. But its address is taken (r_debug struct), defeating optimizations (some, I believe). -- You are receiving this mail because: You are on the CC list for the bug.