You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/06/23 14:12:07 UTC

DO NOT REPLY [Bug 45256] New: lack of object check for null value cause expection

https://issues.apache.org/bugzilla/show_bug.cgi?id=45256

           Summary: lack of object check for null value cause expection
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: major
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ohad.oz@gmail.com


In "select.c" file, line 202 a new object is being allocated by "apr_palloc"
function. There isn't any check if the function returns null value instead
there are serveral operation on the object.
In case the Object is null, exception is shown.
This reproduce constantly in massive stress mode when httpd memory usage stands
on 1.9Gb.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45256] lack of object check for null value cause expection

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45256

Joe Orton <jo...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Joe Orton <jo...@redhat.com> 2010-01-31 05:49:31 UTC ---
It's a specific design decision that APR should not check for NULL returns from
apr_p*alloc et al.  An abort function should be registered to abort the process
if memory allocation fails.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45256] lack of object check for null value cause expection

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45256


Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|All                         |APR
         OS/Version|Windows Server 2003         |All
            Product|Apache httpd-2              |APR
           Platform|PC                          |All
            Version|2.2.8                       |HEAD




--- Comment #1 from Nick Kew <ni...@webthing.com>  2008-06-23 05:59:14 PST ---
I think the general principle here is that if apr_palloc fails, the system is
not recoverable anyway.  But yes, it's bad practice, and would be better fixed.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org