The way I have debugged these cryptic tooltalk messages before is by doing a bulk replace of "return TT_ERR_*" with something like > fprintf(stderr, __FILE__ ":%d is going TT_ERR_BLANK!\n", __LINE__); return > TT_ERR_BLANK;
(better would probably be: _tt_syslog(stderr, LOG_ERR, blahblahblah) instead of fprintf) this allows one to at least find where the error comes from. However, since I have the benefit of hindsight, what we should really do is to define a macro like TT_ERR(errname) which logs the errname with file and line location and then returns the tooltalk error; then replace all of the ordinary returns with this. EG here we can replace all the TT_ERR_PROCID with this macro. Then we can actually commit this nice debugging code. Then if you run both your program and ttsession under a terminal [you can kill the running one first], you should definitely find out where the error comes from and hopefully the problem is now debuggable. [i can write this first "debugging" patch when I am free if you do not really want to] As far as rpc.ttdbserver, I am under the impression it does not affect normal desktop activity much, I don't think I'm even running it currently. On Sun, Aug 19, 2012 at 3:23 PM, Marcin Cieslak <sa...@saper.info> wrote: > Seems like I have to run dtmail both setuid root > and setgid mail (with setgid only I get a well > known error), but here is something different: > > After I go to Mailbox -> Mail Options and then "Apply" > I get the dialog box saying: > > Action: Mailer[Error] > > The request to service this action has failed for > the following reason: > > TT_ERR_PROCID The process id passed is not valid > > I have a current /etc/tt/types.xdr installed. > > Here's what is in the "ttsession -t" output: > > tt_message_send: > TT_CREATED TT_PROCEDURE TT_NOTICE (TT_DISCARD in TT_SESSION): 0 == > TT_OK > id: 9 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > op: DtActivity_Beginning > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808] > TT_CREATED => TT_SENT: > TT_SENT TT_PROCEDURE TT_NOTICE (TT_DISCARD in TT_SESSION): 0 > == TT_OK > id: 9 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: DtActivity_Beginning > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808@localhost] > Tt_message & Tt_pattern { > timestamp: 0 > id: 0:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_OBSERVE > classes: TT_NOTICE > states: TT_SENT > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: DtTypes_Reloaded DtActivity_Began > DtActivity_Beginning > } == 5; > Tt_message => 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > [3808@localhost] > tt_message_send: > TT_CREATED TT_PROCEDURE TT_REQUEST (TT_DISCARD in TT_SESSION): 0 == > TT_OK > id: 10 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > op: Display > args: > TT_IN RFC_822_MESSAGE: "DTMAIL_INBOX\000" > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808] > TT_CREATED => TT_SENT: > TT_SENT TT_PROCEDURE TT_REQUEST (TT_DISCARD in TT_SESSION): 0 > == TT_OK > id: 10 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: Display > args: > TT_IN RFC_822_MESSAGE: "DTMAIL_INBOX\000" > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808@localhost] > Tt_message & ptype RFC_822_Message { > handle: session Display(in RFC_822_Message contents, in title > docName) => start opnum=3; > } == 0; /* args*/ > Tt_message & ptype RFC_822_Message { > handle: session Display(in RFC_822_Message contents) => start > opnum=1; > } == 0; /* args*/ > Tt_message & ptype DTPAD { > handle: session Display(in ALL contents, in messageID > counterfoil, in title docName) => start opnum=4; > } == 0; /* args*/ > Tt_message & ptype DTPAD { > handle: session Display(in ALL contents, in title docName) => > start opnum=3; > } == 0; /* args*/ > Tt_message & ptype DTPAD { > handle: session Display(in ALL contents, in messageID > counterfoil) => start opnum=2; > } == 0; /* args*/ > Tt_message & ptype DTPAD { > handle: session Display(in ALL contents) => start opnum=1; > } == 3; > Tt_message & ptype DT_File_Manager { > handle: session Display(in DT_NETFILE contents, in messageID > counterfoil, in title docName) => start opnum=1004; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in DT_NETFILE contents, in title > docName) => start opnum=1003; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in DT_NETFILE contents, in messageID > counterfoil) => start opnum=1002; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in DT_NETFILE contents) => start > opnum=1001; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in FILE_NAME contents, in messageID > counterfoil, in title docName) => start opnum=4; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in FILE_NAME contents, in title > docName) => start opnum=3; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in FILE_NAME contents, in messageID > counterfoil) => start opnum=2; > } == 0; /* args*/ > Tt_message & ptype DT_File_Manager { > handle: session Display(in FILE_NAME contents) => start > opnum=1; > } == 0; /* args*/ > Tt_message & ptype RFC_822_MESSAGE { > handle: session Display(in RFC_822_MESSAGE contents, in title > docName) => start opnum=3; > } == 0; /* args*/ > Tt_message & ptype RFC_822_MESSAGE { > handle: session Display(in RFC_822_MESSAGE contents) => start > opnum=1; > } == 4; > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in Sun_CM_Appointment contents, in > messageID counterfoil, in title docName) => start opnum=1004; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in Sun_CM_Appointment contents, in > title docName) => start opnum=1003; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in Sun_CM_Appointment contents, in > messageID counterfoil) => start opnum=1002; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in Sun_CM_Appointment contents) => > start opnum=1001; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in DT_APPOINTMENT contents, in > messageID counterfoil, in title docName) => start opnum=4; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in DT_APPOINTMENT contents, in title > docName) => start opnum=3; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in DT_APPOINTMENT contents, in > messageID counterfoil) => start opnum=2; > } == 0; /* args*/ > Tt_message & ptype Dt_AppointmentEditor { > handle: session Display(in DT_APPOINTMENT contents) => start > opnum=1; > } == 0; /* args*/ > TT_SENT => TT_STARTED: > TT_STARTED TT_PROCEDURE TT_REQUEST (TT_START in TT_SESSION): > 0 == TT_OK > id: 10 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: Display > args: > TT_IN RFC_822_MESSAGE: "DTMAIL_INBOX\000" > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808@localhost] > opnum: 1 > handler_ptype: RFC_822_MESSAGE > Tt_message => 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > [3808@localhost] > execv("/bin/sh -c dtmail -t");Tt_message => 5.1GCJay 01 3800 > 1342177280 1 1 169 127.0.0.1 4 [3881@localhost] > tt_message_send: > TT_CREATED TT_PROCEDURE TT_NOTICE (TT_DISCARD in TT_SESSION): 0 == > TT_OK > id: 0 5.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > op: Started > args: > TT_IN string: "DTMAIL" > TT_IN string: "SunSoft" > TT_IN string: "%I" > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [0/10] 5.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 > 4 [3881] > TT_CREATED => TT_SENT: > TT_SENT TT_PROCEDURE TT_NOTICE (TT_DISCARD in TT_SESSION): 0 > == TT_OK > id: 0 5.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: Started > args: > TT_IN string: "DTMAIL" > TT_IN string: "SunSoft" > TT_IN string: "%I" > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [0/10] 5.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3881@localhost] > tt_message_send: > TT_CREATED TT_HANDLER TT_NOTICE (TT_DISCARD in TT_SESSION): 0 == TT_OK > id: 1 5.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > op: Status > args: > TT_IN string: "Accepting request" > TT_IN string: "DTMAIL" > TT_IN string: "SunSoft" > TT_IN string: "%I" > TT_IN messageID: "10 2.1GCJay 01 3800 1342177280 1 1 169 > 1"[...] > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [0/10] 5.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 > 4 [3881] > sender_ptype: MAIL_TYPE > handler: 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 [0] > TT_CREATED => TT_SENT: > TT_SENT TT_HANDLER TT_NOTICE (TT_DISCARD in TT_SESSION): 0 == > TT_OK > id: 1 5.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: Status > args: > TT_IN string: "Accepting request" > TT_IN string: "DTMAIL" > TT_IN string: "SunSoft" > TT_IN string: "%I" > TT_IN messageID: "10 2.1GCJay 01 3800 1342177280 1 1 > 169 1"[...] > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [0/10] 5.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3881@localhost] > sender_ptype: MAIL_TYPE > handler: 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 > 4 [0] > Tt_message & Tt_pattern { > timestamp: 0 > id: 16:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_OBSERVE > classes: TT_NOTICE > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: Status > args: > TT_IN string: (null) > TT_IN string: (null) > TT_IN string: (null) > TT_IN string: (null) > TT_IN messageID: "10 2.1GCJay 01 3800 1342177280 1 1 > 169 1"[...] > } == 21; > Tt_message & Tt_pattern { > timestamp: 0 > id: 15:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_HANDLE > classes: TT_REQUEST > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: Get_XInfo > args: > TT_OUT string: (null) > TT_OUT string: (null) > TT_OUT integer: (null) > TT_IN messageID: "10 2.1GCJay 01 3800 1342177280 1 1 > 169 1"[...] > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 14:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_HANDLE > classes: TT_REQUEST > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: Get_Geometry > args: > TT_OUT width: (null) > TT_OUT height: (null) > TT_OUT xOffset: (null) > TT_OUT yOffset: (null) > TT_IN messageID: "10 2.1GCJay 01 3800 1342177280 1 1 > 169 1"[...] > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 13:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_HANDLE > classes: TT_REQUEST > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: Deposit > args: > TT_IN RFC_822_MESSAGE: (null) > TT_IN messageID: "10 2.1GCJay 01 3800 1342177280 1 1 > 169 1"[...] > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 4:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_HANDLE > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: _DtActDtexecDone > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 3:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_HANDLE > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: _DtActDtexecID > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 2:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_OBSERVE > classes: TT_NOTICE > states: TT_SENT > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: DtWorkspace_Modified > args: > TT_IN string: "0" > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 1:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_HANDLE > classes: TT_REQUEST > states: TT_SENT > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: GetWsmClients DtWorkspace_Delete > DtWorkspace_Add DtWorkspace_Title_Set DtWorkspace_SetCurrent DtPanel_Restore > } == 0; /* op */ > Tt_message & Tt_pattern { > timestamp: 0 > id: 0:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_OBSERVE > classes: TT_NOTICE > states: TT_SENT > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: DtTypes_Reloaded DtActivity_Began > DtActivity_Beginning > } == 0; /* op */ > Tt_message => 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > [3808@localhost] > tt_message_send: > TT_CREATED TT_PROCEDURE TT_NOTICE (TT_DISCARD in TT_SESSION): 0 == > TT_OK > id: 11 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > op: DtActivity_Began > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808] > TT_CREATED => TT_SENT: > TT_SENT TT_PROCEDURE TT_NOTICE (TT_DISCARD in TT_SESSION): 0 > == TT_OK > id: 11 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: DtActivity_Began > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808@localhost] > Tt_message & Tt_pattern { > timestamp: 0 > id: 0:2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > category: TT_OBSERVE > classes: TT_NOTICE > states: TT_SENT > scopes: TT_SESSION > sessions: P 01 3800 1342177280 1 1 169 127.0.0.1 4 > ops: DtTypes_Reloaded DtActivity_Began > DtActivity_Beginning > } == 5; > Tt_message => 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > [3808@localhost] > TT_ERR_PROCID: > TT_STARTED => TT_FAILED: > TT_FAILED TT_PROCEDURE TT_REQUEST (TT_START in TT_SESSION): > 1042 == TT_ERR_PROCID > id: 10 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: Display > args: > TT_IN RFC_822_MESSAGE: "DTMAIL_INBOX\000" > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808@localhost] > opnum: 1 > handler: 5.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 > 4 [3881@localhost] > handler_ptype: RFC_822_MESSAGE > Tt_message => 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > [3808@localhost] > > Here's s ps output: > > PID TT STAT TIME COMMAND > 3799 ?? Ss 0:00.00 ssh-agent /usr/dt/bin/dtsession > 3808 ?? Ss 0:01.01 dtwm > 3809 ?? Ss 0:01.97 /usr/dt/bin/dtterm -session dtGOXkAL > 2931 v1 I 0:00.03 -ksh93 (ksh93) > 3766 v1 I+ 0:00.00 /bin/sh /usr/home/saper/bin/startcde > 3767 v1 I+ 0:00.01 /bin/sh /usr/local/bin/startx > /usr/home/saper/bin/mydtsession > 3785 v1 I+ 0:00.00 xinit /usr/home/saper/bin/mydtsession -- > /usr/local/bin/X :0 -auth /usr/home/saper/.serverauth.3767 > 3793 v1 I 0:00.00 sh /usr/home/saper/bin/mydtsession > 3797 v1 I 0:00.01 tee /usr/home/saper/tt.log > 3798 v1 I 0:00.06 /usr/dt/bin/dtsession > 3800 v1 I 0:00.07 /usr/dt/bin/ttsession -t > 3810 p0 Ss 0:00.01 /usr/local/bin/ksh93 > 3910 p0 R+ 0:00.00 ps U saper > 3831 p1 Is+ 0:00.01 /usr/local/bin/ksh93 > 3874 p2 Is 0:00.00 /usr/local/bin/ksh93 > 3875 p2 I+ 0:00.07 ssh l > > My user ID is 169. > > I am also having similar message when trying to save file from dtpad: > > TT_ERR_PROCID: > TT_STARTED => TT_FAILED: > TT_FAILED TT_PROCEDURE TT_REQUEST (TT_START in TT_SESSION): > 1042 == TT_ERR_PROCID > id: 16 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 > op: Instantiate > args: > TT_IN C_STRING: (null) > session: 01 3800 1342177280 1 1 169 127.0.0.1 4 > sender: [169/10] 2.1GCJay 01 3800 1342177280 1 1 169 > 127.0.0.1 4 [3808@localhost] > opnum: 401 > handler: 9.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 > 4 [3952@localhost] > handler_ptype: DTPAD > Tt_message => 2.1GCJay 01 3800 1342177280 1 1 169 127.0.0.1 4 > [3808@localhost] > > I know my rpc.ttdbserver has problems running from inetd.conf since > it does not accept IPv6 connections; trying to run standalone > (/usr/dt/bin/rpc.ttdbserver as root). > > Any hints? > > //Marcin > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel