Skip to content

OpenSSL 1.0.2g segfaults on imap_open #7

@anatolinicolae

Description

@anatolinicolae

Looks like OpenSSL module is somehow failing whenever imap_open() function is called.

Testing is quite simple:

php -i | grep imap -A 5
php -r '$mbox = imap_open("{outlook.office365.com:993/service=imap/ssl}", "demo", "123456");'

Running these two commands should spit out some infos about the IMAP and OpenSSL modules, and finally a warning as imap_open() fails to login to the service. However, on OpenSSL v1.0.2g+ there's no such warning or any other message from the function as the process segfaults.

We've been testing a few versions lately and here are some results:

OpenSSL Compile Execution Error
1.0.1q
1.0.1u
1.0.2 Something about libcrypto
1.0.2a Same thing about libcrypto
1.0.2b Again the thing about libcrypto
1.0.2c Yet again libcrypto
1.0.2d Segmentation fault (core dumped)
1.0.2e Segmentation fault (core dumped)
1.0.2f Segmentation fault (core dumped)
1.0.2g Segmentation fault (core dumped)
1.0.2q Segmentation fault (core dumped)
1.0.2u Segmentation fault (core dumped)
1.1.0g configure: error: Cannot find OpenSSL's <evp.h>
1.1.0l configure: error: Cannot find OpenSSL's <evp.h>

We're currently testing a different matrix of versions and will get back ASAP with some other news.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions