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

Segmentation fault after removing derivation from runnable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 2.1.3
    • None
    • Example Code
    • None
    • #CentOS release 5 (Final)
      redhat-4
      Linux orion 2.6.18-53.el5 #1 SMP Mon Nov 12 02:14:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

    Description

      I have unstalled ActiveMQ 5.1.0 and activemq-cpp-2.1.3.
      I have used simple_producer and simple_async_consumer successful.
      Then i have started several times simple_producer without starting a consumer. Which (clearly) results in an exception:

      [wok@orion] ~/src 679$ /opt/apache-activemq-5.1.0/bin/simple_producer
      =====================================================
      Starting the example:
      -----------------------------------------------------
      Sent message #1 from thread -1420801584
      No valid response received for command: (null), check broker.
      FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 146
      FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 154
      FILE: activemq/connector/openwire/OpenWireFormatNegotiator.cpp, LINE: 105
      FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 1371
      FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 848
      FILE: activemq/core/ActiveMQSession.cpp, LINE: 675
      FILE: activemq/core/ActiveMQProducer.cpp, LINE: 194
      FILE: activemq/core/ActiveMQProducer.cpp, LINE: 149
      FILE: activemq/core/ActiveMQProducer.cpp, LINE: 108
      -----------------------------------------------------
      Finished with the example.
      =====================================================

      That's all ok.

      But then i haved change the SimpleProducer in line 43 and 110 to be closer to our integration:
      < class SimpleProducer /: public Runnable/ {
      string threadIdStr; // = Integer::toString( Thread::getId() );

      I repeated the test and got a Segmentation fault (wihout a core file).

      =====================================================
      Starting the example:
      -----------------------------------------------------
      Sent message #1 from thread
      Segmentation fault

      WHY ???????????????

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            wok Wolfgang.Klein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: