apache+php+imap: segmentation fault (core dump)

apache+php+imap: segmentation fault (core dump)

Post by Vil Mervisse » Wed, 25 Jun 2003 17:19:05



Hello everyone,

the above mentioned problem only occurs if I compile the port lang/php4 with
the option IMAP (w/o it works like a charm) and try to restart apache
(apachectl stop; apachectl startssl). The system is running FreeBSD
4.7-STABLE and apache-1.3.27; as expected the failure occured after the
upgrade from php4-4.3.1 (?) to php4-4.3.3.r1. Before, everything was
alright.

Any comments?
Vil

Error messages
=======================
a) Konsole
# apachectl startssl
Segmentation fault (core dumped)
/usr/local/sbin/apachectl startssl: httpd could not be started

b) /var/log/messages
/kernel: pid 75968 (httpd), uid 0: exited on signal 11 (core dumped)

System:
=======
FreeBSD 4.7-RELEASE-p6 FreeBSD 4.7-RELEASE-p6 (custom kernel)

Port lang/php4 compiled with:
=============================
BZIP2
CTYPE
CURL
DOMXML
FTP
GD
GETTEXT
IMAP
MCRYPT
MYSQL
OPENLDAP
PCRE
POSIX
SESSION
TOKENIZER
XML
ZIP
ZLIB

Other installed packages
========================
apache+mod_ssl-1.3.27+2.8.14 The Apache 1.3 webserver with SSL/TLS
functionality
courier-imap-1.7.1  IMAP (and POP3) server that provides access to Maildir
mail
imap-uw-2002c1_1,1  University of Washington IMAP4rev1/POP2/POP3 mail
servers
libmcal-0.7         Modular Calendar Access Library
libmcrypt-2.5.7     Multi-cipher cryptographic library (used in PHP3)
openldap21-2.1.20_1 Open source LDAP client and server software
openssl-0.9.7b_1    SSL and crypto library
pear-4.3.3          A framework and distribution system for reusable PHP
compon
pear-Archive_Tar-1.1 PEAR tar file management class
pear-Auth-1.2.0_1   PEAR authentication methods
pear-Auth_SASL-1.0.0_2 PEAR abstraction of various SASL mechanism responses
pear-Console_Getopt-1.0_1 PEAR command-line option parser
pear-Crypt_CBC-0.4_2 PEAR class to emulate Perl's Crypt::CBC module
pear-DB-1.4.0       PEAR Database Abstraction Layer
pear-Date-1.3_2     PEAR Date and Time Zone Classes
pear-File-1.0.3_1   PEAR common file and directory routines
pear-HTML_Common-1.2.1 PEAR::HTML_Common is a base class for other HTML
classes
pear-HTML_Select_Common-1.1_2 Some small PEAR classes to handle common
<select> lists
pear-I18N-0.8.5     PEAR internationalization package
pear-Log-1.6.7      PEAR logging utilities
pear-Mail-1.0.2     PEAR class that provides multiple interfaces for sending
em
pear-Mail_Mime-1.2.1_3 PEAR classes to create and decode MIME messages
pear-Net_SMTP-1.2.3 PEAR class that provides an implementation of the SMTP
prot
pear-Net_Socket-1.0.1_1 PEAR Network Socket Interface
pear-PEAR-1.1       PEAR Base System
php4-4.3.3.r1       PHP Scripting Language (Apache Module and CLI)

Debugging output
================
# gdb httpd
[...]
(gdb) run -X -DSSL
Starting program: /usr/local/sbin/httpd -X -DSSL

Program received signal SIGSEGV, Segmentation fault.
0x2812b320 in strcmp () from /usr/lib/libc.so.4

Please (PLEASE!) don't expect me to understand this; this information is
just for the geeks out there :-)

 
 
 

apache+php+imap: segmentation fault (core dump)

Post by Mark Worsdal » Thu, 26 Jun 2003 03:13:55




Quote:>Hello everyone,

>the above mentioned problem only occurs if I compile the port lang/php4 with
>the option IMAP (w/o it works like a charm) and try to restart apache
>(apachectl stop; apachectl startssl). The system is running FreeBSD
>4.7-STABLE and apache-1.3.27; as expected the failure occured after the
>upgrade from php4-4.3.1 (?) to php4-4.3.3.r1. Before, everything was
>alright.

>Any comments?
>Vil

>Error messages
>=======================
>a) Konsole
># apachectl startssl
>Segmentation fault (core dumped)
>/usr/local/sbin/apachectl startssl: httpd could not be started

>b) /var/log/messages
>/kernel: pid 75968 (httpd), uid 0: exited on signal 11 (core dumped)

>System:
>=======
>FreeBSD 4.7-RELEASE-p6 FreeBSD 4.7-RELEASE-p6 (custom kernel)

>Port lang/php4 compiled with:
>=============================
>BZIP2
>CTYPE
>CURL
>DOMXML
>FTP
>GD
>GETTEXT
>IMAP
>MCRYPT
>MYSQL
>OPENLDAP
>PCRE
>POSIX
>SESSION
>TOKENIZER
>XML
>ZIP
>ZLIB

>Other installed packages
>========================
>apache+mod_ssl-1.3.27+2.8.14 The Apache 1.3 webserver with SSL/TLS
>functionality
>courier-imap-1.7.1  IMAP (and POP3) server that provides access to Maildir
>mail
>imap-uw-2002c1_1,1  University of Washington IMAP4rev1/POP2/POP3 mail
>servers
>libmcal-0.7         Modular Calendar Access Library
>libmcrypt-2.5.7     Multi-cipher cryptographic library (used in PHP3)
>openldap21-2.1.20_1 Open source LDAP client and server software
>openssl-0.9.7b_1    SSL and crypto library
>pear-4.3.3          A framework and distribution system for reusable PHP
>compon
>pear-Archive_Tar-1.1 PEAR tar file management class
>pear-Auth-1.2.0_1   PEAR authentication methods
>pear-Auth_SASL-1.0.0_2 PEAR abstraction of various SASL mechanism responses
>pear-Console_Getopt-1.0_1 PEAR command-line option parser
>pear-Crypt_CBC-0.4_2 PEAR class to emulate Perl's Crypt::CBC module
>pear-DB-1.4.0       PEAR Database Abstraction Layer
>pear-Date-1.3_2     PEAR Date and Time Zone Classes
>pear-File-1.0.3_1   PEAR common file and directory routines
>pear-HTML_Common-1.2.1 PEAR::HTML_Common is a base class for other HTML
>classes
>pear-HTML_Select_Common-1.1_2 Some small PEAR classes to handle common
><select> lists
>pear-I18N-0.8.5     PEAR internationalization package
>pear-Log-1.6.7      PEAR logging utilities
>pear-Mail-1.0.2     PEAR class that provides multiple interfaces for sending
>em
>pear-Mail_Mime-1.2.1_3 PEAR classes to create and decode MIME messages
>pear-Net_SMTP-1.2.3 PEAR class that provides an implementation of the SMTP
>prot
>pear-Net_Socket-1.0.1_1 PEAR Network Socket Interface
>pear-PEAR-1.1       PEAR Base System
>php4-4.3.3.r1       PHP Scripting Language (Apache Module and CLI)

>Debugging output
>================
># gdb httpd
>[...]
>(gdb) run -X -DSSL
>Starting program: /usr/local/sbin/httpd -X -DSSL

>Program received signal SIGSEGV, Segmentation fault.
>0x2812b320 in strcmp () from /usr/lib/libc.so.4

>Please (PLEASE!) don't expect me to understand this; this information is
>just for the geeks out there :-)

I went through something similar earlier this month, the firat thing I
did was to # out the php module lines in httpd.conf. There are 2 of
them, then restart apache, if it restarts fine then that confirms it is
a php problem. If it is there are some threads on this (mod_php4 and
php4).

Good luck.
--
Mark Worsdall
https://www.paypal.com/refer/pal=LS79YHQ9VUGLJ

 
 
 

apache+php+imap: segmentation fault (core dump)

Post by Vil Mervisse » Fri, 27 Jun 2003 01:47:25




Quote:> I went through something similar earlier this month, the firat thing I
> did was to # out the php module lines in httpd.conf. There are 2 of
> them, then restart apache, if it restarts fine then that confirms it is
> a php problem. If it is there are some threads on this (mod_php4 and
> php4).

I checked it (commented the php module lines out of httpd.conf) and apache
started fine then.

As I implied in my first post, I suspect the lang/php4 port. There seems to
be some error with the IMAP option.

 
 
 

1. Get "Segmentation fault (core dumped)" but no core file found

On our Solaris, when a program has a segmentation fault, it crashes and
prints out the message "Segmentation fault (core dumped)" but the core file
is somehow not written to the disk and cannot be found afterwards. Does
anybody has similar experience? How can I fix this problem?

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

2. Newbie-Having X Windows problems

3. "Segmentation fault( core dumped ) "<--- sentence is driving me mad!!!!!

4. Running program from Terminal

5. Segmentation fault (core dumped) ????

6. AIX filesets for GCC installation

7. Segmentation fault (core dumped)

8. LPR:Who are you - error

9. make Segmentation fault (core dumped)

10. Segmentation fault (core dump)

11. Help on "Segmentation fault (core dumped)"

12. Segmentation Fault Error Signal 11 Core dumped message.

13. RH 5.0 with sb card yields segmentation fault - core dump