From:             sriram dot natarajan at gmail dot com
Operating system: RHEL5.2
PHP version:      5.2SVN-2009-12-21 (snap)
PHP Bug Type:     LDAP related
Bug description:  Segmentation fault with "free:invalid pointer while running 
ldap unit tests

Description:
------------
found segmentation fault on free with invalid pointer while running 
php ldap unit test cases on Redhat enterprise linux 5.2 (64-bit)

PASS ldap_next_attribute() - Testing ldap_next_attribute() that should 
fail [ext/ldap/tests/ldap_next_attribute_error.phpt]
PASS ldap_next_entry() - Basic ldap_first_entry test 
[ext/ldap/tests/ldap_next_entry_basic.phpt]
PASS ldap_next_entry() - Testing ldap_next_entry() that should fail 
[ext/ldap/tests/ldap_next_entry_error.phpt]
*** glibc detected *** /export/home/sriramn/php/sapi/cli/php: free(): 
invalid pointer: 0x00007fffe402f898 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3660e71634]
/lib64/libc.so.6(cfree+0x8c)[0x3660e74c5c]
/export/home/sriramn/php/sapi/cli/php[0x4e0ba2]
/export/home/sriramn/php/sapi/cli/php(list_entry_destructor+0x85)[0x6d
e62a]
/export/home/sriramn/php/sapi/cli/php(zend_hash_del_key_or_index+0x1fd
)[0x6dbe0b]
/export/home/sriramn/php/sapi/cli/php(_zend_list_delete+0x57)[0x6de116
]
/export/home/sriramn/php/sapi/cli/php(_zval_dtor_func+0xa3)[0x6cd79f]
/export/home/sriramn/php/sapi/cli/php[0x6bf1d8]
/export/home/sriramn/php/sapi/cli/php(_zval_ptr_dtor+0x36)[0x6bf3e0]
/export/home/sriramn/php/sapi/cli/php[0x6dc21b]
/export/home/sriramn/php/sapi/cli/php(zend_hash_graceful_reverse_destr
oy+0x27)[0x6dc30d]
/export/home/sriramn/php/sapi/cli/php(shutdown_executor+0x4d)[0x6beedc
]
/export/home/sriramn/php/sapi/cli/php(zend_deactivate+0x5f)[0x6cee43]
/export/home/sriramn/php/sapi/cli/php(php_request_shutdown+0x203)[0x67
c99d]
/export/home/sriramn/php/sapi/cli/php(main+0x1742)[0x74d7ef]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3660e1d8b4]
/export/home/sriramn/php/sapi/cli/php(realloc+0x409)[0x4467a9]

note: i haven't tried this on 32-bit. here, php is compiled in 32-bit.


Reproduce code:
---------------
- enable ldap server from RHEL 5.2 (64-bit)
- enable ldap server to run as root with secret as rootpw
- running php ldap unit test case causes segv.

Expected result:
----------------
- test pass successfully

Actual result:
--------------
- segv seen while running ldap_next_entry_*phpt

-- 
Edit bug report at http://bugs.php.net/?id=50540&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50540&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50540&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50540&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50540&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50540&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50540&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50540&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50540&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50540&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50540&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50540&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50540&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50540&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50540&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50540&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50540&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50540&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50540&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50540&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50540&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50540&r=mysqlcfg

Reply via email to