Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Some tests in LldbGdbServer.py are flaky #341

Open
sas opened this issue May 12, 2016 · 4 comments
Open

Some tests in LldbGdbServer.py are flaky #341

sas opened this issue May 12, 2016 · 4 comments

Comments

@sas
Copy link
Contributor

sas commented May 12, 2016

Here's a failing test output: https://gist.github.com/sas/b0dcd8f59793a6801515a8e7d0d19c8e

@kokarez
Copy link
Contributor

kokarez commented May 12, 2016

Not fully sure, I've base my research on:

[20925][Target::Process::Attach] ERROR  : ptrace attach failed: Operation not permitted

This was weird until I've read that: Ubuntu PTrace Protection

From that doc, set ptrace_scope to 0 could solve this issue.

@sas
Copy link
Contributor Author

sas commented May 12, 2016

That's really surprising, given that all other tests work fine.

On Thu, May 12, 2016 at 3:27 PM, kokarez notifications@github.com wrote:

Not fully sure, I base my research on:

[20925][Target::Process::Attach] ERROR : ptrace attach failed: Operation not permitted

This was weird until I've read that: Ubuntu PTrace Protection
https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace_Protection

From that doc, set ptrace_scope to 0 could solve this issue.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#341 (comment)

Stephane Sezer

@kokarez
Copy link
Contributor

kokarez commented May 12, 2016

Yea, and it's an intermittent issue. But, I don't see how we can get a 'Operation not permitted' randomly on only one test

@sas
Copy link
Contributor Author

sas commented May 12, 2016

I'd expect a timing issue. Like we try attaching to something before we're
supposed to, or something like that.

I'd be really surprised if the value of ptrace_scope were to change
randomly during execution.

On Thu, May 12, 2016 at 3:40 PM, kokarez notifications@github.com wrote:

Yea, and it's an intermittent issue. But, I don't see how we can get a
'Operation not permitted' randomly on only one test


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#341 (comment)

Stephane Sezer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants