Re: Unable to break into a PAM module

"Full Name" <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
   Thanks, that works too. Mind you, the SSH session is not properly started - I don't know why - but one can break into the relevant PAM module consistently.


-----Original Message-----
From: "Pedro Alves" [[email protected]]
Date: 01/22/2020 08:09 AM
To: "Full Name" <[email protected]>, [email protected]
Subject: Re: Unable to break into a PAM module

On 1/17/20 10:03 PM, Full Name wrote:
>      Well, I got it to work in the end. I would like to share what I did, in case it could be of use to someone.
> 
>      Just launching the SSH daemon from the debugger and setting breakpoints in the relevant PAM source code file won't usually work. This is because the SSH forks children processes, and gdb seems to unable to follow them properly. And, yes, I tried with the different 'set follow-*' commands in gdb.

For the next time, I suggest also trying "set detach-on-fork off",
and "set schedule-multiple on".

Thanks,
Pedro Alves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.