[Varnish] #850: jemalloc fails to init on Ubuntu 8.04

Varnish varnish-bugs at varnish-cache.org
Sat Mar 26 12:55:45 CET 2011


#850: jemalloc fails to init on Ubuntu 8.04
----------------------+-----------------------------------------------------
 Reporter:  miohtama  |       Owner:  kristian
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  Later   
Component:  varnishd  |     Version:  2.1.4   
 Severity:  normal    |    Keywords:          
----------------------+-----------------------------------------------------

Comment(by miohtama):

 I did a clean reimaging of the server and I cannot repeat it on a new
 server.

 But this is what I believe happens:

 * The server has some faulty .so file

 * Normally this doesn't cause anything bad, as the file is not loaded and
 the error message is silently DLL loader. Because we are using system
 malloc which is safe, the error message is correctly allocated.

 * But when jemalloc is in place, the DLL loader, when loading some
 libraries, tries to allocate the memory for the error message and thus
 trying to call jemalloc which is not yet initalized

 I think the correct approach would be somehow have a special allocator in
 jemalloc before it is properly initialized.

-- 
Ticket URL: <http://www.varnish-cache.org/trac/ticket/850#comment:11>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list