Package: fakeroot-ng
Version: 0.18-4.1
Severity: normal

As a small reproduction case (on amd64, using kernel 5.10.0-8-amd64):

daniel@frobnitz:/tmp$ cat asyncproc.py
import asyncio

async def task():
   proc = await asyncio.create_subprocess_exec('sleep', '1')
   await proc.wait()
   if proc.returncode != 0:
       raise RuntimeError('subprocess failed')

asyncio.run(task())
daniel@frobnitz:/tmp$ python3 asyncproc.py
daniel@frobnitz:/tmp$ fakeroot-ng python3 asyncproc.py

[1]+  Stopped                 fakeroot-ng python3 asyncproc.py
daniel@frobnitz:/tmp$ Unknown child process pid 34258, will report
returncode 255
Traceback (most recent call last):
 File "/tmp/asyncproc.py", line 9, in <module>
   asyncio.run(task())
 File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
   return loop.run_until_complete(main)
 File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in
run_until_complete
   return future.result()
 File "/tmp/asyncproc.py", line 7, in task
   raise RuntimeError('subprocess failed')
RuntimeError: subprocess failed

[1]+  Exit 1                  fakeroot-ng python3 asyncproc.py

-- 
Daniel Schepler

Reply via email to