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, 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 Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2003-01-26 13:46:50] [EMAIL PROTECTED] I've ran into some problems with mysql_fetch_object. It segfaults. Used version: php5-200301240830 configure options: './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' Apache error_log: [Sun Jan 26 20:29:03 2003] [notice] child pid 729 exit signal Segmentation fault (11) Afaik a segfault 11 points to a hardware problem but I only get it when I use mysql_fetch_object within PHP5. The function is called within an extended class. Kind regards, Hans Wolters ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21890&edit=1