ID: 21890 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: MySQL related Operating System: Linux kernel 2.4.20-pre5 PHP Version: 5CVS-2003-01-26 (dev) New Comment:
Magnus, I think we are getting somewhere. Started gdb like you mailed, thnx for the tip. Hope it helps. Regards, Hans (gdb) bt full #0 0x00000011 in ?? () No symbol table info available. #1 0x403b9a01 in zif_mysql_fetch_object (ht=2, return_value=0x40663e7c, this_ptr=0x0, return_value_used=1) at /home/software/php5/php5-200301240830/ext/mysql/php_mysql.c:1947 return_value = (zval *) 0x40477aa8 #2 0x4049fba1 in zend_do_fcall_common_helper (execute_data=0xbfffc340, op_array=0x4065dd1c) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:2563 original_return_value = (zval **) 0x811f178 current_scope = (zend_class_entry *) 0x6d000003 current_this = (zval *) 0x1fa return_value_used = 1 #3 0x404a01d8 in zend_do_fcall_handler (execute_data=0xbfffc340, op_array=0x4065dd1c) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:2689 fname = (zval *) 0x40667b18 #4 0x40490851 in execute (op_array=0x4065dd1c) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:1218 op_array = (zend_op_array *) 0x4065dd1c execute_data = {opline = 0x40667af4, function_state = { function_symbol_table = 0x40659940, function = 0x8112f30, reserved = { 0xbfffc38c, 0x4047f95b, 0x4, 0x72653838}}, fbc = 0x0, ---Type <return> to continue, or q <return> to quit--- fbc_constructor = 0x4047f30e, op_array = 0x4065dd1c, object = 0x0, Ts = 0xbfffc194, original_in_execution = 1 '\001', calling_scope = 0x0, prev_execute_data = 0xbfffc910} #5 0x4049fcb1 in zend_do_fcall_common_helper (execute_data=0xbfffc910, op_array=0x814c6c8) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:2595 calling_symbol_table = (HashTable *) 0x4065c5fc original_return_value = (zval **) 0xbfffca58 current_scope = (zend_class_entry *) 0x0 current_this = (zval *) 0x0 return_value_used = 1 #6 0x4049ffc1 in zend_do_fcall_by_name_handler (execute_data=0xbfffc910, op_array=0x814c6c8) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:2659 execute_data = (zend_execute_data *) 0xbfffc0b4 op_array = (zend_op_array *) 0x814acd8 #7 0x40490851 in execute (op_array=0x814c6c8) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:1218 op_array = (zend_op_array *) 0x814c6c8 execute_data = {opline = 0x40653924, function_state = { function_symbol_table = 0x4065bf8c, function = 0x4065dd1c, reserved = { 0x404ec340, 0x4046f6b5, 0x404ebf80, 0x2c}}, fbc = 0x4065dd1c, fbc_constructor = 0x404785d2, op_array = 0x814c6c8, object = 0x4065c734, ---Type <return> to continue, or q <return> to quit--- Ts = 0xbfffc404, original_in_execution = 1 '\001', calling_scope = 0x40659924, prev_execute_data = 0xbfffc9c0} #8 0x4047862f in call_user_function_ex (function_table=0x404ec174, object_pp=0x0, function_name=0x4065c014, retval_ptr_ptr=0xbfffca58, param_count=1, params=0x4065c5e4, no_separation=1, symbol_table=0x0) at /home/software/php5/php5-200301240830/Zend/zend_execute_API.c:646 i = 1 original_return_value = (zval **) 0xbfffcee8 calling_symbol_table = (HashTable *) 0x404ec410 original_function_state_ptr = (zend_function_state *) 0xbfffce14 original_op_array = (zend_op_array *) 0x4064daf4 original_opline_ptr = (zend_op **) 0xbfffce10 orig_free_op1 = (zval *) 0x0 orig_free_op2 = (zval *) 0x0 orig_unary_op = (int (*)()) 0 orig_binary_op = (int (*)()) 0 function_name_copy = {value = {lval = 1080411644, dval = 1.3265769022458897e-313, str = {val = 0x4065c5fc "\b", len = 6}, ht = 0x4065c5fc, obj = {handle = 1080411644, handlers = 0x6}}, refcount = 1, type = 3 '\003', is_ref = 0 '\0'} current_scope = (zend_class_entry *) 0x0 calling_scope = (zend_class_entry *) 0x0 current_this = (zval *) 0x0 ---Type <return> to continue, or q <return> to quit--- execute_data = {opline = 0x0, function_state = { function_symbol_table = 0x0, function = 0x814c6c8, reserved = {0xbfffc9fc, 0x4048d336, 0x404e5830, 0x1}}, fbc = 0x0, fbc_constructor = 0x4046f713, op_array = 0x0, object = 0x0, Ts = 0x0, original_in_execution = 181 'µ', calling_scope = 0x404ebf80, prev_execute_data = 0xbfffce10} #9 0x40477fe9 in call_user_function (function_table=0x404ec174, object_pp=0x0, function_name=0x4065c014, retval_ptr=0x4065c5c4, param_count=1, params=0xbfffcae8) at /home/software/php5/php5-200301240830/Zend/zend_execute_API.c:463 retval_ptr = (zval *) 0x4065c5c4 param_count = 1 params_array = (zval ***) 0x4065c5e4 i = 17 ex_retval = 1 local_retval_ptr = (zval *) 0x0 #10 0x403dbe49 in ps_call_handler (func=0x4065c014, argc=1, argv=0xbfffcae8) at /home/software/php5/php5-200301240830/ext/session/mod_user.c:60 func = (zval *) 0x4065c014 argc = 1 i = 1 retval = (zval *) 0x4065c5c4 #11 0x403dc0dd in ps_read_user (mod_data=0x404e8170, key=0x4065c434 "809mpr512f0qa5ik039ja4q032", val=0xbfffcb24, ---Type <return> to continue, or q <return> to quit--- vallen=0xbfffcb28) at /home/software/php5/php5-200301240830/ext/session/mod_user.c:126 mod_data = (void **) 0xbfffc0b4 val = (char **) 0xbfffc0b4 vallen = (int *) 0xbfffc0b4 args = {0x4065c574} retval = (zval *) 0x4065c464 ret = -1 mdata = (ps_user *) 0x4065c40c #12 0x403d8b53 in php_session_initialize () at /home/software/php5/php5-200301240830/ext/session/session.c:715 val = 0x4064b7dc "¬·d@\032" vallen = 135175728 #13 0x403d9c4b in php_session_start () at /home/software/php5/php5-200301240830/ext/session/session.c:1119 ppid = (zval **) 0x4064b808 data = (zval **) 0x4064cc70 p = 0x814acd8 "\001" send_cookie = 0 define_sid = 0 module_number = 4 nrand = -1073758028 lensess = 9 ---Type <return> to continue, or q <return> to quit--- #14 0x403db090 in zif_session_start (ht=0, return_value=0x4065c3d4, this_ptr=0x0, return_value_used=0) at /home/software/php5/php5-200301240830/ext/session/session.c:1561 return_value = (zval *) 0x4065c3d4 #15 0x4049fba1 in zend_do_fcall_common_helper (execute_data=0xbfffce10, op_array=0x4064daf4) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:2563 original_return_value = (zval **) 0x810f5c8 current_scope = (zend_class_entry *) 0x73000003 current_this = (zval *) 0x176 return_value_used = 0 #16 0x404a01d8 in zend_do_fcall_handler (execute_data=0xbfffce10, op_array=0x4064daf4) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:2689 fname = (zval *) 0x4064f4b0 #17 0x40490851 in execute (op_array=0x4064daf4) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:1218 op_array = (zend_op_array *) 0x4064daf4 execute_data = {opline = 0x4064f48c, function_state = { function_symbol_table = 0x4065bf8c, function = 0x810f5c8, reserved = { 0x404697e0, 0x40469814, 0x404e5830, 0x1}}, fbc = 0x0, fbc_constructor = 0x4064fa14, op_array = 0x4064daf4, object = 0x0, Ts = 0xbfffcc64, original_in_execution = 1 '\001', calling_scope = 0x0, ---Type <return> to continue, or q <return> to quit--- prev_execute_data = 0xbfffd140} #18 0x404a4b87 in zend_include_or_eval_handler (execute_data=0xbfffd140, op_array=0x4064cfbc) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:3328 saved_object = (zval *) 0x0 saved_function = (zend_function *) 0x4064cfbc op_array = (zend_op_array *) 0x11 new_op_array = (zend_op_array *) 0x4064daf4 original_return_value = (zval **) 0xbfffd1c8 return_value_used = 0 inc_filename = (zval *) 0x4064d130 tmp_inc_filename = {value = {lval = 217, dval = 2.3639033112425256e-311, str = { val = 0xd9 <Address 0xd9 out of bounds>, len = 1114}, ht = 0xd9, obj = { handle = 217, handlers = 0x45a}}, refcount = 860, type = 4 '\004', is_ref = 248 'ø'} failure_retval = 0 '\0' #19 0x40490851 in execute (op_array=0x4064cfbc) at /home/software/php5/php5-200301240830/Zend/zend_execute.c:1218 op_array = (zend_op_array *) 0x4064cfbc execute_data = {opline = 0x4064d10c, function_state = { function_symbol_table = 0x404ec2d4, function = 0x4064daf4, reserved = { 0x404697e0, 0x40469814, 0x404e5830, 0x1}}, fbc = 0x0, ---Type <return> to continue, or q <return> to quit--- fbc_constructor = 0x1, op_array = 0x4064cfbc, object = 0x0, Ts = 0xbfffcee4, original_in_execution = 0 '\0', calling_scope = 0xbffff3d8, prev_execute_data = 0x0} #20 0x404811a6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/software/php5/php5-200301240830/Zend/zend.c:996 files = 0xbfffd1e8 i = 1 file_handle = (zend_file_handle *) 0xbffff3d8 orig_op_array = (zend_op_array *) 0x0 local_retval = (zval *) 0x0 #21 0x40456c7a in php_execute_script (primary_file=0xbffff3d8) at /home/software/php5/php5-200301240830/main/main.c:1691 orig_bailout = {{__jmpbuf = {1078876208, 1078904060, -1073744552, -1073744532, -1073744908, 1078628283}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 32 times>}}}} orig_bailout_set = 1 '\001' prepend_file_p = (zend_file_handle *) 0x0 append_file_p = (zend_file_handle *) 0x0 prepend_file = {type = 0 '\0', filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0}, free_filename = 0 '\0'} append_file = {type = 0 '\0', filename = 0x0, opened_path = 0x0, handle = {fd = 0, fp = 0x0}, free_filename = 0 '\0'} old_cwd = 0xbfffd1f4 "/usr/local/apache/bin" ---Type <return> to continue, or q <return> to quit--- old_primary_file_path = 0x0 retval = 0 #22 0x404a85fe in apache_php_module_main (r=0x81337a0, display_source_mode=0) at /home/software/php5/php5-200301240830/sapi/apache/sapi_apache.c:55 orig_bailout = {{__jmpbuf = {-1073745048, 134550832, 134550460, 134985272, 134985256, 134984640}, __mask_was_saved = 1075469058, __saved_mask = {__val = {28, 1078906564, 3221222744, 134985256, 135483060, 1912602634, 3221222316, 1075469058, 1078876208, 1078890688, 135477152, 1075469058, 1078876208, 1078890688, 135477152, 134552461, 134899499, 1967998181, 3221222332, 134552461, 135483600, 1078805746, 3221222380, 135483070, 29, 135477952, 3221222396, 1078627678, 9, 135477528, 3221222396, 1078627762}}}} orig_bailout_set = 8 '\b' file_handle = {type = 2 '\002', filename = 0x8135358 "/var/www/www/index.php", opened_path = 0x4064d024 "C13Õ%", handle = {fd = 135561904, fp = 0x81482b0}, free_filename = 0 '\0'} #23 0x404a91de in send_php (r=0x81337a0, display_source_mode=0, filename=0x0) at /home/software/php5/php5-200301240830/sapi/apache/mod_php4.c:608 orig_bailout = {{__jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 32 times>}}}} retval = 0 per_dir_conf = (HashTable *) 0x11 ---Type <return> to continue, or q <return> to quit--- #24 0x404a9242 in send_parsed_php (r=0x81337a0) at /home/software/php5/php5-200301240830/sapi/apache/mod_php4.c:623 result = -1073758028 #25 0x08055f99 in ap_invoke_handler () No symbol table info available. #26 0x0806bc4f in process_request_internal () No symbol table info available. #27 0x0806bcb6 in ap_process_request () No symbol table info available. #28 0x08062666 in child_main () No symbol table info available. #29 0x08062845 in make_child () No symbol table info available. #30 0x080629bc in startup_children () No symbol table info available. #31 0x0806304d in standalone_main () No symbol table info available. #32 0x080638dc in main () No symbol table info available. #33 0x4014817d in __libc_start_main () from /lib/libc.so.6 No symbol table info available. Previous Comments: ------------------------------------------------------------------------ [2003-01-26 15:45:53] [EMAIL PROTECTED] Magnus, You asked for a backtrace. Whenever I start gdb it only shows a blank page (body and html tags, nothing more). I normally start apache with apachectl startssl but gdb doesn't like that. Sorry. Regards, Hans ------------------------------------------------------------------------ [2003-01-26 15:22:18] [EMAIL PROTECTED] K, hear it is: class.Session.php is a session save handler which stores the session data within a database (mysql). As soon as mysql_fetch_objects is used it barfes. This is in both classes and in procedural functions. The code works fine on the same machine when php4.X is used. Let me know if you want more information. Regards, Hans lstat64("/var/www/classes80/class.Session.php", {st_mode=S_IFREG|0644, st_size=2298, ...}) = 0 open("/var/www/classes80/class.Session.php", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=2298, ...}) = 0 fstat64(5, {st_mode=S_IFREG|0644, st_size=2298, ...}) = 0 fstat64(5, {st_mode=S_IFREG|0644, st_size=2298, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 _llseek(5, 0, [0], SEEK_CUR) = 0 lseek(5, 0, SEEK_SET) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE, 0xbfffcc2c) = -1 ENOTTY (Inappropriate ioctl for device) read(5, "<?php\n\n require_once \'class.d"..., 8192) = 2298 read(5, "", 4096) = 0 read(5, "", 8192) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE, 0xbfffb518) = -1 ENOTTY (Inappropriate ioctl for device) close(5) = 0 munmap(0x40016000, 4096) = 0 getcwd("/var/www/www", 4096) = 13 lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/var/www/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/var/www/www/class.db.php", 0xbfff97dc) = -1 ENOENT (No such file or directory) open("/var/www/www/class.db.php", O_RDONLY) = -1 ENOENT (No such file or directory) getcwd("/var/www/www", 4096) = 13 lstat64("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/var/www/classes80", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 lstat64("/var/www/classes80/class.db.php", {st_mode=S_IFREG|0644, st_size=2390, ...}) = 0 open("/var/www/classes80/class.db.php", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=2390, ...}) = 0 fstat64(5, {st_mode=S_IFREG|0644, st_size=2390, ...}) = 0 fstat64(5, {st_mode=S_IFREG|0644, st_size=2390, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 _llseek(5, 0, [0], SEEK_CUR) = 0 lseek(5, 0, SEEK_SET) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE, 0xbfffc9ac) = -1 ENOTTY (Inappropriate ioctl for d evice) read(5, "<?php\n\n /*\n * Database ab"..., 8192) = 2390 read(5, "", 4096) = 0 read(5, "", 8192) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE, 0xbfffb298) = -1 ENOTTY (Inappropriate ioctl for d evice) close(5) = 0 munmap(0x40016000, 4096) = 0 socket(PF_UNIX, SOCK_STREAM, 0) = 5 fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) connect(5, {sin_family=AF_UNIX, path="/tmp/mysql.sock"}, 110) = 0 setsockopt(5, SOL_IP, IP_TOS, [8], 4) = -1 EOPNOTSUPP (Operation not supported ) setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 read(5, ",\0\0\0", 4) = 4 read(5, "\n3.23.51-log\0$\1\0\0>!\'?H,DN\0,\0\10\2\0\0"..., 44) = 44 write(5, "\21\0\0\1\5 \0\0\0ogw\0QG[D^WSN", 21) = 21 read(5, "\3\0\0\2", 4) = 4 read(5, "\0\0\0", 3) = 3 fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 read(5, 0x8148b98, 8192) = -1 EAGAIN (Resource temporarily unavai lable) fcntl64(5, F_SETFL, O_RDWR) = 0 write(5, "\4\0\0\0\2ogw", 8) = 8 read(5, "\3\0\0\1", 4) = 4 read(5, "\0\0\0", 3) = 3 time(NULL) = 1043615401 fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 read(5, 0x8148b98, 8192) = -1 EAGAIN (Resource temporarily unavai lable) fcntl64(5, F_SETFL, O_RDWR) = 0 write(5, "d\0\0\0\3SELECT data FROM ogw_sessio"..., 104) = 104 read(5, "\1\0\0\1", 4) = 4 read(5, "\1", 1) = 1 read(5, "\34\0\0\2", 4) = 4 read(5, "\fogw_sessions\4data\3\377\377\0\1\374\3\21\0\0", 28) = 28 read(5, "\1\0\0\3", 4) = 4 read(5, "\376", 1) = 1 read(5, "\1\0\0\4", 4) = 4 read(5, "\0", 1) = 1 read(5, "\1\0\0\5", 4) = 4 read(5, "\376", 1) = 1 --- SIGSEGV (Segmentation fault) --- ------------------------------------------------------------------------ [2003-01-26 15:00:18] [EMAIL PROTECTED] Backtrace for example would be nice, and a small reproduce script. I've tried this and could not reproduce it. ------------------------------------------------------------------------ [2003-01-26 14:47:38] [EMAIL PROTECTED] Well, afaik only the information regarding what I expected is missing. Then again, using mysql_fetch_object is rather obvious I think. Maybe the platform is important too? (x86) Could you give me a little more hints on what you expect? Regards, Hans ------------------------------------------------------------------------ [2003-01-26 13:59:12] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ 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/21890 -- Edit this bug report at http://bugs.php.net/?id=21890&edit=1