Results 1 to 3 of 3

Thread: activation failure!How to debug icegridnode with gdb?

  1. #1
    ewiniar is offline Registered User
    Name: ewiniar
    Organization: soho
    Project: ssl vpn
    Join Date
    Jan 2006
    Posts
    30

    activation failure!How to debug icegridnode with gdb?

    I use
    icegridnode --Ice.Config=config.icegrid --warn
    to start icegrid,In another terminal ,I use
    icegridadmin --Ice.Config=config.icegrid
    to deploy my test program,when I run
    server start FwCmdOpManager
    to activate FwCmdOpManager server ,
    icegridnode report
    [ icegridnode: Server: changed server `FwCmdOpManager' state to `Activating' ]
    [ icegridnode: Activator: activating server `FwCmdOpManager'
    path = icebox
    pwd =
    args = icebox --Ice.Config=/home/ljs/NW/etc/../db/icegrid/node/servers/FwCmdOpManager/config/config --Ice.Default.Locator=NwIceGrid/Locator:tcp -h 127.0.0.1 -p 12000 --Ice.ServerId=FwCmdOpManager ]
    [ icegridnode: Activator: activated server `FwCmdOpManager' (pid = 11435) ]
    [ icegridnode: Server: changed server `FwCmdOpManager' state to `WaitForActivation' ]
    Try to start FwCmdOpServiceI
    adapter name: FwCmdOpManager created ok
    [ icegridnode: Activator: detected termination of server `FwCmdOpManager'
    signal = SIGSEGV ]
    [ icegridnode: Adapter: server `FwCmdOpManager' adapter `FwCmdOpManager.FwCmdOpManager.FwCmdOpManager' deactivated ],
    I find pid of icegridnode ,attach it with gdb,but I can't stace in my FwCmdOpManager server,How to debug icegridnode with gdb?

    Thanks !
    Regards!
    ------------------


    ewiniar Lee
    Software Engineer
    Company:THP Ltd.Co
    Project:Communication lib project

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Attaching the debugger to the icegridnode won't give you any traces from your server. Your server is a separate process and once it crashed with the segmentation fault (as indicated by the traces), it's already too late to attach the debugger. To investigate the issue you have several options:

    • Enable core files, get your server to crash again and use the debugger to get the stack trace of the crash from the core file created by your server.
    • Start your server under the debugger instead of using the node to activate the server. You'll have to pass the same command line options as the ones the icegridnode is using to start your server, these command line options are mentioned in the traces you posted.

    Hope this helps!

    Cheers,
    Benoit.

  3. #3
    ewiniar is offline Registered User
    Name: ewiniar
    Organization: soho
    Project: ssl vpn
    Join Date
    Jan 2006
    Posts
    30

    Thanks

    Thank you very much,Benoit.


    Regards

    ewiniar
    ------------------


    ewiniar Lee
    Software Engineer
    Company:THP Ltd.Co
    Project:Communication lib project

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to debug a icebox service .
    By fan in forum Help Center
    Replies: 2
    Last Post: 02-16-2011, 01:18 AM
  2. Replies: 4
    Last Post: 01-26-2010, 11:32 AM
  3. gdb a ice server 3.1.0
    By mutschaedi in forum Help Center
    Replies: 3
    Last Post: 07-25-2006, 01:07 PM
  4. Debug named profiles
    By griffima in forum Help Center
    Replies: 7
    Last Post: 10-18-2004, 11:59 AM
  5. how to debug ice?
    By clren in forum Help Center
    Replies: 2
    Last Post: 09-24-2003, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •