session_start(); crashes when using latest CVS with --enable-trans-sid

From: Date: Sat, 20 Jan 2001 01:18:56 +0000
Subject: session_start(); crashes when using latest CVS with --enable-trans-sid
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-44613@lists.php.net to get a copy of this message
Test script: <?php session_start(); ?> Here's the backtrace: (gdb) run -X Starting program: /www/apache/bin/httpd -X [New Thread 1024 (runnable)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (runnable)] 0x40634c86 in url_adapt_ext_ex (src=0x81756e4 "", srclen=0, name=0x80cf688 "PHPSESSID", value=0x80b9f1c "44980f3dbbe538b0f75b6b24ecdb4071", newlen=0xbffff63c) at /usr/src/web/php/php4/ext/standard/url_scanner_ex.re:337 337 smart_str_0(&ctx->result); (gdb) bt full #0 0x40634c86 in url_adapt_ext_ex (src=0x81756e4 "", srclen=0, name=0x80cf688 "PHPSESSID", value=0x80b9f1c "44980f3dbbe538b0f75b6b24ecdb4071", newlen=0xbffff63c) at /usr/src/web/php/php4/ext/standard/url_scanner_ex.re:337 ret = 0x0 ctx = (url_adapt_state_ex_t *) 0x407a6d14 #1 0x405d6e18 in session_adapt_uris (src=0x81756e4 "", srclen=0, new=0xbffff640, newlen=0xbffff63c) at session.c:1369 No locals. #2 0x4063209e in php_ub_body_write_no_header (str=0x81756e4 "", str_length=0) at output.c:354 newstr = 0x0 new_length = 0 result = 0 #3 0x4063219b in php_ub_body_write (str=0x81756e4 "", str_length=0) at output.c:395 result = 0 #4 0x40631cd0 in php_end_ob_buffer (send_buffer=1) at output.c:172 final_buffer = 0x81756e4 "" final_buffer_length = 0 alternate_buffer = (zval *) 0x0 to_be_destroyed_buffer = 0x81756e4 "" #5 0x40631d4c in php_end_ob_buffers (send_buffer=1) at output.c:191 No locals. #6 0x40542fa8 in apache_php_module_main (r=0x8172b2c, display_source_mode=0) at sapi_apache.c:95 file_handle = {type = 2 '\002', filename = 0x8173574 "/www/apache/htdocs/session.php", opened_path = 0x80b98ac 'Z' <repeats 32 times>, "\204Ì\217*", handle = {fd = 135799936, fp = 0x8182480}, free_filename = 0 '\000'} #7 0x40543b97 in send_php (r=0x8172b2c, display_source_mode=0, filename=0x8173574 "/www/apache/htdocs/session.php") at mod_php4.c:514 retval = 0 per_dir_conf = (HashTable *) 0x811d3a8 #8 0x40543bd5 in send_parsed_php (r=0x8172b2c) at mod_php4.c:525 No locals. #9 0x8054473 in ap_invoke_handler () at mcrypt_modules.c:244 No locals. #10 0x8067cf9 in process_request_internal () at mcrypt_modules.c:244 No locals. #11 0x8067d5c in ap_process_request () at mcrypt_modules.c:244 No locals. #12 0x805f5de in child_main () at mcrypt_modules.c:244 No locals. #13 0x805f76c in make_child () at mcrypt_modules.c:244 No locals. #14 0x805f8c9 in startup_children () at mcrypt_modules.c:244 No locals. #15 0x805fef6 in standalone_main () at mcrypt_modules.c:244 No locals. #16 0x8060683 in main () at mcrypt_modules.c:244 No locals. #17 0x400959cb in __libc_start_main (main=0x806033c <main>, argc=2, argv=0xbffff884, init=0x804e9b8 <_init>, fini=0x8094a0c <_fini>, rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff87c) at ../sysdeps/generic/libc-start.c:92 argv = (char **) 0xbffff884 rtld_fini = (void (*)()) 0x4000ae60 <_dl_fini> stack_end = (void *) 0x0

« previous php.dev (#44613) next »