Bug 1347293

Summary: [abrt] flatpak: mkdir_p_at_internal(): flatpak killed by SIGABRT
Product: [Fedora] Fedora Reporter: Alexander Kurtakov <akurtako>
Component: flatpakAssignee: David King <amigadave>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 24CC: alexl, amigadave, decathorpe, diogocamposwd
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/a368855000ac54def7108f4e22063fb252001419
Whiteboard: abrt_hash:ae25dd149018463843a4f9c3182a56554777d2ae;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-04 17:38:56 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: 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

Description Alexander Kurtakov 2016-06-16 13:07:50 UTC
Description of problem:
Run `flatpak --user update`

Version-Release number of selected component:
flatpak-0.6.4-1.fc24

Additional info:
reporter:       libreport-2.7.1
backtrace_rating: 4
cmdline:        flatpak --user update
crash_function: mkdir_p_at_internal
executable:     /usr/bin/flatpak
global_pid:     12145
kernel:         4.5.6-300.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #4 mkdir_p_at_internal at libglnx/glnx-shutil.c:215
 #5 glnx_shutil_mkdir_p_at at libglnx/glnx-shutil.c:281
 #6 _ostree_repo_cache_summary at src/libostree/ostree-repo-pull.c:1854
 #7 ostree_repo_pull_with_options at src/libostree/ostree-repo-pull.c:2187
 #8 ostree_repo_pull_one_dir at src/libostree/ostree-repo-pull.c:1773
 #9 ostree_repo_pull at src/libostree/ostree-repo-pull.c:1747
 #10 flatpak_dir_pull at common/flatpak-dir.c:1244
 #11 flatpak_dir_update at common/flatpak-dir.c:3118
 #12 do_update at app/flatpak-builtins-update.c:89
 #13 flatpak_builtin_update at app/flatpak-builtins-update.c:160

Comment 1 Alexander Kurtakov 2016-06-16 13:07:55 UTC
Created attachment 1168733 [details]
File: backtrace

Comment 2 Alexander Kurtakov 2016-06-16 13:07:57 UTC
Created attachment 1168734 [details]
File: cgroup

Comment 3 Alexander Kurtakov 2016-06-16 13:07:59 UTC
Created attachment 1168735 [details]
File: core_backtrace

Comment 4 Alexander Kurtakov 2016-06-16 13:08:00 UTC
Created attachment 1168736 [details]
File: dso_list

Comment 5 Alexander Kurtakov 2016-06-16 13:08:01 UTC
Created attachment 1168737 [details]
File: environ

Comment 6 Alexander Kurtakov 2016-06-16 13:08:03 UTC
Created attachment 1168738 [details]
File: limits

Comment 7 Alexander Kurtakov 2016-06-16 13:08:05 UTC
Created attachment 1168739 [details]
File: maps

Comment 8 Alexander Kurtakov 2016-06-16 13:08:07 UTC
Created attachment 1168740 [details]
File: mountinfo

Comment 9 Alexander Kurtakov 2016-06-16 13:08:09 UTC
Created attachment 1168741 [details]
File: namespaces

Comment 10 Alexander Kurtakov 2016-06-16 13:08:10 UTC
Created attachment 1168742 [details]
File: open_fds

Comment 11 Alexander Kurtakov 2016-06-16 13:08:12 UTC
Created attachment 1168743 [details]
File: proc_pid_status

Comment 12 Alexander Kurtakov 2016-06-16 13:08:13 UTC
Created attachment 1168744 [details]
File: var_log_messages

Comment 13 Alexander Kurtakov 2016-06-16 13:12:02 UTC
For the record - second attempt of the same command succeeded without problems.

Comment 14 Fabio Valentini 2016-08-02 08:38:03 UTC
Similar problem has been detected:

$ flatpak --user update

Output:

Updating application org.libreoffice.LibreOffice fresh

1 metadata, 0 content objects fetched; 569 B transferred in 1 seconds           
**
OSTree:ERROR:libglnx/glnx-shutil.c:215:mkdir_p_at_internal: assertion failed: (lastslash != NULL)
Aborted (core dumped)

This seems only to happen with libreoffice exclusively (at least with my configuration).

reporter:       libreport-2.7.2
backtrace_rating: 4
cmdline:        flatpak --user update
crash_function: mkdir_p_at_internal
executable:     /usr/bin/flatpak
global_pid:     4865
kernel:         4.6.4-301.fc24.x86_64
package:        flatpak-0.6.7-1.fc24
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reason:         flatpak killed by SIGABRT
runlevel:       N 5
type:           CCpp
uid:            1001

Comment 15 Alexander Kurtakov 2016-08-02 08:51:21 UTC
Raising priority as it's quite blocking real flatpak usage.

Comment 16 Alexander Larsson 2016-08-29 14:53:08 UTC
This is the issue:

Its trying to mkdirat (6, "summary") and getting ENOENT

This is due to:

6:/home/akurtakov/.local/share/flatpak/repo/tmp/cache (deleted)
pos:	0
flags:	02304000
mnt_id:	80


But why oh why is that directory deleted?

Comment 17 Alexander Larsson 2016-08-29 15:17:27 UTC
This is an ostree issue: https://github.com/ostreedev/ostree/pull/476

Comment 18 Fedora Update System 2016-08-31 07:12:00 UTC
ostree-2016.7-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4b3c8e53d5

Comment 19 Fedora Update System 2016-08-31 07:12:08 UTC
ostree-2016.7-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-cf0fd9b0ad

Comment 20 Fedora Update System 2016-08-31 07:12:14 UTC
ostree-2016.7-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e5f8e5e4ab

Comment 21 Fedora Update System 2016-08-31 16:23:15 UTC
ostree-2016.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-cf0fd9b0ad

Comment 22 Fedora Update System 2016-09-04 17:38:52 UTC
ostree-2016.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.

Comment 23 Fedora Update System 2016-09-06 22:22:53 UTC
ostree-2016.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 24 Fedora Update System 2016-09-09 16:53:06 UTC
ostree-2016.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.