Bug 1381351

Summary: [abrt] criu: mount_resolve_path(): criu killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Mikko Tiihonen <mikko.tiihonen>
Component: criuAssignee: Adrian Reber <adrian>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: adrian, avagin, mikko.tiihonen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/a05e4288905b545ed6998769b696e5293e58f457
Whiteboard: abrt_hash:86ab5d14893829cd19bf6d7eac9e475bf72e5646;VARIANT_ID=server;
Fixed In Version: criu-2.7-2.fc24 criu-2.7-2.fc23 criu-2.7-2.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 23:24:18 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:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages
none
criu check core dump
none
An attempt to fix this bug none

Description Mikko Tiihonen 2016-10-03 19:33:56 UTC
Description of problem:


Version-Release number of selected component:
criu-2.5-1.fc24

Additional info:
reporter:       libreport-2.7.2
backtrace_rating: 4
cmdline:        criu check
crash_function: mount_resolve_path
executable:     /usr/sbin/criu
global_pid:     2751
kernel:         4.7.4-200.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 3
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 mount_resolve_path at criu/mount.c:213
 #1 phys_stat_resolve_dev at criu/mount.c:240
 #2 phys_stat_dev_match at criu/mount.c:256
 #3 unix_process_name at criu/sk-unix.c:565
 #4 unix_collect_one at criu/sk-unix.c:620
 #5 unix_receive_one at criu/sk-unix.c:692
 #6 nlmsg_receive at criu/libnetlink.c:45
 #7 do_rtnl_req at criu/libnetlink.c:119
 #8 do_collect_req at criu/sockets.c:610
 #9 collect_sockets at criu/sockets.c:636

Comment 1 Mikko Tiihonen 2016-10-03 19:34:02 UTC
Created attachment 1206963 [details]
File: backtrace

Comment 2 Mikko Tiihonen 2016-10-03 19:34:03 UTC
Created attachment 1206964 [details]
File: cgroup

Comment 3 Mikko Tiihonen 2016-10-03 19:34:05 UTC
Created attachment 1206965 [details]
File: core_backtrace

Comment 4 Mikko Tiihonen 2016-10-03 19:34:06 UTC
Created attachment 1206966 [details]
File: dso_list

Comment 5 Mikko Tiihonen 2016-10-03 19:34:08 UTC
Created attachment 1206967 [details]
File: environ

Comment 6 Mikko Tiihonen 2016-10-03 19:34:09 UTC
Created attachment 1206968 [details]
File: exploitable

Comment 7 Mikko Tiihonen 2016-10-03 19:34:11 UTC
Created attachment 1206969 [details]
File: limits

Comment 8 Mikko Tiihonen 2016-10-03 19:34:12 UTC
Created attachment 1206970 [details]
File: maps

Comment 9 Mikko Tiihonen 2016-10-03 19:34:14 UTC
Created attachment 1206971 [details]
File: mountinfo

Comment 10 Mikko Tiihonen 2016-10-03 19:34:15 UTC
Created attachment 1206972 [details]
File: namespaces

Comment 11 Mikko Tiihonen 2016-10-03 19:34:17 UTC
Created attachment 1206973 [details]
File: open_fds

Comment 12 Mikko Tiihonen 2016-10-03 19:34:18 UTC
Created attachment 1206974 [details]
File: proc_pid_status

Comment 13 Mikko Tiihonen 2016-10-03 19:34:20 UTC
Created attachment 1206975 [details]
File: var_log_messages

Comment 14 Adrian Reber 2016-10-07 06:35:30 UTC
Thanks for the bug report. Can you reproduce this error by running 'criu check' every time? I do not see the same error running 'criu check' and upstream would be interested if a fix can be verified. Thanks.

Comment 15 Mikko Tiihonen 2016-10-07 17:21:56 UTC
Yes. Running 'criu check' will crash always on that particular machine.

Comment 16 Mikko Tiihonen 2016-10-07 17:41:24 UTC
I also tried installing criu-2.6-1.fc26 from koji and it fails in the same function.

lsof tells that the file belongs to:
COMMAND: nmbd
TYPE: unix
DEVICE: 0xffff8800a01b0c00
NAME: /var/lib/samba/private/msg.sock/949 type=DGRAM

Comment 17 Andrew Vagin 2016-10-18 19:09:37 UTC
Mikko,

Could you attach a whole core file for this crash?

Comment 18 Mikko Tiihonen 2016-10-19 16:56:48 UTC
Created attachment 1212229 [details]
criu check core dump

Comment 19 Andrew Vagin 2016-10-19 18:24:27 UTC
What is a version of criu do you use? I need debug symbols to work with this core?
[root@fc24 core]# gdb -c criu.core
Missing separate debuginfo for the main executable file
Try: dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/10/05a860f819e0196800a0ec3c0cf4cf40b00d8d
Core was generated by `criu check'.
Program terminated with signal SIGSEGV, Segmentation fault.

[root@fc24 core]# dnf --enablerepo='*debug*' install /usr/lib/debug/.build-id/10/05a860f819e0196800a0ec3c0cf4cf40b00d8d
Last metadata expiration check: 0:02:24 ago on Wed Oct 19 21:21:37 2016.
No package /usr/lib/debug/.build-id/10/05a860f819e0196800a0ec3c0cf4cf40b00d8d available.
Error: Unable to find a match.

Comment 20 Mikko Tiihonen 2016-10-20 05:23:30 UTC
The attached coredump is done with http://koji.fedoraproject.org/koji/buildinfo?buildID=800516 by running on otherwise normal fc24 installation:
dnf install https://kojipkgs.fedoraproject.org//packages/criu/2.6/1.fc26/x86_64/criu-2.6-1.fc26.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/criu/2.6/1.fc26/x86_64/criu-debuginfo-2.6-1.fc26.x86_64.rpm

I just updated to http://koji.fedoraproject.org/koji/buildinfo?buildID=811135 and it too fails the same way. I can also go back to the original fc24 criu version if that helps you.

Comment 21 Andrew Vagin 2016-10-20 05:57:31 UTC
Created attachment 1212331 [details]
An attempt to fix this bug

Mikko, could you try out the attached patch?

Comment 22 Mikko Tiihonen 2016-10-20 10:48:34 UTC
Your patch fixes the problem. Excellent work!

Comment 24 Fedora Update System 2016-10-28 14:55:15 UTC
criu-2.7-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b4ed529ecb

Comment 25 Fedora Update System 2016-10-28 15:55:05 UTC
criu-2.7-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-547787c11b

Comment 26 Fedora Update System 2016-10-29 03:55:06 UTC
criu-2.7-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7122760d9c

Comment 27 Fedora Update System 2016-11-07 23:24:18 UTC
criu-2.7-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 28 Fedora Update System 2016-11-08 22:52:53 UTC
criu-2.7-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 29 Fedora Update System 2016-11-19 21:02:56 UTC
criu-2.7-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.