strange memory-related crashes

From: Date: Tue, 20 Jul 1999 02:20:19 +0000
Subject: strange memory-related crashes
Groups: php.dev 
Request: Send a blank email to php-dev+get-8761@lists.php.net to get a copy of this message
I'm working on an IMSP module (which I'll contribute, and port to php4, as soon as it's stable). At the moment I'm getting some strange memory related segfaults from it. Always at the end of a page request, so they don't seem to affect the loading of the page, but still... Here's a backtrace: Program received signal SIGSEGV, Segmentation fault. 0x40132b56 in chunk_free () (gdb) bt #0 0x40132b56 in chunk_free () #1 0x40132a2a in () #2 0x806d08f in shutdown_memory_manager () at alloc.c:349 #3 0x80656a0 in php3_request_shutdown (dummy=0x0) at main.c:901 #4 0x80b315e in run_cleanups (c=0x81d60cc) at alloc.c:1650 #5 0x80b1800 in ap_clear_pool (a=0x81d4fa4) at alloc.c:475 #6 0x80b1881 in ap_destroy_pool (a=0x81d4fa4) at alloc.c:505 #7 0x80b17ef in ap_clear_pool (a=0x81c5fbc) at alloc.c:472 #8 0x80c161f in child_main (child_num_arg=0) at http_main.c:3696 #9 0x80c1b98 in make_child (s=0x81ab31c, slot=0, now=932423021) at http_main.c:4013 #10 0x80c1d03 in startup_children (number_to_start=5) at http_main.c:4093 #11 0x80c2336 in standalone_main (argc=2, argv=0xbffffdb4) at http_main.c:4380 #12 0x80c2aa3 in main (argc=2, argv=0xbffffdb4) at http_main.c:4681 #13 0x400f118f in () I'm attaching hte imsp.c and imsp.h files, since they're probably relavant. Can anyone at least tell me what I might be doing to cause this? -chuck -- Charles Hagenbuch, <chagenbu@wso.williams.edu> -- "virgins! virgins! virgins!" - jason

Attachment: [text/x-chdr] imsp.h
Attachment: [text/x-csrc] imsp.c
« previous php.dev (#8761) next »