Skip to content

podman exec vs attach causes process crash : can't explain note- > pid diff #660

Description

@v-snap

Case :

podman create \
  --name ubuntu24 \
  --userns keep-id \
  --user 1000:1000 \
  --group-add keep-groups \
  --device nvidia.com/gpu=all \
  --network=host \
  --shm-size 8g \
  --security-opt label=disable \
  --security-opt apparmor=unconfined \
  --security-opt seccomp=unconfined \
  ubuntu:latest \
  bash

podman start ubuntu24

Problem

podman attach ubuntu24

`cargo install --force try-rs`  
........
 Compiling ratatui-macros v0.7.1
   Compiling ratatui v0.30.1
   Compiling try-rs v1.7.10
    Finished `release` profile [optimized] target(s) in 16.41s
   Replacing /home/ubuntu/.cargo/bin/try-rs
    Replaced package `try-rs v1.7.10` with `try-rs v1.7.10` (executable `try-rs`)
ubuntu@01HW2485848:~$ ps -ef
UID          PID    PPID  C STIME TTY          TIME CMD
ubuntu         1       0  0 19:59 pts/0    00:00:00 bash
ubuntu      3525       1  0 21:56 pts/0    00:00:00 ps -ef
ubuntu@01HW2485848:~$ 

podman exec -it ubuntu24 bash

`cargo install --force try-rs` 
........
   Compiling rustix v1.1.4
   Compiling critical-section v1.2.0
   Compiling log v0.4.32
   Compiling powerfmt v0.2.0
   Compiling scopeguard v1.2.0
   Compiling smallvec v1.15.1
   Compiling linux-raw-sys v0.12.1
   Compiling litrs v1.0.0
   Compiling utf8parse v0.2.2
   Compiling lock_api v0.4.14
   Compiling num_threads v0.1.7
Killedilding [=>                        ] 11/129: libc(build.rs), either, log, unicode-segmentation, rustix(build.rs), lock_api, num_threads, …
ubuntu@dbx:~$ ps -ef
UID          PID    PPID  C STIME TTY          TIME CMD
ubuntu         1       0  0 21:59 pts/0    00:00:00 bash
ubuntu       144       0  0 22:00 pts/1    00:00:00 bash
ubuntu       762     144  0 22:00 pts/1    00:00:00 ps -ef
ubuntu@dbx:~$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions