Bug #81316 [Asn->Fbk]: Segmentation fault

From: Date: Wed, 04 Aug 2021 10:39:57 +0000
Subject: Bug #81316 [Asn->Fbk]: Segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235587@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81316&edit=1

 ID:                 81316
 Updated by:         cmb@php.net
 Reported by:        kontakt at xlu dot pl
 Summary:            Segmentation fault
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   FreeBSD 12.2-RELEASE-p5
-PHP Version:        7.3.29
+PHP Version:        7.4.22
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

It took me a while to set up the test environment, but I cannot
reproduce the segfault.  Ideally, you would provide a short, self
containted example[1], or at least a backtrace with debug
symbols[2].

[1] <http://sscce.org/>
[2] <https://bugs.php.net/bugs-generating-backtrace.php>


Previous Comments:
------------------------------------------------------------------------
[2021-08-03 21:54:52] kontakt at xlu dot pl

the same problem exists on PHP 7.4.22

php -m [PHP Modules]
Core
date
hash
imap
json
libxml
mbstring
mysqlnd
pcre
PDO
Reflection
session
SPL
standard
[Zend Modules]


This script does not support PHP 8.0.9.

------------------------------------------------------------------------
[2021-08-03 21:17:59] cmb@php.net

Thanks!  The loaded extensions are unlikely to be an issue per se,
but PHP 7.3.29 is no longer actively supported.  Please check with
PHP 7.4.22 or 8.0.9.

------------------------------------------------------------------------
[2021-08-03 21:01:56] kontakt at xlu dot pl

PHP v 7.3.29

php -m

[PHP Modules]
 Core
 date
 imap
 json
 libxml
 mbstring
 mysqlnd
 pcre
 PDO
 Reflection
 session
 SPL
 standard
 [Zend Modules]

------------------------------------------------------------------------
[2021-08-03 10:18:31] cmb@php.net

Okay, thanks for clarification.  So the connection error is
unrelated to the segfault which happens during shutdown.

Can you reproduce this with any of the actively supported PHP
versions[1]?  If so, please list all enabled extensions (php -m).

[1] <https://www.php.net/supported-versions.php>

------------------------------------------------------------------------
[2021-08-02 19:01:31] kontakt at xlu dot pl

I did it again with the correct SMTP address:

$ php artisan handesk:parseNewEmails
Done
Segmentation fault (core dumped)




Check composer package:

 ./vendor/php-imap/php-imap/src/PhpImap/Mailbox.php


Line:


      protected function initImapStream() {
                $imapStream = @imap_open($this->imapPath, $this->imapLogin,
$this->imapPassword, $this->imapOptions, $this->imapRetriesNum, $this->imapParams);
                if(!$imapStream) {
                        throw new Exception('Connection error: ' . imap_last_error());
                }
                return $imapStream;
        }

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=81316


--
Edit this bug report at https://bugs.php.net/bug.php?id=81316&edit=1


Thread (15 messages)

« previous php.bugs (#235587) next »