Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bad file descriptor errors from subprocess module in AIX #141659

Closed
Labels
@ayappanec

Description

@ayappanec

Bug report

Bug description:

# cat python-popen-script.pyimport subprocessp = subprocess.Popen(['ls', '-l'])# trace -a -x "./python python-popen-script.py"# trcrpt > capture_trcrpt# head -25 capture_trcrptMon Nov 17 02:43:50 2025System: AIX 7.2 Node: fvtvios10Machine: 00F905D14C00Internet Address: 0972E2D7 9.114.226.215At trace startup, the system contained 8 cpus, of which 8 were traced.Buffering: Kernel HeapThis is from a 64-bit kernel.Tracing all hooks.trace -a -x ./python python-popen-script.py     ID      ELAPSED_SEC     DELTA_MSEC   APPL    SYSCALL KERNEL  INTERRUPT101     0.000000000       0.000000           close LR = 101CB570104     0.000000345       0.000345           return from close. error EBADF [0 usec]101     0.000001187       0.000842           close LR = 101CB580104     0.000001523       0.000336           return from close. error EBADF [0 usec]101     0.000002361       0.000838           close LR = 101CB570104     0.000002705       0.000344           return from close. error EBADF [0 usec]101     0.000003541       0.000836           close LR = 101CB580104     0.000003884       0.000343           return from close. error EBADF [0 usec]101     0.000004734       0.000850           close LR = 101CB570104     0.000005080       0.000346           return from close. error EBADF [0 usec]101     0.000005919       0.000839           close LR = 101CB580104     0.000006253       0.000334           return from close. error EBADF [0 usec]# grep EBADF capture_trcrpt | wc -l21409

Looks like_posixsubprocess module uses/proc/self/fd which is not available in AIX. Instead/proc/<PID>/fd should be used in AIX.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp