php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1804 segfault in php3_imap_headerinfo
Submitted: 1999-07-21 13:28 UTC Modified: 1999-07-31 20:26 UTC
From: chagenbu at wso dot williams dot edu Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 1 OS: RH Linux 6.0 (stock)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chagenbu at wso dot williams dot edu
New email:
PHP Version: OS:

 

 [1999-07-21 13:28 UTC] chagenbu at wso dot williams dot edu
This is sufficient to reproduce it:

<?php
$mbox = imap_open('{imap.company.com:143}', 'username', 'password');
$h = imap_header($mbox, 1);
echo 'foo'; // output to differentiate between segfault and no output
?>


And here's a backtrace:

#0  0x81b0c94 in ?? ()
#1  0x807bb5f in add_assoc_object (arg=0xbfffcc90, key=0x8125932 "to", tmp={
      value = {lval = 137656000, dval = -1.9619407959466315, str = {
          val = 0x83476c0 "\005", len = -1073781732}, chval = -64 '?', 
        ht = 0x83476c0, obj = {ce = 0x83476c0, properties = 0xbfff641c}}, 
      type = 4 '\004', EA = {locks = 92, is_ref = 0}, refcount = 849})
    at imap.c:184
#2  0x807d827 in php3_imap_headerinfo (ht=2, return_value=0xbfffcc90, 
    list=0x81990fc, plist=0x8199128, this_ptr=0x0) at imap.c:1205
#3  0x80b0427 in execute (op_array=0x81cf880) at zend_execute.c:1358
#4  0x807602c in php_execute_script (primary_file=0xbffff9b0) at main.c:1121
#5  0x80760a0 in apache_php_module_main (r=0x81c78d4, fd=19, 
    display_source_mode=0) at main.c:1163
#6  0x8074a23 in send_php ()
#7  0x8074a68 in send_parsed_php ()
#8  0x80b6803 in ap_invoke_handler ()
#9  0x80c9549 in process_request_internal ()
#10 0x80c95ac in ap_process_request ()
#11 0x80c133e in child_main ()
#12 0x80c157c in make_child ()
#13 0x80c1629 in startup_children ()
#14 0x80c1c46 in standalone_main ()
#15 0x80c23b3 in main ()
#16 0x400afcb3 in __libc_start_main (main=0x80c208c <main>, argc=1, 
    argv=0xbffffb64, init=0x8061378 <_init>, fini=0x811e94c <_fini>, 
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffb5c)
    at ../sysdeps/generic/libc-start.c:78

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-31 20:26 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 04:01:33 2025 UTC