|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-21 10:20 UTC] tony2001@php.net
[2004-12-29 18:35 UTC] sniper@php.net
[2005-02-08 02:18 UTC] karnaugh at karnaugh dot za dot net
[2005-03-30 15:44 UTC] gb at isis dot u-strasbg dot fr
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 03:00:01 2025 UTC |
Description: ------------ hi gang, using the "session" extension was crashing apache here, making drupal and other software unusable. With session.save_handler set to "user" in php.ini, I can see that "save_path" arrives as 0x0 in "ps_open_user" in mod_user, and apache crashes. My fix for now is to hardcode this PS(save_path) = malloc(strlen("/tmp/") + 1); strcpy(PS(save_path), "/tmp/"); in session.c, and things work fine. Unfortunately I have no expertise to track this bug much more. Cheers! Reproduce code: --------------- Use drupal.. Expected result: ---------------- Apache crashes, and your dmesg is full of [...] pid 99709 (httpd), uid 80: exited on signal 11 [...] Actual result: -------------- Attaching httpd with gdb (session module compiled in debug mode): (gdb) (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault. 0x2906b8bf in ps_open_user (mod_data=0xffffff00, save_path=0x0, session_name=0x85b12ac "POSTNUKESID") at /usr/ports/www/php4-session/work/php-4.3.10/ext/session/mod_user.c:95 95 SESS_ZVAL_STRING(save_path, args[0]);