<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-17 11:42 GMT+04:00 Vasily Postnicov <span dir="ltr"><<a href="mailto:shamaz.mazum@gmail.com" target="_blank">shamaz.mazum@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for this fix, Matt. If I find more elegant solution, I'll write.<br><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-04-16 20:37 GMT+04:00 Matthew Dillon <span dir="ltr"><<a href="mailto:dillon@apollo.backplane.com" target="_blank">dillon@apollo.backplane.com</a>></span>:<div><div class="h5"><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">    I'm looking at how to adjust libthread_xu to clean out the red-zone and<br>
    thread stack cache(s).  Not sure if that will clean everything up though,<br>
    there might be (probably are) other allocations that are intended to<br>
    be persistent hidden in there.<br>
<br>
    In other words, even when we fix the red-zone issue, loading and<br>
    unloading shared libraries that weren't designed for it causes all<br>
    sorts of memory leaks and just shouldn't be done by any application.<br>
<br>
    The only shared libraries that should *ever* be unloaded are ones that<br>
    are designed for load/unload cycling (e.g. things like PAM modules and<br>
    such, not main-stream libraries).<br>
<br>
                                                -Matt<br>
<br>
</blockquote></div></div></div><br></div></div>
</blockquote></div><br></div><div class="gmail_extra">Oh. I was so simple. In FreeBSD libthr is compiled with this line in the Makefile:<br><br></div><div class="gmail_extra">LDFLAGS+=-Wl,-znodelete<br><br></div><div class="gmail_extra">
It works also for libthread_xu.<br></div></div>