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

 ID:                 55238
 Updated by:         f...@php.net
 Reported by:        k dot joe at freemail dot hu
 Summary:            Configure throws segfault with libc-client2007e
 Status:             Open
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   Debian GNU/Linux 6.0.2
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2011-07-19 06:54:00] 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-19 06:27:37] 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 ?? ()



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



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

Reply via email to