Bug 1805017

Summary: fuse-overlayfs segfault [stream-container-tools-rhel8-rhel-8.2.0/fuse-overlayfs]
Product: Red Hat Enterprise Linux 8 Reporter: Jindrich Novy <jnovy>
Component: fuse-overlayfsAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: ajia, ddarrah, jnovy, lmiksik, lsm5, tsweeney
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fuse-overlayfs-0.7.2-5.el8, container-tools-rhel8-8020020200319160326.0d58ad57 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 15:53:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1804849    

Description Jindrich Novy 2020-02-20 06:00:47 UTC
This is a tracking bug assuring the fix for [bug 1804849] gets applied in stream-container-tools-rhel8-rhel-8.2.0 branch of fuse-overlayfs.

Comment 4 Alex Jia 2020-02-21 09:38:47 UTC
I can reproduce this bug in podman-1.6.4-4.module+el8.2.0+5766+7cb5dfc5.x86_64
w/ fuse-overlayfs-0.7.2-2.module+el8.2.0+5768+3759792f.x86_64, and it works well
for fuse-overlayfs-0.7.2-3.module+el8.2.0+5808+3aafbc8f.x86_64 w/o abrting and
crashing.

[ajia@kvm-08-guest15 ~]$ id
uid=1001(ajia) gid=1001(ajia) groups=1001(ajia) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[ajia@kvm-08-guest15 ~]$ podman unshare cat /proc/self/uid_map
         0       1001          1
         1     165536      65536

1. in fuse-overlayfs-0.7.2-2.module+el8.2.0+5768+3759792f

[ajia@kvm-08-guest15 ~]$ podman run ohpc-gnu9-easybuild:1.9.9 'eb --robot lz4-1.9.2-GCCcore-8.3.0.eb'
== temporary log file in case of crash /tmp/eb-5lw21ryf/easybuild-0u_4m65b.log
== resolving dependencies ...
== processing EasyBuild easyconfig /opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/easybuild/easyconfigs/m/M4/M4-1.4.18.eb
== building and installing M4/1.4.18...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
ERROR: Traceback (most recent call last):
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/base/fancylogger.py", line 585, in logToFile
    os.makedirs(directory)
  File "/usr/lib64/python3.6/os.py", line 220, in makedirs
FileExistsError: [Errno 17] File exists: '/tmp/eb-5lw21ryf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/main.py", line 113, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 3206, in build_and_install_one
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/framework/easyblock.py", line 296, in close_log
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/base/fancylogger.py", line 588, in logToFile
    raise_with_traceback(exc, "Cannot create logdirectory %s: %s \n detail: %s" % (directory, ex, detail), tb)
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/tools/py2vs3/py3.py", line 75, in raise_with_traceback
  File "/opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/lib/python3.6/site-packages/easybuild/base/fancylogger.py", line 585, in logToFile
    os.makedirs(directory)
  File "/usr/lib64/python3.6/os.py", line 220, in makedirs
FileExistsError: Cannot create logdirectory /tmp/eb-5lw21ryf: [Errno 17] File exists: '/tmp/eb-5lw21ryf'
 detail: [Errno 17] File exists: '/tmp/eb-5lw21ryf'


[ajia@kvm-08-guest15 ~]$ cat /var/log/messages

---------8<---------
Feb 21 04:13:38 kvm-08-guest15 systemd[1]: Started Process Core Dump (PID 287045/UID 0).
Feb 21 04:13:39 kvm-08-guest15 systemd-coredump[287046]: Process 282511 (fuse-overlayfs) of user 1001 dumped core.#012#012Stack trace of thread 282511:#012#0  0x000000000040d5c0 hash_get_first (fuse-overlayfs)#012#1  0x0000000000405074 count_dir_entries (fuse-overlayfs)#012#2  0x000000000040c1cc do_rm (fuse-overlayfs)#012#3  0x00007f1ca274cafa fuse_session_process_buf_int (libfuse3.so.3)#012#4  0x00007f1ca2747f5b fuse_session_loop (libfuse3.so.3)#012#5  0x0000000000403835 main (fuse-overlayfs)#012#6  0x00007f1ca1f726a3 __libc_start_main (libc.so.6)#012#7  0x00000000004038ee _start (fuse-overlayfs)
---------8<---------

2. in fuse-overlayfs-0.7.2-3.module+el8.2.0+5808+3aafbc8f

[ajia@kvm-08-guest15 ~]$ podman run ohpc-gnu9-easybuild:1.9.9 'eb --robot lz4-1.9.2-GCCcore-8.3.0.eb'
ERROR: Build of /opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/easybuild/easyconfigs/b/binutils/binutils-2.32.eb failed (err: 'build failed (first 300 chars): cmd " env LIBS=\'-Wl,-rpath=/usr/lib -Wl,-rpath=/usr/lib64\'  make -j 2  CFLAGS="-g -O2 -fPIC" " exited with exit code 2 and output:\nmake[1]: Entering directory \'/home/openhpc/.local/easybuild/build/binutils/2.32/system-system/binutils-2.32\'\nConfiguring in ./libiberty\nConfiguring in ./intl\nconfigure: ')
== temporary log file in case of crash /tmp/eb-_2jpjrt8/easybuild-ux7phtho.log
== resolving dependencies ...
== processing EasyBuild easyconfig /opt/ohpc/pub/libs/easybuild/4.1.1/software/EasyBuild/4.1.1/easybuild/easyconfigs/m/M4/M4-1.4.18.eb
== building and installing M4/1.4.18...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
== building...
== testing...
== installing...

...ignore...

== configuring...
== building...
== FAILED: Installation ended unsuccessfully (build directory: /home/openhpc/.local/easybuild/build/binutils/2.32/system-system): build failed (first 300 chars): cmd " env LIBS='-Wl,-rpath=/usr/lib -Wl,-rpath=/usr/lib64'  make -j 2  CFLAGS="-g -O2 -fPIC" " exited with exit code 2 and output:
make[1]: Entering directory '/home/openhpc/.local/easybuild/build/binutils/2.32/system-system/binutils-2.32'
Configuring in ./libiberty
Configuring in ./intl
configure:  (took 1 min 14 sec)
== Results of the build can be found in the log file(s) /tmp/eb-_2jpjrt8/easybuild-binutils-2.32-20200221.092719.acCFc.log

Comment 8 Alex Jia 2020-03-26 03:18:07 UTC
please also see https://bugzilla.redhat.com/show_bug.cgi?id=1804849#c16

Comment 9 Tom Sweeney 2020-03-26 21:47:51 UTC
Alex I'm a little confused about your prior comment.  The link you provided points to the same issue in another stream that has been verified.  Has this stream also been verified and if so, can you update this BZ as appropriate please?

Comment 10 Alex Jia 2020-03-30 03:43:59 UTC
(In reply to Tom Sweeney from comment #9)
> Alex I'm a little confused about your prior comment.  The link you provided
> points to the same issue in another stream that has been verified.  Has this
> stream also been verified and if so, can you update this BZ as appropriate
> please?

Because this bug is a tracker, I only added comment in here, I will close it
as verified now.

Comment 12 errata-xmlrpc 2020-04-28 15:53:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1650