ID: 23906 Updated by: [EMAIL PROTECTED] Reported By: mbrennen at fni dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: MDK 8.2 (Linux 2.4) PHP Version: 4.3.2 New Comment:
Why do you add --with-imap-ssl if the c-client is not build with SSL support? Not PHP bug. Previous Comments: ------------------------------------------------------------------------ [2003-06-02 14:41:55] mbrennen at fni dot com gdb version: GNU gdb 5.1.1 (via RPM on Mandrake 8.2) IMAP is imap-2001a via RPM on Mandrake 8.2. openssl is openssl-0.9.6c, again via RPM on Mandrake 8.2. There is no other version of openssl on the box. I have verified that it is the imap_ssl option; with just imap apache starts okay. PHP 4.3.0 works fine on the same servers. On the servers that I've done testing on so far IMAP is not actually used, so there isn't a c-client configuration per se that I am aware of. It isn't that apache dies when using IMAP; it segfaults very quickly during startup. Thanks, glad to help debug as needed... ------------------------------------------------------------------------ [2003-06-02 13:26:49] [EMAIL PROTECTED] What GDB version are you trying with..? Also, how was the c-client configured ? Are you absolutely sure it's using the same openssl library you're linking PHP with (--with-openssl) ?? ------------------------------------------------------------------------ [2003-06-02 12:48:16] mbrennen at fni dot com With --enable-debug, gdb gives this error: ========================================================== Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 24208)] 0x082c1c1d in nothrow() (gdb) bt #0 0x082c1c1d in nothrow () #1 0x4000b616 in _dl_map_object_deps () at dl-deps.c:498 #2 0x00000007 in ?? () Cannot access memory at address 0x8 ========================================================== On a hunch, given the dl*.c file name, I pulled out the two imap options and apache now starts / runs. --with-imap \ --with-imap-ssl \ ------------------------------------------------------------------------ [2003-06-01 20:46:01] [EMAIL PROTECTED] Try with --enable-debug and generate new GDB backtrace. (NOT strace) And try find out what configure option is causing this. Remove them one by one until it works.. ------------------------------------------------------------------------ [2003-05-30 13:50:46] mbrennen at fni dot com The following bug is reproduceable on two different systems. As soon as the process starts it cores. A gdb stack trace and the tail of an strace of the bug is below, as is the php configure script options. The same configuration works fine with 4.3.0. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 24937)] 0x082c1b9d in nothrow () (gdb) (gdb) bt #0 0x082c1b9d in nothrow () #1 0x4000b616 in _dl_map_object_deps () at dl-deps.c:498 #2 0x00000007 in ?? () Cannot access memory at address 0x8 .... lstat64("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 open("/dev/null", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbfffd110) = -1 ENOTTY (Inappropriate ioctl for device) old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(3, "", 1024) = 0 close(3) = 0 munmap(0x40016000, 4096) = 0 lstat64("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 open("/dev/null", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbfffd120) = -1 ENOTTY (Inappropriate ioctl for device) old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 read(3, "", 1024) = 0 close(3) = 0 munmap(0x40016000, 4096) = 0 brk(0x838a000) = 0x838a000 brk(0x838d000) = 0x838d000 open("/var/log/httpd/error_log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3 fcntl64(3, F_DUPFD, 15) = 15 close(3) = 0 fcntl64(15, F_GETFL) = 0x401 (flags O_WRONLY|O_APPEND) fstat64(15, {st_mode=S_IFREG|0640, st_size=2001079, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 _llseek(15, 0, [0], SEEK_CUR) = 0 dup2(15, 2) = 2 brk(0x838e000) = 0x838e000 open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2601 brk(0x838f000) = 0x838f000 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40021000, 4096) = 0 open("/usr/share/locale/en_US/LC_CTYPE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=173408, ...}) = 0 old_mmap(NULL, 173408, PROT_READ, MAP_PRIVATE, 3, 0) = 0x409ce000 close(3) = 0 --- SIGSEGV (Segmentation fault) --- ### configuration script ./configure \ --with-apache=/usr/local/apache_1.3.27 \ --with-imap \ --with-imap-ssl \ --with-gd \ --with-mysql=/usr \ --with-solid=/usr/local/solidSDK351 \ --with-exec-dir=/var/lib/php \ --with-java=/usr/local/jdk \ --enable-unified-odbc \ --enable-safe-mode=yes \ --enable-track-vars \ --enable-ftp \ --with-expat-dir=/usr \ --with-xml \ --with-dom=/usr \ --with-dom-xslt=/usr \ --with-dom-exslt=/usr \ --enable-xslt \ --with-xslt-sablot=/usr \ --with-sablot-js=/usr \ --with-zlib \ --with-ldap \ --with-openssl \ --disable-debug \ --disable-debugger \ --with-config-file-path=/etc/httpd/conf ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23906&edit=1