Current Position:Home > [help]a problem about dbx/attach a tuxedo service

[help]a problem about dbx/attach a tuxedo service

Update:11-30Source: network consolidation
Advertisement
I attempted to trace a Tuxedo service process via dbx/attach command:
attach nnnnwhen I attached dbx to the service PID, the service process is stopped somewhere outside my service program:
(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where
current thread: [email protected]
=>[1] __systemcall(0xffbfeda8, 0x31, 0x2, 0x10540c, 0x2cc0e8, 0x641dc), at 0xfe120080
  [2] _libc_msgrcv(0x10540c, 0x2cc0e8, 0x641dc, 0xc0000000, 0x0, 0x2ec), at 0xfe117928
  [3] msgrcv(0x10540c, 0x2cc0e8, 0x641dc, 0xc0000000, 0x0, 0x0), at 0xfe45dc40
  [4] _tmmbrecvm(0x0, 0xbdb0c, 0x2, 0xa, 0x0, 0x7), at 0xfe59b658
  [5] _tmmsgrcv(0xfffffffc, 0xfe5fdaa8, 0x0, 0xffff, 0xbf800, 0xb76c8), at 0xfe4bc1d0
  [6] _tmrcvrq(0xae608, 0xffbff38c, 0x22, 0x10000000, 0x1000, 0xc0000000), at 0xfe4f9738
  [7] _tmrunserver(0x0, 0x1400, 0x0, 0xfe5fdaa8, 0x0, 0xb76c8), at 0xfe4fe418
  [8] _tmstartserver(0x15, 0x1c00, 0x8b160, 0xae608, 0x0, 0x8af88), at 0xfe4d7530
  [9] main(0x15, 0xffbff4bc, 0xffbff514, 0x8b000, 0x0, 0x0), at 0x238f8However, I can not resume the service process either. when I use cont command, the dbx seems to stop there with no input prompt.
Has anyone debug a tuxedo serive in SunOS using dbx?How can I resume the server process If I want to print the local variables?Thank you in advance!
Edited by: angeloyu on Sep 16, 2008 8:02 PM

The Best Answer

Advertisement
angeloyu wrote:
I attempted to trace a Tuxedo service process via dbx/attach command:
attach nnnnwhen I attached dbx to the service PID, the service process is stopped somewhere outside my service program:
(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where
current thread: [email protected]
[9] main(0x15, 0xffbff4bc, 0xffbff514, 0x8b000, 0x0, 0x0), at 0x238f8
Judging by WS6U2 above, I assume you are using dbx 6.2, which is very, very old. Unless you need it to work on similarly old Solaris, please consider upgrading to Sun Studio 11 (supports Solaris 8) or Sun Studio 12 (supports Solaris 9+). Both are free and contain many improvements.
angeloyu wrote:
However, I can not resume the service process either. when I use cont command, the dbx seems to stop there with no input prompt.That's kind of expected behavior from the debugger - it resumes debuggee and sits there until debuggee generates some event (like hitting breakpoint or receiving a signal). Once dbx gets notified of this event, it presents details to the user and provides input prompt.
Did you put any breakpoints in (with stop command)? You'll also need to make sure breakpoint is reached by that service you are debugging.
Anyways, if all you need is to trace the service, it might be easier to use truss(1) command like this:
$ truss -p `pgrep Tuxedo`
  • [help]a problem about dbx/attach a tuxedo service Update:11-30

    I attempted to trace a Tuxedo service process via dbx/attach command: attach nnnnwhen I attached dbx to the service PID, the service process is stopped somewhere outside my service program: (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where current t

  • Debugging a tuxedo service using dbx Update:11-30

    Hi, Is is possible to debug a tuxedo service using dbx by enabing the tmboot switches and -g option of the compiler. I am able to step into tpsvrinit during initialisation, but not able to do when a client calls a service. I could not step into the s

  • Communication problems: A device attached to the system is not functioning. Update:10-11

    Hi all, I'm developing an applet and using the OMNIKEY 5321 CL reader for communication and testing. One of the requirements for our card is to read large binary data. For this purpose i used extented lenght APDU to read the data from card. When I te

  • Problem in sending attachment mail Update:10-11

    hi all i am using function module "SO_NEW_DOCUMENT_ATT_SEND_API1" i am facing problem in sending attachment .....if width of my text line is more than 255. pls guide me how to proceed furtherHi, See this thread. Re: How to email an attachment wi

  • Problem in file attachment functionality in ERP. Update:10-11

    Problem in file attachment functionality in ERP in Invoice Workbench and PO documents. The error is Page Not Found. Regards SridharPlease post the details of the application release, database version and OS. user11996389 wrote: Problem in file attach

  • I have a problem when running my own EJB as a TUXEDO service using WTC. Update:10-11

    Hello, I have a problem when running my own EJB as a TUXEDO service using WTC. I am using TUXEDO 8.1 and WL 9.1. When I am trying to run my own EJB as a TUXEDO service error appears. TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not find service T

  • Problem to connecte Tuxedo Service via WTC Update:11-30

    Hello, I'm new to WTC. I want to call a tuxedo service disposed in our serveur tuxedo by using WTC. I created Local APs, Remote APs and Imported for this Tuxedo Service. When I call I have always same erreur (perrno = 6) in tpcall See below my callin

  • Encountered problem when invoking a Tuxedo service Update:11-30

    Good day. I'm currently encountering a problem when trying to invoke a Tuxedo service from a JCS. The error is a LIBTUX_CAT:488 : ERROR: Invalid data pointer given to tpreturn(). The returned error message to the WLS console was "tpcall invocation fa

  • Problem with DRL Attachment Update:11-30

    Hi, I have a problem with DRL Attachment. In GSM Spec, when I try to attach a file (few Kb) in Supporting Document Section, upload works fine. But when I try to download attached file returns this error: Server Error in '/drl' Application. Microsoft.

  • Debugging  of Tuxedo Service in C/C++ Update:11-30

    Hi All, I am trying to debug tuxedo service (C code on HP-UNIX 11.00) in the following ways : shprod25 48: gdb csbfp001 -> csbfp001 is the application service exe (gdb) b GetRecircRow -> GetRecircRow is the function name (gdb) r Starting program: /a