Uploaded image for project: 'Blacktie'
  1. Blacktie
  2. BLACKTIE-407

txfooapp client example hangs sending requests to txfooapp server

    Details

    • Steps to Reproduce:
      Hide

      1. Start AS7:
      $WORKSPACE/jboss-as-7.1.1.Final/bin/standalone.sh -c standalone-full.xml -Djboss.bind.address=$JBOSSAS_IP_ADDR -Djboss.bind.address.unsecure=$JBOSSAS_IP_ADDR&

      2. Start txfooapp server (make sure btconfig.xml points at valid oracle DB instances) (Note: there are some fixes that I need to commit to even get as far as this bug report):
      export ORACLE_HOME TNS_ADMIN etc
      export BLACKTIE_CONFIGURATION=linux
      export BLACKTIE_CONFIGURATION_DIR=svr
      export LOG4CXXCONFIG=log4cxx.server.properties
      btadmin startup

      3. Start txfooapp client
      unset LOG4CXXCONFIG
      export BLACKTIE_CONFIGURATION_DIR=cli
      export BLACKTIE_CONFIGURATION=linux
      ./client

      The client will hang sending a request to the server

      Show
      1. Start AS7: $WORKSPACE/jboss-as-7.1.1.Final/bin/standalone.sh -c standalone-full.xml -Djboss.bind.address=$JBOSSAS_IP_ADDR -Djboss.bind.address.unsecure=$JBOSSAS_IP_ADDR& 2. Start txfooapp server (make sure btconfig.xml points at valid oracle DB instances) (Note: there are some fixes that I need to commit to even get as far as this bug report): export ORACLE_HOME TNS_ADMIN etc export BLACKTIE_CONFIGURATION=linux export BLACKTIE_CONFIGURATION_DIR=svr export LOG4CXXCONFIG=log4cxx.server.properties btadmin startup 3. Start txfooapp client unset LOG4CXXCONFIG export BLACKTIE_CONFIGURATION_DIR=cli export BLACKTIE_CONFIGURATION=linux ./client The client will hang sending a request to the server

      Description

      Start the txfooapp server and then the client. The client deadlocks whilst sending a request due to contention on malloc lock. Notice that TAO took the lock at frame #27 and then the oracle client library tries to obtain it in frame #1:

      (gdb) bt
      #0 0x0000003bed2fe8ec in __lll_lock_wait_private () from /lib64/libc.so.6
      #1 0x0000003bed2846df in _L_lock_10694 () from /lib64/libc.so.6
      #2 0x0000003bed282257 in malloc () from /lib64/libc.so.6
      #3 0x0000003bece0edf1 in _dl_signal_error () from /lib64/ld-linux-x86-64.so.2
      #4 0x0000003bece0ef9a in _dl_signal_cerror () from /lib64/ld-linux-x86-64.so.2
      #5 0x0000003bece0a87b in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2
      #6 0x0000003bed32ccad in call_dl_lookup () from /lib64/libc.so.6
      #7 0x0000003bece0f006 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
      #8 0x0000003bed32cfac in do_sym () from /lib64/libc.so.6
      #9 0x0000003beda01044 in dlsym_doit () from /lib64/libdl.so.2
      #10 0x0000003bece0f006 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
      #11 0x0000003beda0152f in _dlerror_run () from /lib64/libdl.so.2
      #12 0x0000003beda0109a in dlsym () from /lib64/libdl.so.2
      #13 0x00007f4dd3a43da5 in sskgds_save_text_start_end () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #14 0x00007f4dd3a3ee69 in skgdsinit () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #15 0x00007f4dd46cbf24 in kgdsdsts_extra () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #16 0x00007f4dd46c9ba1 in kgdsdsts () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #17 0x00007f4dd4b6eaec in dbgemdGetCallStack () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #18 0x00007f4dd4b6eb7c in dbgemdFillCompFunNames () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #19 0x00007f4dd3ac29fd in dbgemdFillIncCtx () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #20 0x00007f4dd3ac46f8 in dbgexPopulateIncCtx () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #21 0x00007f4dd3ac349b in dbgexProcessError () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #22 0x00007f4dd3ac18cd in dbgeExecuteForError () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #23 0x00007f4dd4b5113a in dbgePostErrorDirect () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #24 0x00007f4dd4d37843 in kpeDbgSignalHandler () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #25 0x00007f4dd49e3db5 in skgesig_sigactionHandler () from /home/mmusgrov/source/jbossts/narayana/quickstart/instantclient_11_2/lib/libclntsh.so.11.1
      #26 <signal handler called>
      #27 0x0000003bed27ddff in malloc_consolidate.part.3 () from /lib64/libc.so.6
      #28 0x0000003bed27f503 in _int_malloc () from /lib64/libc.so.6
      #29 0x0000003bed282265 in malloc () from /lib64/libc.so.6
      #30 0x0000003bf0eba45d in operator new(unsigned long, std::nothrow_t const&) () from /usr/lib64/libstdc++.so.6
      #31 0x00007f4dd7c1d617 in TAO_Root_POA::new_POA (this=<optimized out>, name=..., poa_manager=0x0, policies=..., parent=0x3bed5b1758, lock=..., thread_lock=..., orb_core=..., object_adapter=0x146d420) at Root_POA.cpp:508
      #32 0x00007f4dd7c1ea56 in TAO_Root_POA::create_POA_i (this=0x3bed5b1700, adapter_name=..., poa_manager=0x146f190, policies=...) at Root_POA.cpp:554
      #33 0x00007f4dd7c20d70 in TAO_Root_POA::create_POA_i (this=0x1482b10, adapter_name=0x15e3c80 "client0", poa_manager=0x146f190, policies=<optimized out>) at Root_POA.cpp:489
      #34 0x00007f4dd7c21d85 in TAO_Root_POA::create_POA (this=0x1482b10, adapter_name=0x15e3c80 "client0", poa_manager=0x146f190, policies=...) at Root_POA.cpp:698
      #35 0x00007f4dd16ba484 in HybridCorbaEndpointQueue::HybridCorbaEndpointQueue (this=0x1635310, session=0x160a320, connection=0x1455340, poaName=0x15e3c80 "client0", id=0, messagesAvailableCallback=0x7f4dd5c33320 <tpgetanyCallback(int, bool)>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/mmusgrov/source/jbossts/narayana/forks/blacktie/hybrid/src/main/cpp/HybridCorbaEndpointQueue.cxx:63
      #36 0x00007f4dd16a11f8 in HybridSessionImpl::HybridSessionImpl (this=0x160a320, isConv=false, connectionName=0x7f4dd5c6230b "client", connection=0x1455340, pool=0x145a8d8, id=0, serviceName=0x403d28 "TXFOOAPP", messagesAvailableCallback=0x7f4dd5c33320 <tpgetanyCallback(int, bool)>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/mmusgrov/source/jbossts/narayana/forks/blacktie/hybrid/src/main/cpp/HybridSessionImpl.cxx:104
      #37 0x00007f4dd16b722d in HybridConnectionImpl::createSession (this=0x1616e20, isConv=false, serviceName=0x403d28 "TXFOOAPP") at /home/mmusgrov/source/jbossts/narayana/forks/blacktie/hybrid/src/main/cpp/HybridConnectionImpl.cxx:269
      #38 0x00007f4dd5c3b741 in AtmiBrokerClient::createSession (this=0x15fa870, isConv=false, id=@0x7fff48452074, serviceName=0x403d28 "TXFOOAPP") at /home/mmusgrov/source/jbossts/narayana/forks/blacktie/xatmi/src/main/cpp/AtmiBrokerClient.cxx:172
      #39 0x00007f4dd5c30d11 in tpacall (svc=0x403d28 "TXFOOAPP", idata=0x162fce0 "orcl.buildnet.ncl.jboss.com", ilen=168, flags=0) at /home/mmusgrov/source/jbossts/narayana/forks/blacktie/xatmi/src/main/cpp/XATMIc.cxx:604
      #40 0x00007f4dd5c30570 in tpcall (svc=0x403d28 "TXFOOAPP", idata=0x162fce0 "orcl.buildnet.ncl.jboss.com", ilen=168, odata=0x7fff484525e0, olen=0x7fff484525e8, flags=0) at /home/mmusgrov/source/jbossts/narayana/forks/blacktie/xatmi/src/main/cpp/XATMIc.cxx:544
      #41 0x0000000000401e98 in send_req (req=0x162fce0, prbuf=0x0) at /home/mmusgrov/source/jbossts/narayana/quickstart/blacktie/xatmi/txfooapp/cutil.c:44
      #42 0x00000000004024b0 in db_op (msg=0x4040b5 "INSERT 1", data=0x403d4a "8005", op=48 '0', txtype=1, prbuf=0x0, remote=1, migrating=0, expect=-1) at /home/mmusgrov/source/jbossts/narayana/quickstart/blacktie/xatmi/txfooapp/cutil.c:159
      #43 0x0000000000402705 in test1 (cnt=0x7fff484527a4) at /home/mmusgrov/source/jbossts/narayana/quickstart/blacktie/xatmi/txfooapp/cutil.c:229
      #44 0x0000000000402e9c in run_tests (prod_array=0x7fff484527d0) at /home/mmusgrov/source/jbossts/narayana/quickstart/blacktie/xatmi/txfooapp/cutil.c:466
      #45 0x0000000000403346 in main (argc=1, argv=0x7fff48452a58) at /home/mmusgrov/source/jbossts/narayana/quickstart/blacktie/xatmi/txfooapp/client.c:77

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmusgrov Michael Musgrove
                Reporter:
                mmusgrov Michael Musgrove
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: