dtmci appears to hang

Bug #1411317 reported by Marvin Anderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Committed
Medium
Adriana Fuentes

Bug Description

When you su to the trafodion userid from another userid, ike root, and then try to run dtmci, it appears to hang. What is really happening is that stdout is not getting displayed so it looks like a hang this can be verified with the following commands

su trafodion
dtmci
<dtmci appears hung at this point>
exit

The 'exit' command will exit dtmci and return you to the Linux prompt thus proving dtmci is not hung but instead just not displaying stdout for some reason. It works find if you are logged in directly as the trafodion userid. It only does this behavior if you su from another userid.

Tags: dtm
Revision history for this message
Atanu Mishra (atanu-mishra) wrote :

Suggestion from Dave George --

Here's the fix (in SqlciMain.cpp):
@@ -232,7 +232,7 @@ Int32 main (Int32 argc, char *argv[])
   {
     file_init_attach(&argc, &argv, TRUE, (char *)"");
     msg_debug_hook("sqlci", "sqlci.hook");
- file_mon_process_startup(true);
+ file_mon_process_startup2(true, false);

To fix it in dtmci.cpp you need the following:
- msg_mon_process_startup(false);
+ msg_mon_process_startup3(false, false);

In both cases, this turns off ‘pipeio’ – which routes stdout thru the monitor.

Changed in trafodion:
assignee: nobody → Adriana Fuentes (adriana-fuentes)
Revision history for this message
Adriana Fuentes (adriana-fuentes) wrote :

Changes were made and committed to main branch. It was tested and dtmci does not hang anymore.

Changed in trafodion:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.