php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55238 Configure throws segfault with libc-client2007e
Submitted: 2011-07-19 06:27 UTC Modified: 2011-07-25 17:01 UTC
Votes:12
Avg. Score:3.5 ± 1.2
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:2 (28.6%)
From: k dot joe at freemail dot hu Assigned:
Status: Open Package: *Compile Issues
PHP Version: Irrelevant OS: Debian GNU/Linux 6.0.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-07-19 06:27 UTC] k dot joe at freemail dot hu
Description:
------------
Configure with imap throws segfaults into the underlying system (when testing with conftest files), but the configuring and compiling continues fine.


# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.2 (squeeze)
Release:        6.0.2
Codename:       squeeze

# uname -a
Linux titan-debian6 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux

# dpkg -l | grep libc-client
ii  libc-client2007e                    8:2007e~dfsg-3.1
ii  libc-client2007e-dev                8:2007e~dfsg-3.1


Tested PHP versions:

  PHP 5.3.3
  PHP 5.3.6
  PHP 5.3.7RC3
  PHP 5.4.0alpha2
  PHP 201107190830 (snapshot)


Test script:
---------------
simply run:

  ./configure --with-imap --with-imap-ssl --with-kerberos


Expected result:
----------------
Expecting failed configure or display an error.


Actual result:
--------------
reproducible dmesg output:

conftest[21201]: segfault at 1 ip 00007fe3a8b8a7b8 sp 00007fffff905ae0 error 4 in libc-client.so.2007e.0[7fe3a8b48000+102000]


gdb output (don't have debug info):

# gdb -c core
This GDB was configured as "x86_64-linux-gnu".
Core was generated by `./conftest'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fe3a8b8a7b8 in ?? ()


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-19 06:54 UTC] k dot joe at freemail dot hu
/usr/src/php-5.3.7RC3/a# gdb conftest
This GDB was configured as "x86_64-linux-gnu".
Reading symbols from /usr/src/php-5.3.7RC3/a/conftest...done.
(gdb) run
Starting program: /usr/src/php-5.3.7RC3/a/conftest
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b147b8 in utf8_to_mutf7 () from /usr/lib/libc-client.so.2007e
(gdb) bt
#0  0x00007ffff7b147b8 in utf8_to_mutf7 () from /usr/lib/libc-client.so.2007e
#1  0x0000000000400a3c in main () at configure:50618
 [2011-07-25 17:01 UTC] fa@php.net
Didn't throw a segfault for me (same debian+libc-client, only 32bit), instead (with trunk) I got this (configure exited with code 1):

checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

In config.log I have:

| #define HAVE_IMAP 1
| #define HAVE_NEW_MIME2TEXT 1
| /* end confdefs.h.  */
|
| #include <c-client.h>
|
| int
| main ()
| {
|
|          int i = U8T_CANONICAL;
|
|   ;
|   return 0;
| }
configure:49601: result:
configure:49606: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
 [2015-08-29 04:36 UTC] readmin at levigo dot de
The problem still exists in PHP 5.5.28 (dotdeb packages).

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.8 (wheezy)
Release:        7.8
Codename:       wheezy
# uname -a
Linux shop-web01 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux
# dpkg -l | grep libc-client
ii  libc-client2007e                8:2007f~dfsg-2            amd64        c-client library for mail protocols - library files
ii  libc-client2007e-dev            8:2007f~dfsg-2            amd64        c-client library for mail protocols - development files
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Oct 21 17:01:27 2019 UTC