Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-462

Producer aborts/core dump during ActiveMQCPP::shutdownLibrary()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.5.0
    • 3.6.0
    • Decaf
    • This has been observed on both RedHat 5.8 and SUSE SLES10
      32bit Linux machines. We are linking with apr version 1.4.2 and apri-util version 1.3.9

    • Regression

    Description

      Producer aborts/core dump during ActiveMQCPP::shutdownLibrary()

      We recently upgrade from the AMQ-CPP-Client from 3.4.5 to 3.5.0. After doing
      this we found that we would get aborts and core files when shutting down the
      proces.

      I've also been able to reproduce the problem with the simple consumer, which
      equates to basically.

      1. Invoke the initializeLibrary() routine.
      2. Print the library version and CMSX properties
      3. Invoke shutdownLibrary()

      When I link against the 3.4.5 library there is no abort/core. When I link
      against 3.5.0 we abort/core.

      Environments: This has been observed on both RedHat 5.8 and SUSE SLES10
      32bit. We are linking with apr version 1.4.2 and apri-util version 1.3.9

      I've attached gdb output as well as the modified SimpleProducer.cpp that I see
      the problem with.

      It works with the previous version

      %> SimpleProducer.exe
      =====================================================
      Starting the example with version 3.4.4:
      -----------------------------------------------------
      0: JMSXGroupID
      1: JMSXGroupSeq
      2: JMSXDeliveryCount
      3: JMSXProducerTXID
      -----------------------------------------------------
      Finished with the example.
      =====================================================


      It fails with 3.5.0

      ----------------------------------------
      %> SimpleProducer.exe
      =====================================================
      Starting the example with version 3.5.0:
      -----------------------------------------------------
      0: JMSXGroupID
      1: JMSXGroupSeq
      2: JMSXDeliveryCount
      3: JMSXProducerTXID
      -----------------------------------------------------
      Finished with the example.
      =====================================================
      terminate called after throwing an instance of 'decaf::lang::exceptions::RuntimeException'
      what(): Failed to Lock OS Mutex
      Abort (core dumped)

      Attachments

        1. SimpleProducer.exe
          78 kB
          John Rocha
        2. SimpleProducer.cpp
          9 kB
          John Rocha
        3. core-SimpleProducer..9541
          1.43 MB
          John Rocha
        4. CoreInfo.txt
          4 kB
          John Rocha

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              jrr John Rocha
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: