application crashed when using SNC connection

application crashed when using SNC connection

book

Article ID: KB0073927

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions 7.x, 8.x

Description

When starting the TIBCO ActiveMatrix® Adapter for SAP to establish an SNC connection to the SAP system. the application crashed with a Segmentation fault (core dumped) error. 

Issue/Introduction

application crashed when using SNC connection

Environment

Linux System

Resolution

If debugging the core file and backtrace the error, following meesge could occur:

Core was generated by `<tibo_home>/adapter/adr3/7.2/bin/adr3 --run --propFile /usr/tibco/devset'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f15bac8147d in ?? ()

(gdb) backtrace
#0  0x00007f15bac8147d in replace_dollarparam(name_value_tupel*, int, int) () from /usr/tibco/devsetb/tibco_cfg/JCOLib/libsapjco3.so

According to SAP Note 558250. This could be due to the stack size for the Java application that using the JCo library is too small. The initial JCo version works with the Java default stack size, but over time the native code could change significantly, this could lead to larger stacks, which eventually could be too large for the default stack size.

To resolve this issue, try to double the application's stack size until the issue is resolved.

To set the stack size in TIBCO ActiveMatrix® Adapter for SAP, add the following TRA property in the application's tra file and set: java.thread.stack.size

The default value for the stack size varies on different platforms. Try starting with 512k which should be big enough for most applications. 

Additional Information

https://launchpad.support.sap.com/#/notes/558250