ID: 13608 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Reproducible crash Operating System: linux debian-woody PHP Version: 4.0.6 New Comment:
No feedback. Closing. Previous Comments: ------------------------------------------------------------------------ [2001-10-09 03:02:00] [EMAIL PROTECTED] This should be fixed in 4.0.7RC3, can you try it from www.php.net/~zeev/php-4.0.7RC3.tar.gz ? Derick ------------------------------------------------------------------------ [2001-10-09 02:59:10] [EMAIL PROTECTED] I get a segmentation fault in de log-file of apache when using an imap-function. It first happened when I tried IMP, but I can reproduce it with a silly program of 1 line of php-code(and a php with less modules). Versions: ------------- Debian-woody imap-2001.FINAL.tar.Z make slx apache-1.3.20 configure --prefix=/usr/local/apache \ --sysconfdir=/etc/apache \ --libexecdir=/usr/local/apache/1.3 \ --enable-shared=max \ --enable-module=all make make install php-4.0.6 configure --enable-debug \ --with-imap=../imap \ --with-gettext \ --with--apxs=/usr/local/apache/bin/apxs \ --enable-trackvars \ --with-confif-file-path=/etc make make install cp php.ini-dist /etc/php.ini My 'silly program': ------------------------- <?php $mbox=imap_open("{mail.khbo.be:143}INBOX", "demo", "x"); ?> The gdb backtrace ---------------------------- Starting program: /usr/local/apache/bin/httpd -X (no debugging symbols found)...(no debugging symbols found)... ... Program received signal SIGSEGV, Segmentation fault. 0x0 in ?? () (gdb) bt #0 0x0 in ?? () #1 0x40549d88 in _nss_db_getspnam_r () from /lib/libnss_db.so.2 #2 0x40549e40 in _nss_db_getspnam_r () from /lib/libnss_db.so.2 #3 0x4054885e in _nss_db_endprotoent () from /lib/libnss_db.so.2 #4 0x40548ac8 in _nss_db_getprotobyname_r () from /lib/libnss_db.so.2 #5 0x401dae9f in getprotobyname_r () from /lib/libc.so.6 #6 0x401dad4d in getprotobyname () from /lib/libc.so.6 #7 0x40419a8c in tcp_getbuffer (stream=0xbfffcf2c, size=3221210924, s=0xbfffc728 "") at tcp_unix.c:527 #8 0x40419900 in tcp_getbuffer (stream=0xbfffd40c, size=0, s=0x8f <Address 0x8f out of bounds>) at tcp_unix.c:502 #9 0x40412e23 in strcrlflen () at nl_unix.c:84 #10 0x40411670 in mail_thread_parse_references (s=0xbfffd40c "mail.khbo.be", flag=0) at mail.c:4565 #11 0x40429e4f in imap_login (stream=0x8112d88, mb=0xd0, pwd=0xbfffe7bc "\fh??u14@", usr=0x40407de8 "\211G$\203DtW\213\225\\x??\213B8?P\203D \205@u\r\203Dxj") at imap4r1.c:949 #12 0x40407dfa in mail_fetch_text (stream=0x0, msgno=135346788, section=0x0, len=0x4034ad74, flags=1078791940) at mail.c:1525 #13 0x4034b1f5 in php_if_imap_get_quota (ht=3, return_value=0x810e8bc, this_ptr=0x0, return_value_used=1) at php_imap.c:1040 #14 0x4034b335 in php_if_imap_get_quota (ht=3, return_value=0x810e8bc, this_ptr=0x0, return_value_used=1) at php_imap.c:1061 #15 0x40310ad7 in execute (op_array=0x810e6fc) at ./zend_execute.c:1729 #16 0x403221d0 in add_index_string (arg=0x8, index=3, str=0x0, duplicate=-1073743176) at zend_API.c:368 #17 0x4033a4f3 in php_fopen_primary_script () at fopen_wrappers.c:304 #18 0x40335a4e in php_merge_dir (p=0x8105794, basev=0x0, addv=0xbffffb0c) at mod_php4.c:612 #19 0x403367b8 in php_info_apache (zend_module=0x8105794) at php_apache.c:281 #20 0x403367fb in php_info_apache (zend_module=0x8105794) at php_apache.c:283 #21 0x8054959 in ap_invoke_handler () #22 0x80692df in process_request_internal () #23 0x8069346 in ap_process_request () #24 0x8060256 in child_main () #25 0x8060411 in make_child () #26 0x806058c in startup_children () #27 0x8060bfc in standalone_main () #28 0x806142c in main () #29 0x4011464f in __libc_start_main () from /lib/libc.so.6 Thank you for any advice Philip ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13608&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]