#37111 [Opn->Asn]: Apache crashes when strftime is called inside user defined session write func

From: Date: Sun, 02 Nov 2008 12:35:26 +0000
Subject: #37111 [Opn->Asn]: Apache crashes when strftime is called inside user defined session write func
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130463@lists.php.net to get a copy of this message
 ID:               37111
 Updated by:       jani@php.net
 Reported By:      haakonsk at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Date/time related
 Operating System: *
 PHP Version:      5.2.5
 Assigned To:      derick
 New Comment:

Derick, would you mind responding to my comment above?


Previous Comments:
------------------------------------------------------------------------

[2008-02-15 00:11:11] jani@php.net

Why can't this be fixed by making ext/date the last extension to be
unloaded? ie. simply rename config.m4 to config9.m4 :) (dunno how to do
it for the windows build..does it have the same method of simple
rename?)

------------------------------------------------------------------------

[2006-07-27 09:27:06] derick@php.net

But as we can't just run it at the end... I would say there is a more
fundamental problem here...

------------------------------------------------------------------------

[2006-07-27 06:32:34] tony2001@php.net

AFAIK I told Derick what should be the reason: ext/date shutdowns and
frees all resources before ext/session, so strftime() will access
already freed timezonedb and other ext/date resources.
I'd say this is more ext/date related, as I suppose it's mshutdown
handler should be run at the very end.

------------------------------------------------------------------------

[2006-07-27 01:57:25] sniper@php.net

And I can not reproduce this with latest of everything on Linux. Bate:
Provide the backtrace please.


------------------------------------------------------------------------

[2006-07-17 14:32:23] bate@php.net

I can verify this bug. This happens too with latest of everything.
(apache, php)

This is also related to the pear::HTTP_Session2 package, because if you
use this package you will get too an segfault under FreeBSD. I will
provide a .core or backtrace later today. For both. WinXP and FreeBSD.
(have to install MSVC)


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/37111

-- 
Edit this bug report at http://bugs.php.net/?id=37111&edit=1



Thread (29 messages)

« previous php.bugs (#130463) next »