php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32317 glibc detected double free or corruption in session_start()
Submitted: 2005-03-15 17:04 UTC Modified: 2005-03-17 12:53 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ian_real at dominios dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.3.10 OS: Suse 2.6.8-24-smp x86_64
Private report: No CVE-ID: None
 [2005-03-15 17:04 UTC] ian_real at dominios dot net
Description:
------------
The problem only happens on our systems with two nocona 64 bit CPUs

Configure Command =>  './configure' '--with-_lib=lib64' '--enable-sockets' '--enable-pcntl' '--enable-sigchild' '--with-bz2' '--enable-discard-path' '--with-mysql=/usr/local/mysql' '--with-curl=/usr/local' '--with-dbase' '--disable-short-tags' '--enable-track-vars' '--without-gd' '--enable-sysvshm' '--enable-sysvsem' '--disable-debug' '--enable-magic-quotes' '--enable-memory-limit' '--with-config-file-path=/usr/local/lib' '--with-zlib'


Reproduce code:
---------------
#!/usr/local/bin/php-cli
<?php
session_id("abtest");
session_start();
?>


Expected result:
----------------
shouldnt produce any output

Actual result:
--------------
*** glibc detected *** double free or corruption: 0x000000000073d9a0 ***

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-16 00:45 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Try using this snapshot:
  
  http://snaps.php.net/php4-STABLE-latest.tar.gz

And this configure line:

# ./configure --disable-all --enable-session --enable-debug

And use the sapi/cli/php binary in your script.


 [2005-03-16 09:47 UTC] ian_real at dominios dot net
I cant even compile php4-STABLE-200503160730

>make
gcc  -Iext/session/ -I/temp/php4-STABLE-200503160730/ext/session/ -DPHP_ATOM_INC -I/temp/php4-STABLE-200503160730/include -I/temp/php4-STABLE-200503160730/main -I/temp/php4-STABLE-200503160730 -I/temp/php4-STABLE-200503160730/Zend    -g -Wall  -c /temp/php4-STABLE-200503160730/ext/session/session.c -o ext/session/session.o  && echo > ext/session/session.lo
In file included from /temp/php4-STABLE-200503160730/Zend/zend_alloc.h:26,
                 from /temp/php4-STABLE-200503160730/Zend/zend.h:223,
                 from /temp/php4-STABLE-200503160730/main/php.h:34,
                 from /temp/php4-STABLE-200503160730/ext/session/session.c:26:
/temp/php4-STABLE-200503160730/TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory
In file included from /temp/php4-STABLE-200503160730/ext/session/session.c:26:
/temp/php4-STABLE-200503160730/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory
/temp/php4-STABLE-200503160730/ext/session/session.c: In function `php_session_create_id':
/temp/php4-STABLE-200503160730/ext/session/session.c:579: warning: implicit declaration of function `VCWD_OPEN'
/temp/php4-STABLE-200503160730/ext/session/session.c: In function `last_modified':
/temp/php4-STABLE-200503160730/ext/session/session.c:759: warning: implicit declaration of function `VCWD_STAT'
make: *** [ext/session/session.lo] Error 1
 [2005-03-17 09:45 UTC] sniper@php.net
Try again. I broke the build with bad commit. (I fixed it just a few minutes ago though :)

 [2005-03-17 12:40 UTC] ian_real at dominios dot net
It works now, thanks!

Just the snapshot version seems to have even more bugs...

Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt]
Bug #24155 (gdImageRotate270 rotation problem). [ext/gd/tests/bug24155.phpt]
gdimagefill() function (Bug #19366 (fixed in bundled libgd)) [ext/gd/tests/bug27582_1.phpt]
Bug #31213 (Sideeffects caused by bug #29493) [ext/standard/tests/array/bug31213.phpt]
xslt_set_object function [ext/xslt/tests/xslt_set_object.phpt]

Any idea when 4.3.11 will be released?
 [2005-03-17 12:48 UTC] pajoye@php.net
Hello,

Please do not mix topics :)

If you find other bugs not related to this one, open new ones. Thanks.

For the record, about gd tests, it seems that the md5 signatures of result images differ but the tests work.

--Pierre
 [2005-03-17 12:50 UTC] ian_real at dominios dot net
can you tell me which part of the code you changed, so I can patch it on 4.3.10?

Thanks
 [2005-03-17 12:53 UTC] derick@php.net
This bug is fixed. As for patches, either have a look in CVS or get a snapshot (recommended!)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 18:01:28 2024 UTC