Bug 1045810 - [abrt] systemd-204-17.fc19: journal_file_find_data_object_with_hash: Process /usr/lib/systemd/systemd-journald was killed by signal 7 (SIGBUS)
Summary: [abrt] systemd-204-17.fc19: journal_file_find_data_object_with_hash: Process ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:8db36f02fcf48309106777afe15...
: 1053292 1098722 1151848 1164427 1177726 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-22 07:16 UTC by Radwan Yahia
Modified: 2015-01-07 08:49 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-07 08:49:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (20.95 KB, text/plain)
2013-12-22 07:16 UTC, Radwan Yahia
no flags Details
File: cgroup (179 bytes, text/plain)
2013-12-22 07:16 UTC, Radwan Yahia
no flags Details
File: core_backtrace (3.99 KB, text/plain)
2013-12-22 07:16 UTC, Radwan Yahia
no flags Details
File: dso_list (1.51 KB, text/plain)
2013-12-22 07:16 UTC, Radwan Yahia
no flags Details
File: environ (191 bytes, text/plain)
2013-12-22 07:16 UTC, Radwan Yahia
no flags Details
File: exploitable (82 bytes, text/plain)
2013-12-22 07:16 UTC, Radwan Yahia
no flags Details
File: limits (1.29 KB, text/plain)
2013-12-22 07:17 UTC, Radwan Yahia
no flags Details
File: maps (16.82 KB, text/plain)
2013-12-22 07:17 UTC, Radwan Yahia
no flags Details
File: open_fds (2.55 KB, text/plain)
2013-12-22 07:17 UTC, Radwan Yahia
no flags Details
File: proc_pid_status (905 bytes, text/plain)
2013-12-22 07:17 UTC, Radwan Yahia
no flags Details
File: var_log_messages (556 bytes, text/plain)
2013-12-22 07:17 UTC, Radwan Yahia
no flags Details

Description Radwan Yahia 2013-12-22 07:16:38 UTC
Description of problem:
after re installing fedora I faced this problem.
I was thinking its HD or ram issue

Version-Release number of selected component:
systemd-204-17.fc19

Additional info:
reporter:       libreport-2.1.9
backtrace_rating: 4
cmdline:        /usr/lib/systemd/systemd-journald
crash_function: journal_file_find_data_object_with_hash
executable:     /usr/lib/systemd/systemd-journald
kernel:         3.11.9-200.fc19.x86_64
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 journal_file_find_data_object_with_hash at ../src/journal/journal-file.c:803
 #1 journal_file_append_data at ../src/journal/journal-file.c:958
 #2 journal_file_append_entry at ../src/journal/journal-file.c:1336
 #3 write_to_journal at ../src/journal/journald-server.c:476
 #4 dispatch_message_real at ../src/journal/journald-server.c:682
 #5 server_dispatch_message at ../src/journal/journald-server.c:776
 #6 stdout_stream_log at ../src/journal/journald-stream.c:130
 #7 stdout_stream_line at ../src/journal/journald-stream.c:231
 #8 stdout_stream_scan at ../src/journal/journald-stream.c:261
 #9 stdout_stream_process at ../src/journal/journald-stream.c:312

Comment 1 Radwan Yahia 2013-12-22 07:16:46 UTC
Created attachment 840271 [details]
File: backtrace

Comment 2 Radwan Yahia 2013-12-22 07:16:50 UTC
Created attachment 840272 [details]
File: cgroup

Comment 3 Radwan Yahia 2013-12-22 07:16:52 UTC
Created attachment 840273 [details]
File: core_backtrace

Comment 4 Radwan Yahia 2013-12-22 07:16:55 UTC
Created attachment 840274 [details]
File: dso_list

Comment 5 Radwan Yahia 2013-12-22 07:16:57 UTC
Created attachment 840275 [details]
File: environ

Comment 6 Radwan Yahia 2013-12-22 07:16:59 UTC
Created attachment 840276 [details]
File: exploitable

Comment 7 Radwan Yahia 2013-12-22 07:17:04 UTC
Created attachment 840277 [details]
File: limits

Comment 8 Radwan Yahia 2013-12-22 07:17:07 UTC
Created attachment 840278 [details]
File: maps

Comment 9 Radwan Yahia 2013-12-22 07:17:12 UTC
Created attachment 840279 [details]
File: open_fds

Comment 10 Radwan Yahia 2013-12-22 07:17:14 UTC
Created attachment 840280 [details]
File: proc_pid_status

Comment 11 Radwan Yahia 2013-12-22 07:17:17 UTC
Created attachment 840281 [details]
File: var_log_messages

Comment 12 Zbigniew Jędrzejewski-Szmek 2014-07-23 02:46:46 UTC
Sorry for the slow response. Yes, mmaped files cause segfaults on IO. Not much we can do about this without kernel changes.

Comment 13 Lennart Poettering 2015-01-05 00:38:32 UTC
*** Bug 1177726 has been marked as a duplicate of this bug. ***

Comment 14 Lennart Poettering 2015-01-05 00:38:49 UTC
*** Bug 1164427 has been marked as a duplicate of this bug. ***

Comment 15 Lennart Poettering 2015-01-05 00:39:17 UTC
*** Bug 1151848 has been marked as a duplicate of this bug. ***

Comment 16 Lennart Poettering 2015-01-05 00:39:21 UTC
*** Bug 1098722 has been marked as a duplicate of this bug. ***

Comment 17 Lennart Poettering 2015-01-05 00:42:35 UTC
I now added some code to journald git, that catches SIGBUS, remaps the triggering page to an anonymous page, then detects this afterwards and rotates the file away.

This should make us more robust on file systems where overwriting bytes in a file can fail due to disk full, such as COW file systems (btrfs).

Comment 18 Lennart Poettering 2015-01-05 02:35:47 UTC
*** Bug 1053292 has been marked as a duplicate of this bug. ***

Comment 19 Jan Synacek 2015-01-07 08:49:14 UTC
http://cgit.freedesktop.org/systemd/systemd/commit/?id=fa6ac76083b8ffc1309876459f54f9f0e2843731

This patch is nontrivial to backport, even to F20.


Note You need to log in before you can comment on or make changes to this bug.