[PHP-DEV] purify warnings in ZTS mode (virtual_dir related) From: thies <email protected>
Date: 07/15/00

    
    sorry - too busy right now to "dig" myself - maybe you have
    some ideas. please note that i'm calling the script with a
    path that contains "..". (BTW: usually purify is "right")

    tc

**** Purify instrumented ./php (pid 21240 at Sat Jul 15 16:51:54 2000)
  * Purify 5.1 Solaris 2 (32-bit), Copyright (C) 1992-2000 Rational Software Corp. All rights reserved.
  * For contact information type: "purify -help"
  * For Purify Viewer output, set the DISPLAY environment variable.
  * Command-line: ./php
  * Options settings: -purify \
    -purify-home=/dot/utility/pure/purify-5.1-solaris2 -threads=yes \
    -use-internal-locks=yes -thread_stack_change=0x4000 -mt_safe_malloc=yes
  * Purify licensed to Digital Collections GmbH
  * Purify checking enabled.

  * Command-line: ./php ../1/hello.php

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        realpath [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:308]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0xeffff150 on the stack.
  * Address 0xeffff150 is local variable "resolved_path" in function virtual_file_ex.

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strlen [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:310]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 34 bytes from 0xeffff150 on the stack (33 bytes at 0xeffff150 uninit).
  * Address 0xeffff150 is local variable "resolved_path" in function virtual_file_ex.

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        virtual_file_ex [php_virtual_cwd.c:323]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x447698 in the heap.
  * Address 0x447698 is 16 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strspn [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x447698 in the heap.
  * Address 0x447698 is 16 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strspn [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x447699 in the heap.
  * Address 0x447699 is 17 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strtok_r [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x447699 in the heap.
  * Address 0x447699 is 17 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x447699 in the heap.
  * Address 0x447699 is 17 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x447699 in the heap.
  * Address 0x447699 is 17 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strlen [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:349]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 4 bytes from 0x447699 in the heap (3 bytes at 0x447699 uninit).
  * Address 0x447699 is 17 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strspn [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x44769d in the heap.
  * Address 0x44769d is 21 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strtok_r [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x44769d in the heap.
  * Address 0x44769d is 21 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x44769d in the heap.
  * Address 0x44769d is 21 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x44769d in the heap.
  * Address 0x44769d is 21 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        virtual_file_ex [php_virtual_cwd.c:372]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4476ae in the heap.
  * Address 0x4476ae is 38 bytes into a malloc'd block at 0x447688 of 56 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        _open [libc.so.1]
        _endopen [libc.so.1]
        fopen [libc.so.1]
        virtual_fopen [php_virtual_cwd.c:472]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]
  * Reading 2 bytes from 0x4537b0 in the heap (1 byte at 0x4537b1 uninit).
  * Address 0x4537b0 is at the beginning of a malloc'd block of 34 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        realloc [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:373]
        virtual_fopen [php_virtual_cwd.c:470]
        php_fopen_primary_script [fopen-wrappers.c:357]
        main [cgi_main.c:649]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        realpath [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:308]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0xeffff190 on the stack.
  * Address 0xeffff190 is local variable "resolved_path" in function virtual_file_ex.

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strlen [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:310]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 24 bytes from 0xeffff190 on the stack (23 bytes at 0xeffff190 uninit).
  * Address 0xeffff190 is local variable "resolved_path" in function virtual_file_ex.

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        virtual_file_ex [php_virtual_cwd.c:323]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677f8 in the heap.
  * Address 0x4677f8 is 16 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strspn [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677f8 in the heap.
  * Address 0x4677f8 is 16 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strspn [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677f9 in the heap.
  * Address 0x4677f9 is 17 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strtok_r [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677f9 in the heap.
  * Address 0x4677f9 is 17 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677f9 in the heap.
  * Address 0x4677f9 is 17 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:347]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677f9 in the heap.
  * Address 0x4677f9 is 17 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strlen [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:349]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 4 bytes from 0x4677f9 in the heap (3 bytes at 0x4677f9 uninit).
  * Address 0x4677f9 is 17 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strspn [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677fd in the heap.
  * Address 0x4677fd is 21 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strtok_r [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677fd in the heap.
  * Address 0x4677fd is 21 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677fd in the heap.
  * Address 0x4677fd is 21 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        strpbrk [libc.so.1]
        virtual_file_ex [php_virtual_cwd.c:378]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x4677fd in the heap.
  * Address 0x4677fd is 21 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        virtual_file_ex [php_virtual_cwd.c:372]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
        _start [crt1.o]
  * Reading 1 byte from 0x46780e in the heap.
  * Address 0x46780e is 38 bytes into a malloc'd block at 0x4677e8 of 40 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        _emalloc [zend_alloc.c:148]
        _estrndup [zend_alloc.c:307]
        virtual_file_ex [php_virtual_cwd.c:316]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]

**** Purify instrumented ./php (pid 21240) ****
UMR: Uninitialized memory read:
  * This is occurring while in:
        stat [libc.so.1]
        php_is_dir_ok [php_virtual_cwd.c:139]
        virtual_file_ex [php_virtual_cwd.c:388]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
  * Reading 2 bytes from 0x467868 in the heap (1 byte at 0x467869 uninit).
  * Address 0x467868 is at the beginning of a malloc'd block of 24 bytes.
  * This block was allocated from:
        malloc [rtlib.o]
        realloc [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:373]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]
X-Powered-By: PHP/4.0.2-dev
Content-type: text/html

hello

**** Purify instrumented ./php (pid 21240) ****
Current file descriptors in use: 5
FIU: file descriptor 0: <stdin>
FIU: file descriptor 1: <stdout>
FIU: file descriptor 2: <stderr>
FIU: file descriptor 26: <reserved for Purify internal use>
FIU: file descriptor 27: <reserved for Purify internal use>

**** Purify instrumented ./php (pid 21240) ****
Purify: Searching for all memory leaks...

Memory leaked: 121 bytes (0.16%); potentially leaked: 0 bytes (0%)

MLK: 24 bytes leaked at 0x467868
  * This memory was allocated from:
        malloc [rtlib.o]
        realloc [rtlib.o]
        virtual_file_ex [php_virtual_cwd.c:373]
        virtual_chdir [php_virtual_cwd.c:411]
        php_fopen_primary_script [fopen-wrappers.c:373]
        main [cgi_main.c:649]

MLK: 20 bytes leaked at 0x42af38
  * This memory was allocated from:
        malloc [rtlib.o]
        calloc [rtlib.o]
        zend_hash_init [zend_hash.c:202]
        zend_hash_init_ex [zend_hash.c:228]
        zend_init_rsrc_plist [zend_list.c:292]
        executor_globals_ctor [zend.c:296]

MLK: 20 bytes leaked at 0x42f630
  * This memory was allocated from:
        malloc [rtlib.o]
        calloc [rtlib.o]
        zend_hash_init [zend_hash.c:202]
        fsock_globals_ctor [fsock.c:727]
        ts_allocate_id [TSRM.c:166]
        php_minit_fsock [fsock.c:742]

MLK: 20 bytes leaked at 0x436e60
  * This memory was allocated from:
        malloc [rtlib.o]
        calloc [rtlib.o]
        zend_hash_init [zend_hash.c:202]
        fsock_globals_ctor [fsock.c:726]
        ts_allocate_id [TSRM.c:166]
        php_minit_fsock [fsock.c:742]

MLK: 20 bytes leaked at 0x4414b8
  * This memory was allocated from:
        malloc [rtlib.o]
        calloc [rtlib.o]
        zend_hash_init [zend_hash.c:202]
        php_pcre_init_globals [php_pcre.c:78]
        ts_allocate_id [TSRM.c:166]
        php_minit_pcre [php_pcre.c:104]

MLK: 16 bytes leaked at 0x48e3c8
  * This memory was allocated from:
        malloc [rtlib.o]
        main [cgi_main.c:624]
        _start [crt1.o]

MLK: 1 byte leaked at 0x446bf8
  * This memory was allocated from:
        malloc [rtlib.o]
        strdup [libc.so.1]
        php_disable_functions [main.c:150]
        php_module_startup [main.c:878]
        main [cgi_main.c:463]
        _start [crt1.o]

Purify Heap Analysis (combining suppressed and unsuppressed blocks)
                         Blocks Bytes
              Leaked 7 121
  Potentially Leaked 1 8200
              In-Use 668 67523
  ----------------------------------------
     Total Allocated 676 75844

**** Purify instrumented ./php (pid 21240) ****
Thread Summary : 1 threads in existence
  * Thread 0 [main thread]
     Stack: (0xeffff460 0xf0000000), size = 0xba0

**** Purify instrumented ./php (pid 21240) ****
  * Program exited with status code 0.
  * 30 access errors, 144 total occurrences.
  * 121 bytes leaked.
  * 0 bytes potentially leaked.
  * Basic memory usage (including Purify overhead):
    3933178 code
    271952 data/bss
    507908 heap (peak use)
    1728 stack
  * Shared library memory usage (including Purify overhead):
    1456 libpure_solaris2_init.so.1 (shared code)
    252 libpure_solaris2_init.so.1 (private data)
    28919 libpam.so.1_pure_p3_c0_510_56_32 (shared code)
    3172 libpam.so.1_pure_p3_c0_510_56_32 (private data)
    2040 libdl.so.1_pure_p3_c0_510_56_32 (shared code)
    4 libdl.so.1_pure_p3_c0_510_56_32 (private data)
    2048 solaris2_threads.so_pure_p3_c0_510_56_32 (shared code)
    8544 solaris2_threads.so_pure_p3_c0_510_56_32 (private data)
    8252520 libclntsh.so.1.0_pure_p3_c0_510_56_32 (shared code)
    468880 libclntsh.so.1.0_pure_p3_c0_510_56_32 (private data)
    41734 libsocket.so.1_pure_p3_c0_510_56_32 (shared code)
    3316 libsocket.so.1_pure_p3_c0_510_56_32 (private data)
    733714 libnsl.so.1_pure_p3_c0_510_56_32 (shared code)
    54404 libnsl.so.1_pure_p3_c0_510_56_32 (private data)
    82255 libresolv.so.2_pure_p3_c0_510_56_32 (shared code)
    16296 libresolv.so.2_pure_p3_c0_510_56_32 (private data)
    140133 libm.so.1_pure_p3_c0_510_56_32 (shared code)
    1332 libm.so.1_pure_p3_c0_510_56_32 (private data)
    961401 libc.so.1_pure_p3_c0_510_56_32 (shared code)
    30916 libc.so.1_pure_p3_c0_510_56_32 (private data)
    13528 libinternal_stubs.so.1 (shared code)
    916 libinternal_stubs.so.1 (private data)
    35722 libaio.so.1_pure_p3_c0_510_56_32 (shared code)
    6388 libaio.so.1_pure_p3_c0_510_56_32 (private data)
    16272 libmp.so.2_pure_p3_c0_510_56_32 (shared code)
    836 libmp.so.2_pure_p3_c0_510_56_32 (private data)
    20346 nss_files.so.1_pure_p3_c0_510_56_32 (shared code)
    1248 nss_files.so.1_pure_p3_c0_510_56_32 (private data)

-- 
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>