[gem5-dev] Re: Possible race condition (Remote GDB)

2020-08-07 Thread Boris Shingarov via gem5-dev
m5-dev" Date: 08/07/2020 04:34AM Cc: "Boris Shingarov" , "Gabe Black" Subject: [gem5-dev] Re: Possible race condition (Remote GDB) I think this code was originally written by Nate who is no longer with us. Looking at it, what I *think* it's doing starts in listen()

[gem5-dev] Re: Possible race condition (Remote GDB)

2020-08-07 Thread Gabe Black via gem5-dev
I think this code was originally written by Nate who is no longer with us. Looking at it, what I *think* it's doing starts in listen(). That sets up a poll queue event which listens for connection from gdb. When that gets triggered, that (slightly indirectly) calls connect which will check if someb

[gem5-dev] Re: Possible race condition (Remote GDB)

2020-08-06 Thread Boris Shingarov via gem5-dev
It gets worse: I am beginning to suspect that this race is what ultimately causes the "xml for the wrong xlen" mystery (if the timing is unlucky, the CSPR isn't set yet). -"Boris Shingarov via gem5-dev" wrote: - To: gem5-dev@gem5.org From: "Boris Shingarov via gem5-dev" Date: 08/06/202