Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 66344 invoked from network); 19 Jul 2010 14:13:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 14:13:07 -0000 Received: (qmail 82670 invoked by uid 500); 19 Jul 2010 14:13:07 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 82514 invoked by uid 500); 19 Jul 2010 14:13:06 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 82506 invoked by uid 99); 19 Jul 2010 14:13:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 14:13:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 14:12:59 +0000 Received: by qyk9 with SMTP id 9so1971095qyk.2 for ; Mon, 19 Jul 2010 07:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=imHZ72ttOAEKevLsJXNR+WweX+2gvhYkcqHJajci0Z0=; b=jsL8GsEEa28JvpI2q/TMOf2spE/90w9PrrqdsouqHrqtgOUmO8CEvt2Xst0O0yo7b9 UY3V4mUAIgPzWoGfPjVQXMSNxHxN2XnGGcpRkupLNbEBF1apoyNnuL8qfef95h6dkOLU ymMLtoSDzclWtNqu5wmu9C7K2/0QpEwm853Ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=wZSVNJIEyuexpvgFJZwYgijxTc+obZFBmx/Le9pMg3mo08DHfmGkWJYJ35A4izaT+2 XG9T5ONiMDAuZ3ylbSl56QB5NNvbyIR9xpA6MrTHYjLDOZib7arw5nDeGbu+abjjKuVu LwSB4SgdFeZJ+8AAtp+X7hJ22JDGur/oivFLs= Received: by 10.224.126.224 with SMTP id d32mr4489687qas.94.1279548758066; Mon, 19 Jul 2010 07:12:38 -0700 (PDT) Received: from [192.168.2.150] (c-76-21-195-19.hsd1.va.comcast.net [76.21.195.19]) by mx.google.com with ESMTPS id js14sm25654467qcb.6.2010.07.19.07.12.36 (version=SSLv3 cipher=RC4-MD5); Mon, 19 Jul 2010 07:12:37 -0700 (PDT) Subject: Re: activemq-cpp 3.2.0 Segmentation fault on 32 bit but not on 64bit From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <29205034.post@talk.nabble.com> References: <29205034.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 19 Jul 2010 10:12:35 -0400 Message-ID: <1279548755.2547.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-1.fc13) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2010-07-19 at 07:01 -0700, kkreja wrote: > Hi, > > I upgraded from activemq-cpp 3.1.2 to 3.2.0 and I get a Segmentation fault > every time I run my app. I get it even running the example from the > activemq-cpp site (http://activemq.apache.org/cms/example.html). > > the stack trace looks like that: > > #0 0x002424c7 in apr_atomic_add32 (mem=0x889d09c, val=4294967295) at > atomic/unix/mutex.c:78 > #1 0x00ccba88 in > decaf::util::concurrent::atomic::AtomicInteger::decrementAndGet > (this=0x889d098) > at decaf/util/concurrent/atomic/AtomicInteger.cpp:69 > #2 0x00c89208 in decaf::lang::ArrayPointer decaf::util::concurrent::atomic::AtomicRefCounter>::reset ( > this=0xbf8af538, value=0x889d9b8 "\177", size=4) at > ./decaf/util/concurrent/atomic/AtomicRefCounter.h:68 > #3 0x00c88e2c in InetAddress (this=0xbf8af52c, hostname=@0xbf8af564, > ipAddress=0xd0b43b "\177", numBytes=4) > at decaf/net/InetAddress.cpp:79 > #4 0x00c861c7 in Inet4Address (this=0xbf8af52c, hostname=@0xbf8af564, > ipAddress=0xd0b43b "\177", numBytes=4) > at decaf/net/Inet4Address.cpp:34 > #5 0x00c87243 in __static_initialization_and_destruction_0 > (__initialize_p=, > __priority=) at decaf/net/InetAddress.cpp:39 > #6 0x00ce2396 in __do_global_ctors_aux () from > /usr/lib/activemq-cpp-3.2.0/libactivemq-cpp.so.12 > #7 0x0081064d in _init () from > /usr/lib/activemq-cpp-3.2.0/libactivemq-cpp.so.12 > #8 0x002a01e3 in call_init () from /lib/ld-linux.so.2 > #9 0x002a02f3 in _dl_init_internal () from /lib/ld-linux.so.2 > #10 0x0029284f in _dl_start_user () from /lib/ld-linux.so.2 > > I get it only on a 32bit system. On 64 bit everything works perfectly fine. > > Any clues, what I'm doing wrong? This is related to a couple of bugs that were reported last week and have been fixed in the 3.2.x fixes branch. You can check out a copy of the code from here: svn co https://svn.apache.org/repos/asf/activemq/activemq-cpp/branches/activemq-cpp-3.2.x These fixes will be included in the next patch release v3.2.2 Regards -- Tim Bish Open Source Integration: http://fusesource.com ActiveMQ in Action: http://www.manning.com/snyder/ Follow me on Twitter: http://twitter.com/tabish121 My Blog: http://timbish.blogspot.com/