[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-dev
Subject:    [jira] Commented: (AMQCPP-200) activemq-cpp-2.2.1 test fails for
From:       "Jacob Rideout (JIRA)" <jira () apache ! org>
Date:       2008-10-31 23:13:05
Message-ID: 217984243.1225494785520.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/activemq/browse/AMQCPP-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46946#action_46946 \
] 

Jacob Rideout commented on AMQCPP-200:
--------------------------------------

I don't know if you resolved this, but here is what we've found with the apr_pools \
problem:

There is a race condition in

decaf/lang/System.cpp:

AprPool& System::getAprPool() {
    static AprPool aprPool;
    return aprPool;
}

the static AprPool is being created twice, if two threads call this function at the \
same time.

> activemq-cpp-2.2.1 test fails for \
>                 decaf::io::ByteArrayInputStreamTest::testConstructor (segmentation \
>                 fault)
> -----------------------------------------------------------------------------------------------------------
>  
> Key: AMQCPP-200
> URL: https://issues.apache.org/activemq/browse/AMQCPP-200
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Decaf
> Affects Versions: 2.2.1
> Environment: RHEL 5.2 (2.6.18-92.el5), apr-1.3.3, apr-util-1.3.4, cppunit-1.12.1, \
> gcc version 4.1.2 20071124 (Red Hat 4.1.2-42), Java(TM) SE Runtime Environment \
>                 (build 1.6.0_06-b02)
> Reporter: Alexander Martens
> Assignee: Timothy Bish
> Fix For: 2.2.2
> 
> Attachments: CentOS-AprPool-Fix-Test.patch, daemons.1.tar.gz, deadlock.6.tar.gz, \
> deadlock.7.log.gz, deadlock.8.log.gz, deadlock.9.tar.gz, deadlock.log.gz, \
> deadlock.openwire.join.tar.gz, deadlock2.log.gz, more.daemons.tar.gz, \
> openwire_transaction.tar.gz, quota.2.tar.gz, seg_fault.log.gz, setup.tar.gz, \
> storage_logs.tar.gz, testConstructor-O0.log.gz, testConstructor.log.gz, \
> testString-O0.log.gz 
> 
> This unit test seems to fail.
> I send you attached a gdb postmortem log (bt, bt full, info threads). 
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic