Semi-dual use of dynamic and static jemalloc
    Roel Van de Paar 
    roel.vandepaar at percona.com
       
    Mon Aug 24 17:24:59 PDT 2015
    
    
  
Hi Florian,
Thank you for the reply. My reply inline.
On Tue, Aug 25, 2015 at 5:13 AM, Florian Weimer <fw at deneb.enyo.de> wrote:
> * Roel Van de Paar:
>
> > What happens if jemalloc is LD_PRELOAD'ed for an executable where such
> > executable uses a .so library, which in turn is statically linked with
> > jemalloc?
>
> That depends on what kind of symbols the libary exports.  What does
> “eu-readelf -s” or “readelf -W -s” show?  If jemalloc symbols are
> listed there, quite bad things can happen.
[roel at localhost Percona-Server-5.6.25-rel73.2-f9f2b02.Linux.x86_64-debug]$
readelf -W -s ./lib/mysql/plugin/ha_tokudb.so | grep jemalloc
   219: 000000000048ed90     4 OBJECT  LOCAL  DEFAULT   27
_ZL21tokudb_check_jemalloc
   220: 000000000048d4e0    64 OBJECT  LOCAL  DEFAULT   26
_ZL27mysql_sysvar_check_jemalloc
   833: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS jemalloc.pic.o
   840: 000000000009d710    94 FUNC    LOCAL  DEFAULT   11
jemalloc_constructor
  8370: 000000000009d0d0    90 FUNC    LOCAL  DEFAULT   11
je_jemalloc_prefork
  8494: 000000000009d010    89 FUNC    LOCAL  DEFAULT   11
je_jemalloc_postfork_child
  8659: 000000000009d070    89 FUNC    LOCAL  DEFAULT   11
je_jemalloc_postfork_parent
Are these jemalloc symbols?
Also, anyone any idea on the other questions too?
-- 
Kind Regards,
God Bless,
-- 
Roel Van de Paar, CMDBA/CMDEV Senior QA Lead, Percona
Tel: +61 2 8004 1288 (UTC+10)
Mob: +61 427 141 635 (UTC+10)
Skype: percona.rvandepaar
http://www.percona.com/services.html
Looking for Replication with Data Consistency?
Try Percona XtraDB Cluster
<http://www.percona.com/software/percona-xtradb-cluster>!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20150825/998fdf97/attachment.html>
    
    
More information about the jemalloc-discuss
mailing list