This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/15592] mtrace.c tr_break() is not called from malloc hooks
- From: "fcollyer at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 04 Jan 2014 23:20:46 +0000
- Subject: [Bug malloc/15592] mtrace.c tr_break() is not called from malloc hooks
- Auto-submitted: auto-generated
- References: <bug-15592-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15592
--- Comment #2 from Felipe Collyer <fcollyer at gmail dot com> ---
(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.