Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power


#Servers
#Opensource
 View Only
  • 1.  sudo hanging after terminal closed

    Posted 10 days ago
      |   view attached

    Hi all,

    If user is disrupted or closes laptop whilst sudo session is in progress, the session stays alive, and any other subsequent sudo commands stack up behind the initial offending session. I have comprehensive detail on the issue and the testing taken.

    Any help appreciated.

    - AIX oslevel -s; 7300-03-02-2546 and 7300-04-00-2546
    - sudo-1.9.17p2-1.ppc;
    - holder stack in sudo_term_restore_v1 tcsetattr ioctl;
    - waiter stacks in sudo_term_copy_v1 lockf64;
    - FD 16 mapping to /dev/tty;
    - absence of the /dev/ptc master from the SSH session;
    - hanging stty -a < /dev/pts/2;
    - proof that 15 unrelated sudo processes queued behind one abandoned session.

    Regards,

    Duncan



    ------------------------------
    Duncan Rodger
    ------------------------------

    Attachment(s)



  • 2.  RE: sudo hanging after terminal closed

    Posted 5 days ago

    Hi Duncan

    Thanks for reporting the issue.

    Is this issue can be reproduced with some of the simple steps or is it very specific to the user a008e9aa?

    I did try closing the running session terminal,  but didn't see the sudo hang with commands ran later.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: sudo hanging after terminal closed

    Posted 4 days ago

    Hi Sangamesh,

    Thanks for your reply. I am in the process of trying to recreate the error. I have once, but I need more than that. 

    I will be in touch once I can reproduce the error (more than once).

    Regards, Duncan



    ------------------------------
    Duncan Rodger
    ------------------------------



  • 4.  RE: sudo hanging after terminal closed

    Posted 4 days ago

    Hi Sangamesh,

    Today I reproduced the error, many times. 

    I have uploaded two files, one dated today, and one dated a couple of weeks ago when I started to log the case. It happens more regularly, as it can be fixed, but you need console access and root privs to do that.

    Let me know if you need more information.

    Regards

    Duncan



    ------------------------------
    Duncan Rodger
    ------------------------------



  • 5.  RE: sudo hanging after terminal closed

    Posted 2 hours ago

    Hi Duncan,

    While i try to reproduce this in my environment, is it possible for you to try running sudo with "Defaults !use_pty"?

    This is just for testing,  I wanted to see if the use_pty code path is somehow causing this issue.



    ------------------------------
    SANGAMESH
    ------------------------------