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

Varnish varnish-bugs at varnish-cache.org
Thu Jan 27 12:57:21 CET 2011

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

Comment(by miohtama):

 Ok. Looks like the issue is that there is dynamic DLL loading error.

 __dlsym tries to give an error message and allocates memory for it

 _dlerror_run (void (*operate) (void *), void *args)
   struct dl_action_result *result;

   /* If we have not yet initialized the buffer do it now.  */
   __libc_once (once, init);

   /* Get error string and number.  */
   if (static_buf != NULL)
     result = static_buf;
       /* We don't use the static buffer and so we have a key.  Use it
          to get the thread-specific buffer.  */
       result = __libc_getspecific (key);
       if (result == NULL)
           result = (struct dl_action_result *) calloc (1, sizeof
           if (result == NULL)
             /* We are out of memory.  Since this is no really critical
                situation we carry on by using the global variable.
                This might lead to conflicts between the threads but
                they soon all will have memory problems.  */
             result = &last_result;
             /* Set the tsd.  */
             __libc_setspecific (key, result);

 No idea yet, which DLL triggers this and how to figure out it.

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

More information about the varnish-bugs mailing list