Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1956710D7C for ; Thu, 5 Dec 2013 11:37:20 +0000 (UTC) Received: (qmail 24709 invoked by uid 500); 5 Dec 2013 11:37:15 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 24681 invoked by uid 500); 5 Dec 2013 11:37:14 -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 24671 invoked by uid 99); 5 Dec 2013 11:37:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 11:37:13 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.128.48 as permitted sender) Received: from [209.85.128.48] (HELO mail-qe0-f48.google.com) (209.85.128.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 11:37:07 +0000 Received: by mail-qe0-f48.google.com with SMTP id gc15so16903525qeb.21 for ; Thu, 05 Dec 2013 03:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=l6HpmZnYRHYjxskap+RV7vcDOon7FtiBAYPb6HwjZrw=; b=eSB58RYHjX3seNykv36+pcavpMDxjx8sZ8CV+jZBiXjY5+HxB7qi5lO2yxBprND3TF lnED28bRSAuqqMHmbm9h3c4mxF2PoUfRDcuYzQcYxdskTFR8TUrmt4sRh0+l7eTix+zv /nHogwMWqeR45uT12YcPtfio+pw9P3E3QDvQiRrtIRUWBnZWGiIHfCMD1TvS8rcV4nFs qDUstv915vSBfeakFeSbLb1OFbsxGwRWr32Zx3aO9gQmbWXs4FpWRHmFVJ/7IU3eZKOj V12UTmKG+R4FaHtDUNFuTj33EB+xz6asBrqNQhwBjAUW4kWv4wda12Wx1+sVJFHOfhCQ 8TCg== X-Received: by 10.224.21.197 with SMTP id k5mr85291241qab.62.1386243406315; Thu, 05 Dec 2013 03:36:46 -0800 (PST) Received: from [192.168.2.150] (c-98-218-173-79.hsd1.va.comcast.net. [98.218.173.79]) by mx.google.com with ESMTPSA id fc16sm28068120qeb.3.2013.12.05.03.36.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Dec 2013 03:36:45 -0800 (PST) Message-ID: <52A0654D.4040800@gmail.com> Date: Thu, 05 Dec 2013 06:36:45 -0500 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: ActiveMQ C++ higher Version 2.2.6 - Segfault by initialization References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 12/05/2013 02:57 AM, Nikolaus Klimek wrote: > Hello, > > because our previous SLES Version does not support required apr-version, we > used the ActiveMQ C++ Client 2.2.6, which was compiled to a shared > object/library and called by a cobol application (via CALL). This > combination > works fine. > > Actually we updated our SLES (to 11.2) and a higher apr-version now is > supported. So we tried to use a higher-version of the ActiveMQ C++ Client > (e.g. 3.0, ... , 3.8.1), which we compiled to a shared object for calling > via a cobol application, too. Calling the new version now causes a > segmentation fault, the ActiveMQ shared object crashes on initialization, > before any command is executed. We think it deals with loading/initialising > the activemq library (activemq::library; ActiveMQCPP::initializeLibrary()), > because it is new since version 3.0.0. > Another point is we reduced our ActiveMQ shared object to only print a > line. This certainly works. Adding the command activemq::library; > ActiveMQCPP::initializeLibrary() causes the identicall segfault. Bizarrely > calling the identical shared object from a C++ application works. > > We don't understand why calling the ActiveMQ shared object doens't work > from cobol, however it works calling from a C++ application. With a release > <=2.2.6 both call variations working. > > We hope you have any ideas for let us understand this issue or to give us > some advice for solving this problem. > > Thanks in regards! > Niko > Well the CMS libraries are not tested under this sort of scenario so I can't really offer much help without more information. You should do some debugging and try and figure out what the stack trace is at the time of the segmentation fault. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/