mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
platform/ptrace: return more detailed errors
Right now, if we can't create a stub process, we will see this error: panic: unable to activate mm: resource temporarily unavailable It would be better to know the root cause of this "resource temporarily unavailable". PiperOrigin-RevId: 255656831
This commit is contained in:
@@ -306,7 +306,7 @@ func (s *subprocess) createStub() (*thread, error) {
|
||||
arch.SyscallArgument{Value: 0},
|
||||
arch.SyscallArgument{Value: 0})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("creating stub process: %v", err)
|
||||
}
|
||||
|
||||
// Wait for child to enter group-stop, so we don't stop its
|
||||
@@ -325,7 +325,7 @@ func (s *subprocess) createStub() (*thread, error) {
|
||||
arch.SyscallArgument{Value: 0},
|
||||
arch.SyscallArgument{Value: 0})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("waiting on stub process: %v", err)
|
||||
}
|
||||
|
||||
childT := &thread{
|
||||
|
||||
Reference in New Issue
Block a user