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 54C06102B0 for ; Thu, 13 Mar 2014 11:10:03 +0000 (UTC) Received: (qmail 23887 invoked by uid 500); 13 Mar 2014 11:10:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23503 invoked by uid 500); 13 Mar 2014 11:10:00 -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 22797 invoked by uid 99); 13 Mar 2014 11:09:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 11:09:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nikolaus.klimek@googlemail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 11:09:53 +0000 Received: by mail-we0-f175.google.com with SMTP id q58so682504wes.6 for ; Thu, 13 Mar 2014 04:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nFB6gXwisbPxzQk0Ys6Y3onCmsAMbF6WeCkEdXq1N0s=; b=WE1evZ4RFj4aUU09FH26qOF7ZDCErtZUz3rwsM8N46SPJCQCsmd0VQtixn/7ricncK EAilgdNzzZcBZrz95X6mMUtYGmSXPP3AVfjHvs5xAhHKp+sC59YP3IJd3NUF7Yo4CnJ+ BcSinJqKp2N+GCsR6lrd1KJkeGPul0ph6u5Z76QGlFnxKSYx/NLqyB8xUkezCgWMJZNM f6xtmw5AHycB2aDHwFznW5+rS6VtplhvpgkHCJBnzB4VSP+VQUiUBGgHjuqctW0G3Pbc MibNYGpzxPYxwVhBpFtXI8w5Px8IBLtaM1dIi3DMMifTtToaS64oSC5zzPDRKbtado+S XJsg== MIME-Version: 1.0 X-Received: by 10.180.84.73 with SMTP id w9mr1095200wiy.58.1394708972685; Thu, 13 Mar 2014 04:09:32 -0700 (PDT) Received: by 10.216.10.74 with HTTP; Thu, 13 Mar 2014 04:09:32 -0700 (PDT) In-Reply-To: <52A0654D.4040800@gmail.com> References: <52A0654D.4040800@gmail.com> Date: Thu, 13 Mar 2014 13:09:32 +0200 Message-ID: Subject: Re: ActiveMQ C++ higher Version 2.2.6 - Segfault by initialization From: Nikolaus Klimek To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=f46d04440492e1cfb704f47afcd1 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04440492e1cfb704f47afcd1 Content-Type: text/plain; charset=ISO-8859-1 Sorry for the late response. I know we have a special sort of scenario, but maybe you can help us. I did some debugging, here are some informations: Program terminated with signal 11, Segmentation fault. #0 0x000003fffb2fa2d4 in std::basic_string, std::allocator >::basic_string() () from /usr/lib64/libstdc++.so.6 (gdb) backtrace #0 0x000003fffb2fa2d4 in std::basic_string, std::allocator >::basic_string() () from /usr/lib64/libstdc++.so.6 #1 0x000003fff74ffb5e in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at activemq/commands/ActiveMQBlobMessage.cpp:31 #2 0x000003fff74ffbfe in global constructors keyed to ActiveMQBlobMessage.cpp(void) () at activemq/commands/ActiveMQBlobMessage.cpp:65 #3 0x000003fff757bc1a in __do_global_ctors_aux () from /var/local/daten/MTP/be02/src/bin/AMQS.so #4 0x000003fff6a67094 in _init () from /var/local/daten/MTP/be02/src/bin/AMQS.so #5 0x000003fffd6a1ec6 in call_init () from /lib/ld64.so.1 #6 0x000003fffd6a1fee in _dl_init_internal () from /lib/ld64.so.1 #7 0x000003fffd6a6ddc in dl_open_worker () from /lib/ld64.so.1 #8 0x000003fffd6a1a96 in _dl_catch_error () from /lib/ld64.so.1 #9 0x000003fffd6a639a in _dl_open () from /lib/ld64.so.1 #10 0x000003fffd4fb0ae in dlopen_doit () from /lib64/libdl.so.2 #11 0x000003fffd6a1a96 in _dl_catch_error () from /lib/ld64.so.1 #12 0x000003fffd4fb53c in _dlerror_run () from /lib64/libdl.so.2 #13 0x000003fffd4faffa in dlopen@@GLIBC_2.2 () from /lib64/libdl.so.2 #14 0x00000000800f6a38 in ?? () Backtrace stopped: frame did not save the PC (gdb) frame 1 #1 0x000003fff74ffb5e in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at activemq/commands/ActiveMQBlobMessage.cpp:31 31 string name; (gdb) print name $1 = {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x0}} AMQS.so is our ActiveMQ C++ client application. Regards Nikolaus 2013-12-05 12:36 GMT+01:00 Timothy Bish : > 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/ > > --f46d04440492e1cfb704f47afcd1--