You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/04/08 16:17:59 UTC

DO NOT REPLY [Bug 7838] New: - Apache leaves shared memory segments and dies after unclean shutdown

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7838>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7838

Apache leaves shared memory segments and dies after unclean shutdown

           Summary: Apache leaves shared memory segments and dies after
                    unclean shutdown
           Product: Apache httpd-2.0
           Version: 2.0.35
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: stas-apache@zend.com


If Apache server is killed by signal, it leaves shared memory segment (for me
with ID 0x0103295c) which is not cleaned up.

Also, if Apache is then restarted, it gives the following error:
[Mon Apr 08 17:07:03 2002] [crit] (17)File exists: unable to create scoreboard
(name-based shared memory failure)

and dies with segmentation fault with the following trace:

#0  0x4018d109 in chunk_free (ar_ptr=0x40221cc0, p=0x80f0c78) at malloc.c:3111
#1  0x4018cf9a in __libc_free (mem=0x80f0c80) at malloc.c:3023
#2  0x4003dd8a in apr_allocator_destroy (allocator=0x80a9430)
    at apr_pools.c:135
#3  0x4003e391 in apr_pool_destroy (pool=0x80a94a8) at apr_pools.c:687
#4  0x4003deeb in apr_pool_terminate () at apr_pools.c:513
#5  0x4003a3f5 in apr_terminate () at start.c:112
#6  0x807cb22 in destroy_and_exit_process (process=0x80ad538, 
    process_exit_value=0) at main.c:245
#7  0x807d42c in main (argc=4, argv=0xbffff6a4) at main.c:629
#8  0x4014b9cb in __libc_start_main (main=0x807ce48 <main>, argc=4, 
    argv=0xbffff6a4, init=0x805eaa0 <_init>, fini=0x80920fc <_fini>, 
    rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbffff69c)
    at ../sysdeps/generic/libc-start.c:92

Note also:

#1  0x4018cf9a in __libc_free (mem=0x80f0c80) at malloc.c:3023
3023
in malloc.c
(gdb) 
#2  0x4003dd8a in apr_allocator_destroy (allocator=0x80a9430)
    at apr_pools.c:135
135
            free(node);
(gdb) p node
$1 = (apr_memnode_t *) 0x0

I.e., it does free to NULL. 

The source is httpd-2.0.35 release, with prefork MPM.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org