Re: [PHP-DEV] 3.0.9 timeframe? From: Jouni Ahto (jah <email protected>)
Date: 06/01/99

On Tue, 1 Jun 1999, Sascha Schumann wrote:

> Nothing found, ElectricFence is happy. There seems to be a problem in either
> the compiler, the C library or PHP's operator.c, but I don't have time to
> track that down now.

Have you tested with dmalloc? (Sorry to say, I too haven't got the time to
track anything down just now. Maybe tomorrow.) I have tried both one.
With dmalloc, I seem to get sometimes something like reasonable results.
I mean ,something like this (the end of the log) (there are a few
malloc()s not free()d I put in functions/gd.c to track down where I'm
going at, they have already been fixed, just not yet committed) (objects.c
& parseAFM.c & t1base.c & t1set & t1aaset.c are from t1lib).

5390: free bucket count/bits: 511/4 1021/5 803/6 84/7 13/8 8/9 204/10 5/11 1/13 2/14 1/15 1/18
5390: dumping chunk statistics
5390: basic-block 4096 bytes, alignment 8 bytes, heap grows up
5390: heap: 0x80d4000 to 0x817e000, size 696320 bytes (170 blocks), checked 5390
5390: alloc calls: malloc 2468, realloc 54, calloc 227, free 2641
5390: total memory allocated: 711770 bytes (2749 pnts)
5390: max in use at one time: 576927 bytes (2438 pnts)
5390: max alloced with 1 call: 196648 bytes
5390: max alloc rounding loss: 63681 bytes (9%)
5390: max memory space wasted: 0 bytes (0%)
5390: final user memory space: basic 76, divided 83, 638140 bytes
5390: final admin overhead: basic 1, divided 10, 45056 bytes (6%)
5390: final external space: 0 bytes (0 blocks)
5390: dumping the unfreed pointers
5390: not freed: '0x80d6588|s1' (40 bytes) from 'configuration-scanner.c:1731'
5390: not freed: '0x80d8508|s1' (176 bytes) from 'objects.c:306'
5390: not freed: '0x80d8608|s1' (180 bytes) from 'objects.c:306'
5390: not freed: '0x80d8708|s1' (160 bytes) from 'objects.c:306'
5390: not freed: '0x80dc1c8|s1' (3 bytes) from 'main.c:1768'
5390: not freed: '0x80df008|s1' (16386 bytes) from 'configuration-scanner.c:1731'
5390: not freed: '0x80ec808|s1' (1028 bytes) from 't1enc.c:188'
5390: not freed: '0x80f3008|s3' (1807 bytes) from 't1enc.c:195'
5390: not freed: '0x80f5968|s1' (12 bytes) from 'parseAFM.c:718'
5390: not freed: '0x80f5988|s1' (12 bytes) from 'parseAFM.c:718'
5390: not freed: '0x80f7288|s1' (40 bytes) from 'language-scanner.c:4955'
5390: not freed: '0x80fa348|s3' (41 bytes) from 't1base.c:510'
5390: not freed: '0x812c008|s1' (16386 bytes) from 'language-scanner.c:4955'
5390: not freed: '0x8137ea8|s1' (16 bytes) from 'functions/gd.c:2191'
5390: not freed: '0x8131808|s-976894520' (1254 bytes) from 't1aaset.c:1505'
5390: not freed: '0x8177d88|s17' (24 bytes) from 'objects.c:306'
5390: not freed: '0x8178408|s3' (116 bytes) from 'objects.c:306'
5390: not freed: '0x8178608|s5' (64 bytes) from 'functions/gd.c:2202'
5390: not freed: '0x8178688|s3' (80 bytes) from 'functions/gd.c:2204'
5390: not freed: '0x8178708|s1' (96 bytes) from 'functions/gd.c:2206'
5390: not freed: '0x8178788|s1' (80 bytes) from 'objects.c:306'
5390: not freed: '0x8178808|s1' (60 bytes) from 'objects.c:306'
5390: not freed: '0x8178888|s1' (56 bytes) from 'objects.c:306'
5390: not freed: '0x8178908|s1' (76 bytes) from 'objects.c:306'
5390: not freed: '0x8178988|s1' (92 bytes) from 'objects.c:306'
5390: not freed: '0x8178a08|s1' (60 bytes) from 'objects.c:306'
5390: not freed: '0x8178a88|s1' (66 bytes) from 't1aaset.c:337'
5390: not freed: '0x8178b08|s1' (112 bytes) from 'functions/gd.c:2209'
5390: not freed: '0x817c008|s3' (48 bytes) from 'functions/gd.c:2200'
5390: not freed: '0x817c048|s13' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c088|s3' (32 bytes) from 'functions/gd.c:2193'
5390: not freed: '0x817c0c8|s5' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c108|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c148|s9' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c188|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c1c8|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c208|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c288|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c2c8|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c308|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c5c8|s13' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c608|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c648|s5' (32 bytes) from 'objects.c:306'
5390: not freed: '0x817c688|s7' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c6c8|s29' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c708|s17' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c748|s3' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c788|s5' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c7c8|s13' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c808|s15' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c848|s13' (24 bytes) from 'objects.c:306'
5390: not freed: '0x817c8c8|s9' (52 bytes) from 'objects.c:306'
5390: not freed: '0x817c908|s11' (48 bytes) from 'objects.c:306'
5390: not freed: '0x817d008|s1' (2485 bytes) from 't1set.c:1846'
5390: known memory not freed: 54 pointers, 41700 bytes
5390: ending time = 928169414, elapsed since start = 0:1:6

dmalloc really helped me to track down a few quite-hard-to-find bugs in
t1lib. Can't say the same about efence. But, using dmalloc is a major
PITA. Maybe a switch to help this? --enable-debug-dmalloc or
enable-maintainer-mode-with-dmalloc ?

Jouni Ahto

-- 
PHP Development Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>