Bug 1672403

Summary: Rootless Podman segfaults when creating pods
Product: Red Hat Enterprise Linux 8 Reporter: Matthew Heon <mheon>
Component: podmanAssignee: Brent Baude <bbaude>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: ajia, ddarrah, dwalsh, igreen, jligon, jwboyer, lsm5, mheon, pthomas, smccarty, wchadwic, ypu
Target Milestone: rc   
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-14 01:32:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Heon 2019-02-04 21:00:05 UTC
Description of problem:

Rootless Podman segfaults when attempting to create a pod using the '--pod=new:' option for 'podman create' and 'podman run'


Version-Release number of selected component (if applicable):

podman 1.0.0

How reproducible:

100%

Steps to Reproduce:
1. As a normal user, run 'podman run -t -i --rm --pod=new:test1 fedora bash'

Actual results:

Podman segfaults

Expected results:

Podman successfully runs bash in a new container in a new pod

Additional info:

Works as expected for Podman as root

Originally tracked at https://github.com/containers/libpod/issues/2124

Comment 1 Matthew Heon 2019-02-04 21:01:58 UTC
This is a pretty nasty segfault, and in a feature we explicitly called out in the 1.0 release notes. It's fixed upstream, so a backport shouldn't be a problem.

Comment 4 Matthew Heon 2019-02-06 15:39:57 UTC
@Lokesh - backports to the 1.0 branch aren't done yet, will ping when they are available. The branch in question will definitely be https://github.com/containers/libpod/tree/v1.0 though

Comment 10 Joy Pu 2019-02-21 08:45:09 UTC
Can reproduce with podman-1.0.0-1.git82e8011.module+el8+2696+e59f0461.x86_64.rpm. And test with podman-1.0.0-2.git921f98f.module+el8+2784+9a0c1dfe.x86_64 the steps in comments #1 passed. So set this to verified. Details:
$ podman run -t -i --rm --pod=new:test1 fedora bash
[root@a6188878f326 /]# ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var