Outstanding...

Any reason why not to commit the change below. It fixes the problem on
AIX and does not seem break Solaris or BSD. 

I must admit that the reason of the ',0)' is beyond me; so I'd prefer to 
ask first.

> >   file http_main.c, line 2978, assertion "old_listeners == NULL"
> >   failed

> we had the same environment (and problem). it seems that ther is a
> problem with the ap_assert macro. after changeing it (see below) 
> and recompile the server starts und runs as expected. 
> in src/include/httpd.h
> change the line (around source line 1000):

        #define ap_assert(exp) (void)( (exp) ||
(ap_log_assert(#exp,__FILE__,__LINE_ _), 0) )

        to:

        #define ap_assert(exp) ((exp) ? (void)0 : ap_log_assert(#exp,__FILE__,
__LINE__))
                                                               
hope this helps

Dw
-- 
Symbols in Solaris 2.7 suck
Title: Full Problem Report Text for PR#2575

Full text of PR number 2575:

Received: (qmail 12203 invoked from network); 9 Jul 1998 12:05:42 -0000
Message-Id: <[EMAIL PROTECTED]>
Date: Thu, 9 Jul 1998 14:19:04 -0200 MEST
From: "PRINZ Richard" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Dan Cote <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Subject: file http_main.c, line 2978, assertion "old_listeners == NULL" f

>Number:         2575
>Category:       other
>Synopsis:       file http_main.c, line 2978, assertion "old_listeners == NULL" failed
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu Jul  9 05:10:00 PDT 1998
>Last-Modified:  Sat Aug  1 01:52:32 PDT 1998
>Originator:     [EMAIL PROTECTED]
>Organization:
>Release:        1.3.0
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
Synopsis-Changed-From: file http_main.c, line 2978, assertion "old_listeners == NULL" f
Synopsis-Changed-To: file http_main.c, line 2978, assertion "old_listeners == NULL" failed
Synopsis-Changed-By: coar
Synopsis-Changed-When: Sat Aug  1 01:52:32 PDT 1998
Originator-Changed-From-To: [EMAIL PROTECTED]
Originator-Changed-By: coar
Originator-Changed-When: Sat Aug  1 01:52:32 PDT 1998
Release-Changed-From-To: -1.3.0
Release-Changed-By: coar
Release-Changed-When: Sat Aug  1 01:52:32 PDT 1998
Responsible-Changed-From-To: gnats-admin-apache
Responsible-Changed-By: coar
Responsible-Changed-When: Sat Aug  1 01:52:32 PDT 1998
Responsible-Changed-Why:
Putting back into mainstream bugdb.

Category-Changed-From-To: pending-other
Category-Changed-By: coar
Category-Changed-When: Sat Aug  1 01:52:32 PDT 1998

>Unformatted:
-----BEGIN PGP SIGNED MESSAGE-----

> Environment:
> AIX danis 2 3 000140714100
> vanilla cc compiler
> Description:
> httpd doesn't run.
> only thing it does is log this message in error_log:

>   file http_main.c, line 2978, assertion "old_listeners == NULL"
>   failed

we had the same environment (and problem). it seems that ther is a
problem with the ap_assert macro. after changeing it (see below)
and recompile the server starts und runs as expected. 

in src/include/httpd.h

change the line (around source line 1000):

#define ap_assert(exp) (void)( (exp) || (ap_log_assert(#exp,__FILE__,__LINE_ _), 0) )

to:

#define ap_assert(exp) ((exp) ? (void)0 : ap_log_assert(#exp,__FILE__, __LINE__))
                                                               
hope this helps

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNaTC+B+u0wAq4l0FAQFFyAQA1lEasCUZqHuIComkK0FcOOHNCzcupTtS
PRlvkWkWKvkQUYcSXer6xxcyMPtMxiTZYZtE+0WhSJp3d37j5KNe5A+hWsaEeb8f
1qhxAYSYoMlBGtXQxz+SzRi+SU1FF64mAUw8gT881UbR8UrHuEjxyFoGPuyWNkG7
d2AURvoCxGc=
=0bDV
-----END PGP SIGNATURE-----

brgds
Richard Prinz

For PGP keys see: http://www.cso.net/cso/keys/prinz.asc
-----------------------------------------------------------
Richard Prinz                    NIC HDLs: RP26-RIPE, RP488
[EMAIL PROTECTED]            Tel.: +43/1/8882500
CSO.Net Telecom Services GmbH    Fax.: +43/1/8882500/15
Gatterederstrasse 20             http://www.cso.net/
A-1230 VIENNA, AUSTRIA           ftp://ftp.cso.net/pub
-----------------------------------------------------------
Domains online: http://www.cso.net/names
Internet for free: http://www.cso.net/freenet

Reply via email to