Calling ipseckey from multithreaded application

Hello
My multithreaded network C++ application calls Solaris ipseckey utility concurrently while deleting/adding IPSEC SA without any additional synchronisation.
Application can call concurrently in threads constructions like
FILE * fp = popen("/usr/sbin/ipseckey -f <file with commands>","r");
pclose(fp);
Does anybody knows if it is safe to do it in such way without synchronisation?
I didn't find inter-process synchronisation in ipseckey code opposite to ipsecconf utility where such synchronisation is provided by lock file.
I am suspecting that ipseckey is not "Multiple Process" safe.
Sometimes during application running I see system panic with stack like below.
SunOS xxx 5.10 Generic_139555-08 sun4v sparc SUNW,T5140
Apr 6 12:43:26 WS_same_subnet unix: [ID 783603 kern.notice] Deadlock: cycle in blocking chain
Apr 6 12:43:26 WS_same_subnet unix: [ID 100000 kern.notice]
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203eeb0 genunix:turnstile_block+630 (1271800, 3b, 60010b3ea70, 182b110, 0, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 000000000182b110 0000000000000000 0000060013db0550 00000600134a6d08
Apr 6 12:43:26 WS_same_subnet %l4-7: 00000300044c0be0 0000000000000001 0000000000000000 0000000000000000
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203ef60 unix:mutex_vector_enter+428 (1872380, 2, 60010b3ea70, fff999198400ec63, 300044c0be0, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 00000000018f1fe0 0000000000000000 0000000000000000 0000000000000000
Apr 6 12:43:26 WS_same_subnet %l4-7: 00000300044c0be0 0000000000000001 000000000182b148 000000000182b140
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f010 ipsecah:get_ipsa_pair+1a4 (6001c7312c0, 60010b3c000, 60010b3ea68, 6001087e9b0, 6001bc77628, 2)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000060010b3c060 000000007bf1f420 000006001c7312dc 0000000000000000
Apr 6 12:43:26 WS_same_subnet %l4-7: 000000000000006f 0000060010b3c068 0000060010b3ea70 000000000b07016f
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f0e0 ipsecah:sadb_delget_sa+13c (600115785c0, 60015db68f0, 6001087e990, 2a10203f29c, 600126b54b8, 13)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000001 0000000000000000 0000000000000000 00000300011d61b0
Apr 6 12:43:26 WS_same_subnet %l4-7: 00000300011d6440 0000000000000004 0000060015db68f8 0000000000000027
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f1e0 ipsecesp:esp_parse_pfkey+cc (3, 3, 6001087e940, 60015db68f0, f8, 6001c7312b0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000060015db6a50 000000007dfaae03 ffffffffffffffff 000000007dfaae04
Apr 6 12:43:26 WS_same_subnet %l4-7: 000000007dfaac00 00000600115785c0 000000007bbb32c4 000000007bbb3000
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f2a0 unix:putnext+218 (600126b56a8, 600126b55b0, 600115785c0, 100, 600126b5320, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000005350
Apr 6 12:43:26 WS_same_subnet %l4-7: 000000000000010d 00000000019831d8 000000007bbb35dc fffffd5efdfc6000
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f350 keysock:keysock_parse+270 (60019e0f5f0, 600137bd200, 290, 0, 30001b04f40, 600164ed0a0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000060010b54a80 000006001c7312b0 0000000000000048 000002a10203f408
Apr 6 12:43:26 WS_same_subnet %l4-7: 000000007bbcffe0 000000007bbcfc00 0000000000000003 0000000000000003
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f4e0 unix:putnext+218 (600109a3868, 600164ed0a0, 6001cb61140, 100, 6001bde6988, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000005590
Apr 6 12:43:26 WS_same_subnet %l4-7: 000000000000010d 0000000070000ef0 000000007bbd0678 fffffd5efdfc6000
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f590 genunix:strput+1d8 (600190044f0, 6001cb61140, 6da1, 6001cb61140, 60013c72fd0, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 000006001bde6988 0000000000000004 0000000000000000 0000000000000000
Apr 6 12:43:26 WS_same_subnet %l4-7: 000006001c76e580 00000600134a6d08 0000000000000000 0000000000000000
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f790 genunix:kstrputmsg+33c (6001a371040, 60015f60fc0, 2a10203fa98, 6001cb61140, 2, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000003 0000000000000000 0000000000000004 00000600190044f0
Apr 6 12:43:26 WS_same_subnet %l4-7: 0000060019004570 0000000000000000 0000000000000000 0000000000000000
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f870 sockfs:sosend_svc+94 (6001c175320, 2a10203fa98, 3, 0, 61, 0)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000008 000002a10203f928 0000000000000001 0000000000000004
Apr 6 12:43:26 WS_same_subnet %l4-7: 0000000000000001 000006001c175340 0000000000000021 0000000000000048
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f930 genunix:fop_write+20 (6001a371040, 2a10203fa98, 0, 60012743560, 0, 133da18)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000048 0000000000002420 0000000000002000 0000000000000009
Apr 6 12:43:26 WS_same_subnet %l4-7: 000006001086a080 0000060010883500 00000600108839e8 00000000022169e2
Apr 6 12:43:26 WS_same_subnet genunix: [ID 723222 kern.notice] 000002a10203f9e0 genunix:write+268 (5, 8058, 600192090e0, 48, 3, 1)
Apr 6 12:43:26 WS_same_subnet genunix: [ID 179002 kern.notice] %l0-3: 0000000000000000 000006001a371040 0000000000000000 0000000000008b10
Apr 6 12:43:26 WS_same_subnet %l4-7: 0000000000000048 0000000000000128 0000000000000000 0000000000000003
Apr 6 12:43:26 WS_same_subnet unix: [ID 100000 kern.notice]
Apr 6 12:43:26 WS_same_subnet genunix: [ID 672855 kern.notice] syncing file systems...

Thank you
I selected the following threads from mdb output
000003000475ee40 600133c9120 600115535d0 1 58 60010b58200
PC: turnstile_block+0x600 CMD: /usr/sbin/ipseckey -f /tmp/ipsecWPXbJe4xN
stack pointer for thread 3000475ee40: 2a101e3c6b1
[ 000002a101e3c6b1 turnstile_block+0x600() ]
mutex_vector_enter+0x428()
get_ipsa_pair+0x1a4()
sadb_delget_sa+0x13c()
esp_parse_pfkey+0xcc()
putnext+0x218()
keysock_parse+0x270()
putnext+0x218()
strput+0x1d8()
kstrputmsg+0x33c()
sosend_svc+0x94()
fop_write+0x20()
write+0x268()
syscall_trap32+0xcc()
000003000443f5e0 6001352f1c0 60015c4d778 1 49 60010b56068
PC: panicsys+0x48 CMD: /usr/sbin/ipseckey -f /tmp/ipsecVPXaJe4xN
stack pointer for thread 3000443f5e0: 2a101f0c6d1
turnstile_block+0x630()
mutex_vector_enter+0x428()
sadb_delget_sa+0x1a4()
esp_parse_pfkey+0xcc()
putnext+0x218()
keysock_parse+0x270()
putnext+0x218()
strput+0x1d8()
kstrputmsg+0x33c()
sosend_svc+0x94()
fop_write+0x20()
write+0x268()
syscall_trap32+0xcc()
Using of PF_KEY will be our next step for better performance.

Similar Messages

  • Call ITS from BSP Application

    i have created a ITS screen which in turn calls a Abap report
    I want to call this ITS screen from a BSP application .
    Could you please provide some sample code which is used to call ITS from BSP application..
    Useful answers will be rewarded
    Thanks

    Since it is related to both ITS and BSP i thought i can post it in both. and also i didnt get answers for the queries..... for a long time. Anyhow i will take your suggestion for my future query.
    i hv done using iframe to call my ITS application.
    I can able to call the Bsp application whichin turn calls its screen abap program.
    while executing ,  the selecting the directory from the file browse pop up doesnt work for downloading the file
    becos the client , they will not change the settings related to applet in the internet browser for security reasons.
    I hav to make it some how to make it work in the portal which calls this BSP application..
    at the moment i mapped this BSP application to the user role in the SUS Portal . but it appears in the SUS portal . but i m not able to click the application and also handsymbol is not seen while bringing the mouse to that area.
    Could you please tell me , how to use Action_id for that particular application, Authorisation profile settings.
    Kindly  give your suggestions asap.

  • Call Webgui from WD application with only one log on

    Hi
    In my first application using WD ABAP, requirement is to call WEBGUI from the application.
    Calling WEBGUI is working fine but while calling WEBGUI the system asks for another log-on which is not required.
    When the application first executes it asks for logon again while calling WEBGUI the system asks for another logon,
    please let me know how can we avoid second logon?
    Note - I am using RFC host name while creating URL for WEBGUI.
    Thanks, in advance

    Hello Trupti,
    Are you using fully qualified host names?
    Edgar

  • Calling RFCs from Webdypro application!!!!

    Can anybody show me a suitable example for calling rfc from webdynpro application.

    Hi steve,
    Look at this tutorial..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on accessing abap functions in web dynpro - 4.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on handling transactions with bapis in web dynpro - 5.htm
    Follow the steps provided in those documents.
    You can easily understand how to access ABAP functions from WebDynpro.
    Let me know if you need more help on this.
    Regards,
    Karthick

  • Calling form from web application

    i use the below url for calling form from web application.
    http://host51.yan.com/forms/frmservlet?form=test&width=700
    i would like to know about "frmservlet"
    if it's a servlet file then
    where its located in application server10g

    The servlet is part of the forms-installation on the application-server, on the local OC4J this is located in $ORACLE_HOME/forms/j2ee/formsapp.ear
    What exactly do you want to know about the servlet?

  • How to call webservice from Java application

    Hi XI gurus
    Pls let me know how to call a webservice from Java application.
    I wanted to build synchronous interface from Java Application to SAP using SAP XI
    For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
    Regards
    MD

    Hi,
    If your  JAVA Application is Web based application, you can expose it as Webservice.
    JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
    So we can Use SOAP Adapter or HTTP in XI..
    If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
    If you are dealing with the Webservice and SAP Applications means check this
    Walkthrough - SOAP  XI  RFC/BAPI
    REgards
    Seshagiri

  • Calling WDJ from WDA application

    Hi experts,
    Can anyone please tell me that how 2 call a WDJ application from a WDA application. Please explain in detail as i am complete novice in this field.
    thnx.

    Hi Thomas and experts,
    I have requirement where i need to call WD java standard application.
    My requirement : I am displaying teamview in my MSS through OADP by using WD ABAP...
                                 Initial Screen displays columns like Position, Employee name , Job ...etc
                                     when manager select position in teamview ....it has to check whether positions region went live or not.
                                    I) IF position region went live then it has to open 3rd party tool and pass parameters(Here i am open 3rd      party URL and passing parameters)
    Here my requirement, 2)Already we have standard WDJ application which is using as of now, so if positions region has not gone live then i have to call standard WDJ application with passing parameter and skipping initial screen which is displaying teamview and continue with position details
    Is this possible through portal which explained above. can any one suggest me how to proceed .
    Thanks in advance...
    Regards,
    Farooq

  • Create DLL from labview and calling it from other application

    I have an application built using Labview. I wanted to create DLL out of it. The application has
    two String inputs start and stop buttons and two status indicators.
    1. How to itegrate start and stop buttons from function prototype?
    2. Does Labview created DLLs requires labview runtime engine when it is to be called from other application?
    Can some one help on this.
    Solved!
    Go to Solution.

    Hi Yuvish,
    1) They should be boolean inputs to your VI. But does it makes sense to provide a stop button input at the start of your VI? (THINK DATAFLOW!)
    2) Yes, the LV-RTE is needed...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to call javascript from java application

    How can we call a function written in javascript from java application (core java not applet)? How will java identify javascript?
    Is there any such options ?

    Try creating a page called launcher.html (for example). That does this:
    <html>
    <head>
    <script language="javascript">
    windowHandle=window.open("http://www.javasoft.com", "", "height=700,width=1000,status=no,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,top=5,left=5");
    </script>
    </head>
    </html>Now you launch IE (or whatever) with this page using the Runtime class. After x seconds (after the second window has been launched) try killing the process. Hopefully it will kill the original window you opened and not the window you popup (the one without toolbars etc)
    It might kill both windows but I can't be bothered to test it. If it does you'll have to try and find a workaround.

  • Calling workbook from oracle application 11.03

    hi,
    i want to call one report of discoverer from oracle application 11.03 request set.if any one has done this ever or have any idea how should i do this,please reply back.
    thanks in anticipation
    null

    hi,
    this will help u in solving the problem.
    This can be simply achieved via the following steps:
    Add a 'Push Button' to an existing form, where you wish Discoverer to be run from.
    Add a standard 'WHEN_BUTTON_PRESSED' trigger to this button.
    Edit the trigger to insert the HOST command referencing the Discoverer executable(including the full path), plus the command line options you require. An example of this is shown below:
    HOST('C:\ORAWIN95\DISCVR31\DIS31USR.EXE /CONNECT SCOTT/TIGER /OPENDB TESTQUERY1 /SHEET ALL');
    In this example, command line options have been appended to the Discoverer executable to first connect as a specific user, then open a Workbook that has been saved to the database, and then run all the sheets in the workbook. These command line functions are optional and there are others that can be used to perform various functions. For more information on the complete Command Line options available, see Chapter 13, section 13.3, of the Discoverer 3.1 Administration Guide or see the following WebIV Note copy of the same:
    Note.68739.1 - Complete Command Line Options for Discoverer 3.1(Admin & User Edition)
    Other references
    For command line options available with the 3.0.8 release of Discoverer(which were only available for the 'User Edition' in this release), see the following note:
    Note.44841.1 - Command Line Parameters With Discoverer 3.0 User Edition
    bye
    raj

  • Calling opportunity from accounts application

    Hi All,
               I tried calling opportunity application from accounts application by clicking on a tab , just like calling bsp application from pcui.Unfortunately it is calling the same accounts application.
              I tried this in opportunity application too,it is calling the same application which calls it.
              Where do you think I went wrong?
    Regards,
    Ruby.

    Hi ,
          I created a button in opportunity tab in account application.When i click on it no processing takes place? I added an event  in the toolgroup of opportunity (tab).
    Did the changes in the application layout.Is it possible to call a pcui application from another? I have not used any object linking.My screen element type is html.
    Regards,
    Ruby.

  • How to call transaction from webdynpro application

    Hi Experts,
    I have a web dynpro component zxx_comp.its corresponding web dynpro application zxx_app.
    my requirement is , when i test the webdynpro application, i have to call a transaction zxx_txn corresponds to the module pool program zxx_pgm  directly . How can i do that?
    Regards
    Ashwin KV

    Hi Ashwin,
    Use the following to open a T-Code from WD application.
    CALL METHOD cl_http_server=>if_http_server~get_location
    IMPORTING
      host = lv_host
      port = lv_port
      out_protocol = lv_protocol.
    DATA lv_url type string.
    concatenate lv_protocol  '://' lv_host  ':' lv_port  '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='zxx_txn' into lv_url.
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window_manager->create_external_window(
         EXPORTING
           url    = lv_url
         RECEIVING
           window = lo_window ).
    Regards,
    Harsha

  • Call Discoverer from Oracle Applications

    I need to view the discoverer workbooks from Oracle Applications
    menu. Sombody know how?

    We ran into the same issue when we upgraded Disco to 10g (do not recall exact version) about 18 months ago - unfortunately, we are off till the new year and I will not be able to determine what the resolution was until then.
    Pl see if any of these MOS Docs can help -
    788706.1 - Error Unable To Connect To Oracle Applications Database 'afscpgcs' After Cloning An APPS Instance & Changing APPS Passwords
    306235.1 - Launching A BIS Workbook Gives Unable To Connect To Oracle Applications Database (afscpgcs) Error
    459941.1 - Secure Ticket Connection Fails From e-Business Suite
    784358.1 - Connecting to Oracle EBS with Discoverer Fails with ORA-01017 Invalid Username/Password Error
    Try enabling tracing as noted in 370800.1 (How To Create An E-Business Suite Connection Trace For Discoverer 10g (10.1.2) Plus / Viewer) to see if you can find more details about the error.
    HTH
    Srini

  • Calling BUS3007 from VB6 application

    Hi,
    i´m triing to call ARAccount.GetBalancedItems from an VB Application. But the Call always ends with "Named Parameter not found!"
    Sample Code:
    Set mObj_Buch = mobj_Bapi.GetSAPObject("BUS3007")
    Set mobj_LineItem = mobj_Bapi.dimas(mObj_Buch, "GetBalancedItems", "LINEITEMS")
    mObj_Buch.GetBalancedItems COMP_CODE:=Typ_COMPANYCODE.str_COMPANYCODE, _
    CUSTOMER:=Typ_VENDOR.str_VENDOR, _
    Date_From:=Typ_KEYDATE.str_KEYDATE, _
    Date_To:=Typ_KEYDATE2.str_KEYDATE, _
    LINEITEMS:=mobj_LineItem
    Any help appreciated.
    Thanks,
    Uwe

    The servlet is part of the forms-installation on the application-server, on the local OC4J this is located in $ORACLE_HOME/forms/j2ee/formsapp.ear
    What exactly do you want to know about the servlet?

  • How to Call JSPDynPage from WD application?

    Hi Xperts,
    Can someone help me to call JSP Dyn Page from Web DynPro application.?
    Thanks in advance!!
    -Vishal

    Hi Vishal,
    Check the below link about JSP Dyn Page
    I have written a blog on JSP Dyn Pages, also check it
    /people/anil.dichpally/blog/2007/04/25/jsp-dyn-pages-with-an-example
    /thread/191892 [original link is broken] WebDynpro and JSPDynpage
    difference between Dynpage & JSPDynpage between Dynpage & JSPDynpage
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/471ce3617b14bce10000000a155369/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/cfa441cd47a209e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/cfa441cd47a209e10000000a155106/frameset.htm
    hope that helps.
    regards
    Anil

Maybe you are looking for

  • CTRL + C, CTRL + V - copy paste

    Hi, I created one menu ... in that for copy & paste i given short as CTRL+V , CTRL + C. But the problem is when i do CTRL+C CTRL+V systems defaults copy paste executing how can i sove this. Thanks in advance JOe

  • Playback is go then stop then go then stop...

    Not sure if this is the right place to post this but I'll give it a shot. I recently joined an educational investment service and they have "on-demand" classes. These are recorded classes of live classes that are viewable after the class is complete

  • Regarding Managed server in obiee11g

    Hi all, i have one managed server in weblogic domain. i have window service for admin server but for starting managed server i am using weblogic console . my concern is that when i start it after few days it gets down automatically. but admin server

  • Problem mit der weitergabe einer Sequenz von Permiere an den Media Encoder

    Wenn ich in Premiere Pro CC 2014 eine mov-Datei mit HD 1440*1080, prog. Pixelseitenverhältnis 1,333 importiere und in eine dementsprechende Sequenz einfüge, diese dann als h.264 exportiere ist alles in Ordnung, ich erhalte das gewünschte Ergebnis. Ge

  • Planning the physical layout of the database

    Our application keeps very large historical data for 1 year. We do not use the Partitioning Option but have created 12 different BIG TABLES, one for each month. We are wondering if for performance reason or any other reason, whether it is better to p