PHP 4.0 Bug #5084: imap_mail_compose produces a SigSegv
| From: | hekker at netway dot at | Date: | Fri, 16 Jun 2000 15:11:07 +0000 |
| Subject: | PHP 4.0 Bug #5084: imap_mail_compose produces a SigSegv | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21527@lists.php.net to get a copy of this message | ||
From: hekker@netway.at
Operating system: i386-redhat-linux 2.2.13 glibc 2.1.1
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Reproduceable crash
Bug description: imap_mail_compose produces a SigSegv
<?php
print "bla<br>\n";
$env = array("From: hekker@netway.at");
$body = array("Part 1");
print imap_mail_compose($env,$body);
?>
./configure --with-apache=../apache_1.3.9 --with-ldap=/opt/ldap
--with-gdbm --with-imap=/opt/apache/apache/src/c-client/imap-4.7b/ --with-zlib --enable-sysvshm
gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x80ae8a6 in php_if_imap_mail_compose (ht=2, return_value=0x839834c, this_ptr=0x0,
return_value_used=1) at php_imap.c:3094
3094 bod->nested.part=mail_newbody_part();
(gdb) bt
#0 0x80ae8a6 in php_if_imap_mail_compose (ht=2, return_value=0x839834c, this_ptr=0x0,
return_value_used=1) at php_imap.c:3094
#1 0x81038dc in execute (op_array=0x83971d4) at ./zend_execute.c:1574
#2 0x8087fab in php_execute_script (primary_file=0xbffffbec) at main.c:1200
#3 0x80a2b20 in apache_php_module_main (r=0x837f674, fd=40, display_source_mode=0)
at sapi_apache.c:93
#4 0x80844db in send_php ()
#5 0x808451c in send_parsed_php ()
#6 0x8150263 in ap_invoke_handler ()
#7 0x81639b9 in process_request_internal ()
#8 0x8163a1c in ap_process_request ()
#9 0x815b34e in child_main ()
#10 0x815b4fc in make_child ()
#11 0x815b659 in startup_children ()
#12 0x815bc86 in standalone_main ()
#13 0x815c419 in main ()
#14 0x400f6cb3 in __libc_start_main (main=0x815c0cc <main>, argc=2, argv=0xbffffda4,
init=0x8082928 <_init>, fini=0x822b90c <_fini>, rtld_fini=0x4000a350
<_dl_fini>,
stack_end=0xbffffd9c) at ../sysdeps/generic/libc-start.c:78