php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14000 [notice] child pid XXXXX exit signal Segmentation fault (11)
Submitted: 2001-11-09 16:19 UTC Modified: 2001-11-10 15:24 UTC
From: hunter at spysatcentral dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.6 OS: FreeBSD
Private report: No CVE-ID: None
 [2001-11-09 16:19 UTC] hunter at spysatcentral dot net
Hosting Server:
---------------
FreeBSD fbsd.austin.rr.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001     murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386

Pop3 Server:
------------
+OK Qpopper (version 4.0.3) at dual.spysatcentral.net starting.  <69911.1005340240@dual.spysatcentral.net>

Error in /var/log/httpd-error.log:
----------------------------------
[Fri Nov  9 13:23:56 2001] [notice] child pid 95700 exit signal Segmentation fault (11)

PHP Version 4.0.6 options:
'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-imap=/usr/local' '--prefix=/usr/local' 'i386--freebsd4.4'

HTML/PHP code:
--------------
<HTML><HEAD></HEAD><BODY>
<?php
  $mbox = imap_open ("{dual.spysatcentral.net:110/pop3}INBOX", "someuser", "somepass");
  imap_close($mbox);
?>
</BODY></HTML>

Comments:
---------
I don't know any c programming much less how to use a debugger. but I set this up with a fresh install of FreeBSD 4.4-stable, and installed from /usr/ports/www/mod_php4 and added imap options.
I was able to get imap to connext to the pop3 on a Lotus Domino servers pop3 port and work so it apears to be a bug in the the way php4.0.6 talks to Qpopper( also found in the FreeBSD ports ) then again maby I am just doing something stupid. :P my original code has much more to it but I can get the segfault with just the little code I provided.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-10 10:46 UTC] sniper@php.net
This is not bug in PHP but propably in the version of
c-client you have. Which version is it? I just tried
with imap-2001a.RELEASE-CANDIDATE.4 and it worked
just fine.

--Jani

 [2001-11-10 11:11 UTC] hunter at spysatcentral dot net
How do I tell what version I have of c-client?

I did a "grep -i version *" in "/usr/local/include/c-client" and it returned:

bash-2.05$ pwd
/usr/local/include/c-client
bash-2.05$ grep -i version *
imap4r1.h: * This original version of this file is
misc.h: * This original version of this file is
osdep.h: * Program:     Operating-system dependent routines -- FreeBSD version
portrevision.h:#define CCLIENT_PORTVERSION "0106191041"
rfc822.h: * This original version of this file is
smtp.h: * This original version of this file is
utf8.h:/* UTF-8 size and conversion routines from UCS-2 values.  This will need to
utf8.h:                         /* 6/1 Norwegian version 2 (withdrawn) */
utf8.h:  cstext_t dsp;                  /* text conversion dispatch */
utf8.h:  void *tab;                     /* conversion table */
bash-2.05$
 [2001-11-10 11:49 UTC] sniper@php.net
If you don't have c-client.h file, the version is below 
imap-2000. So you better update the libs.

 
 [2001-11-10 15:06 UTC] hunter at spysatcentral dot net
ok I do have the "c-client.h"

maby this will help.

http://beta.spysatcentral.net:8080/~hunter/phpinfo.php
 [2001-11-10 15:24 UTC] hunter at spysatcentral dot net
ok I do have the "c-client.h"

maby this will help.

http://beta.spysatcentral.net:8080/~hunter/phpinfo.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC