You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dirk-Willem van Gulik <di...@jrc.it> on 1998/12/11 20:41:11 UTC

Full Problem Report Text for PR#2575

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

Re: Full Problem Report Text for PR#2575

Posted by Ben Laurie <be...@algroup.co.uk>.
Dirk-Willem van Gulik wrote:
> 
> 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.

I don't understand why the second form isn't used anyway - its the more
usual formulation of assert, after all...

(you can take that as +1).

Cheers,

Ben.

> 
> > >   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
> 
>     ---------------------------------------------------------------
> 
> Full text of PR number 2575:
> 
> Received: (qmail 12203 invoked from network); 9 Jul 1998 12:05:42 -0000
> Message-Id: <78...@solaris.cso.net>
> Date: Thu, 9 Jul 1998 14:19:04 -0200 MEST
> From: "PRINZ Richard" <pr...@mail.cso.net>
> Reply-To: richard.prinz@mail.cso.net
> To: Dan Cote <dc...@med.uottawa.ca>
> Cc: <ap...@Apache.Org>
> 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:     richard.prinz@mail.cso.net
> >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: -richard.prinz@mail.cso.net
> 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
> richard.prinz@cso.net            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

-- 
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/