#49224 [Opn]: Segmentation fault

From: Date: Wed, 12 Aug 2009 09:37:01 +0000
Subject: #49224 [Opn]: Segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140960@lists.php.net to get a copy of this message
 ID:               49224
 User updated by:  alahaye at fm2i dot com
 Reported By:      alahaye at fm2i dot com
 Status:           Open
 Bug Type:         Apache2 related
 Operating System: HPUX 11.31
 PHP Version:      5.3.0
 New Comment:

Bind version is 9.3.2. For me it's very strange because last
compilation about PHP 5.3.0 stable was successfull and not with the
snap.


Previous Comments:
------------------------------------------------------------------------

[2009-08-12 09:24:47] alahaye at fm2i dot com

unfortunatly no... it's on a local network, no VPN or DMZ access.

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

[2009-08-12 09:12:21] scottmac@php.net

Is there any chance to get an account on this box to do some testing?

I can provide an SSH key.

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

[2009-08-12 08:42:00] alahaye at fm2i dot com

Hi, here the structure in /usr/lib/resolv.h

Version of file is 

 *	@(#)B.11.31_LRresolv.h	8.1 (Berkeley) 6/2/93
 *	$Id: resolv.h,v 8.10 1996/11/18 09:08:49 vixie Exp $

No field "res_h_errno"

struct __res_state {
	int	retrans;	 	/* retransmition time interval */
	int	retry;			/* number of times to retransmit */
        unsigned int options;           /* option flags - see below.
*/
	int	nscount;		/* number of name servers */
#ifdef IPV6
	union {
           struct sockaddr_in6
                   *nsaddr_list6;
           struct sockaddr_in
                nsaddr_list[MAXNS];     /* address of name server */
	} nsaddr_list;
#define nsaddr  nsaddr_list.nsaddr_list[0]    /* for backward
compatibility */
#else
        struct sockaddr_in
                nsaddr_list[MAXNS];     /* address of name server */
#define nsaddr  nsaddr_list[0]
#endif
	u_short	id;			/* current message id */
	char	defdname[256];		/* default domain (deprecated) */
	char	*dnsrch[MAXDNSRCH+1];	/* components of domain to search */
	unsigned int pfcode;		/* RES_PRF_ flags - see below. */
	u_char ndots:4;		        /* threshold for initial abs. query */
	u_char nsort:4;		        /* number of elements in sort_list[] */
	char	unused[3];
#ifdef IPV6
	union {
              struct in6_addr 
		*sort_list6;
              struct {
                struct in_addr  addr;
                uint32_t        mask;
              } sort_list[MAXRESOLVSORT];
	  } sort_list;
#else
        struct {
              struct in_addr  addr;
              uint32_t        mask;
            } sort_list[MAXRESOLVSORT];
#endif

} ;

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

[2009-08-12 08:12:46] scottmac@php.net

Can you grab a copy of the __res_state struct from resolv.h, I'm
curious to what you have there.

Also what version of Bind is installed?

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

[2009-08-12 07:58:27] alahaye at fm2i dot com

With Snaps during compilation:
==============================

"/websuite/build/php5.3/ext/standard/dns.c", line 501: warning
#4212-mismatch between character pointer types "u_char *" and "const
char *"
                                        add_next_index_stringl(entries,
cp + ll 
+ 1, n, 1);
                                                                       
^

"/websuite/build/php5.3/ext/standard/dns.c", line 507: warning #4212-D:

          mismatch between character pointer types "u_char *" and "char
*"
                                add_assoc_stringl(*subarray, "txt", tp,
dlen - 1
, 0);
                                                                    ^

"/websuite/build/php5.3/ext/standard/dns.c", line 813: error #2136:
struct
          "__res_state" has no field "res_h_errno"
                                if (php_dns_errno(handle) == NO_DATA)
{
                                    ^

"/websuite/build/php5.3/ext/standard/dns.c", line 940: warning #4232-D:

          conversion from "u_char (*)[8192]" to a more strictly aligned
type
          "HEADER *" may cause misaligned access
        hp = (HEADER *)&ans;
             ^

1 error detected in the compilation of
"/websuite/build/php5.3/ext/standard/dns.
c".
*** Error exit code 1

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/49224

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



Thread (17 messages)

« previous php.bugs (#140960) next »