ID:               24592
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jhuston at cs dot umn dot edu
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Sparc Solaris 9
 PHP Version:      4.3.3RC2-dev
 New Comment:

Which compiler did you use? What version?



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

[2003-07-14 23:18:51] jhuston at cs dot umn dot edu

Yes, it still crashes.

[EMAIL PROTECTED] php4-STABLE-200307150330]# sapi/cli/php -n
/home/projects/gradebook/test.php
It didn't crash at all yet.
Bus error
[EMAIL PROTECTED] php4-STABLE-200307150330]# gdb sapi/cli/php
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run -n /home/projects/gradebook/test.php
Starting program: /home/src/php4-STABLE-200307150330/sapi/cli/php -n
/home/projects/gradebook/test.php
It didn't crash at all yet.

Program received signal SIGSEGV, Segmentation fault.
0x9f394 in _efree (ptr=0x10a6d8)
    at /home/src/php4-STABLE-200307150330/Zend/zend_alloc.c:259
259             REMOVE_POINTER_FROM_LIST(p);
(gdb) where
#0  0x9f394 in _efree (ptr=0x10a6d8)
    at /home/src/php4-STABLE-200307150330/Zend/zend_alloc.c:259
#1  0x237b4 in migrate_global (ht=0x13a558, pos=0x1)
    at /home/src/php4-STABLE-200307150330/ext/session/session.c:640
#2  0x238b8 in php_session_save_current_state ()
    at /home/src/php4-STABLE-200307150330/ext/session/session.c:670
#3  0x26058 in php_session_flush ()
    at /home/src/php4-STABLE-200307150330/ext/session/session.c:1593
#4  0x26088 in zm_deactivate_session (type=0, module_number=2)
    at /home/src/php4-STABLE-200307150330/ext/session/session.c:1607
#5  0xb14b8 in module_registry_cleanup (module=0x12d1e8)
    at /home/src/php4-STABLE-200307150330/Zend/zend_API.c:1167
#6  0xb3498 in zend_hash_apply (ht=0x10bb2c, 
    apply_func=0xb147c <module_registry_cleanup>)
    at /home/src/php4-STABLE-200307150330/Zend/zend_hash.c:688
#7  0xae530 in zend_deactivate_modules ()
    at /home/src/php4-STABLE-200307150330/Zend/zend.c:651
#8  0x83060 in php_request_shutdown (dummy=0x0)
    at /home/src/php4-STABLE-200307150330/main/main.c:981
#9  0xc883c in main (argc=3, argv=0xffbff5c4)
    at /home/src/php4-STABLE-200307150330/sapi/cli/php_cli.c:874

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

[2003-07-14 21:05:32] [EMAIL PROTECTED]

Can you please try this configure line with fresh snapshot:

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

And run the test script like this:

# sapi/cli/php -n test.php

Does it still crash..?
 

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

[2003-07-14 07:28:28] jhuston at cs dot umn dot edu

register_globals is off.

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

[2003-07-13 22:49:15] [EMAIL PROTECTED]

Do you have register_globals ON or OFF ?


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

[2003-07-10 14:23:19] jhuston at cs dot umn dot edu

I downloaded the CVS snapshot and compiled it with same configure
options.  It is still getting the same bus error as described earlier. 
I ran a test on test.php (same code as i posted earlier).

[EMAIL PROTECTED] gradebook]% php -v
PHP 4.3.3RC2-dev (cli) (built: Jul 10 2003 13:24:53)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] gradebook]% php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.
Bus error

Then I ran it on gdb again and it still produced same error message as
mentioned earlier.

[EMAIL PROTECTED] gradebook]% gdb php
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Notice: import_request_variables(): No prefix specified - possible
security hazard in /home/projects/gradebook/test.php on line 6

Notice: Undefined index:  webusername in
/home/projects/gradebook/test.php on line 8

Notice: Undefined index:  webuserid in
/home/projects/gradebook/test.php on line 9

Notice: Undefined index:  webuserroleid in
/home/projects/gradebook/test.php on line 10

Notice: Undefined variable:  termid in
/home/projects/gradebook/test.php on line 12

Notice: Undefined index:  termid in /home/projects/gradebook/test.php
on line 13

Notice: Undefined index:  courseid in /home/projects/gradebook/test.php
on line 14
It didn't crash at all yet.

Program received signal SIGSEGV, Segmentation fault.
0x135170 in _efree (ptr=0x2c42a0)
    at /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c:259
259     /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c: No such
file or directory.
(gdb) where
#0  0x135170 in _efree (ptr=0x2c42a0)
    at /home/src/php4-STABLE-200307101730/Zend/zend_alloc.c:259
#1  0x94e98 in migrate_global (ht=0x332228, pos=0x1)
    at /home/src/php4-STABLE-200307101730/ext/session/session.c:640
#2  0x94fb8 in php_session_save_current_state ()
    at /home/src/php4-STABLE-200307101730/ext/session/session.c:670
#3  0x97b24 in php_session_flush ()
    at /home/src/php4-STABLE-200307101730/ext/session/session.c:1593
#4  0x97b54 in zm_deactivate_session (type=0, module_number=4)
    at /home/src/php4-STABLE-200307101730/ext/session/session.c:1607
#5  0x148d7c in module_registry_cleanup (module=0x2f0ba8)
    at /home/src/php4-STABLE-200307101730/Zend/zend_API.c:1167
#6  0x14b044 in zend_hash_apply (ht=0x2c57a4, 
    apply_func=0x148d40 <module_registry_cleanup>)
    at /home/src/php4-STABLE-200307101730/Zend/zend_hash.c:688
#7  0x145b28 in zend_deactivate_modules ()
    at /home/src/php4-STABLE-200307101730/Zend/zend.c:651
#8  0x11600c in php_request_shutdown (dummy=0x0)
    at /home/src/php4-STABLE-200307101730/main/main.c:981
#9  0x1616e8 in main (argc=2, argv=0xffbff674)
    at /home/src/php4-STABLE-200307101730/sapi/cli/php_cli.c:874

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

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

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

Reply via email to