You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2010/09/14 22:54:49 UTC

DO NOT REPLY [Bug 49930] New: APP client library crashes on 32-bit Linux machine

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

           Summary: APP client library crashes on 32-bit Linux machine
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: kaiwan@cisco.com


OS: Linux 2.6.16.46-0.12-smp

Machine: Intel(R) Core(TM)2 Duo CPU

APR version: 1.4.2

The crash results from the line 39 in file
activemq-cpp-library-3.2.1/src/main/decaf/net/InetAddress.cpp. It is an
initialization for a static variable inside class InetAddress. In the
initialization code, InetAddress constructor eventually calls an atomic
operation function apr_atomic_add32() to do atomic increment. This function
apr_atomic_add32() then tries to get a mutex from an uninitialized array of
mutexes. Since the pointer to this array is NULL, it leads to a segmentation
fault.

Fix: apr-1.4.2/src/atomic/unix/mutex.c

In mutex_hash(), if mutex hash table does not exist, call apr_initialize() to
create it.

-- 
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@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


DO NOT REPLY [Bug 49930] APP client library crashes on 32-bit Linux machine

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

Ruediger Pluem <rp...@apache.org> changed:

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

--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2010-09-15 14:39:47 EDT ---
Not calling apr_initialize() before using apr is an error in the calling
application.

-- 
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@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org