Bug 1324209 - [abrt] storaged: strstr(): storaged killed by SIGSEGV
Summary: [abrt] storaged: strstr(): storaged killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: storaged
Version: 7.2
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Smetana
QA Contact: Barry Donahue
URL:
Whiteboard: abrt_hash:cce1240a2b4c6ee399b25420f63...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-05 20:18 UTC by Johnray Fuller
Modified: 2021-09-03 14:10 UTC (History)
1 user (show)

Fixed In Version: storaged-2.2.0-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-04 13:49:00 UTC
Target Upstream Version:


Attachments (Terms of Use)
File: backtrace (37.59 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: cgroup (180 bytes, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: core_backtrace (17.13 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: dso_list (2.79 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: environ (2.28 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: limits (1.29 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: machineid (135 bytes, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: maps (14.34 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: open_fds (988 bytes, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details
File: proc_pid_status (1.03 KB, text/plain)
2016-04-05 20:18 UTC, Johnray Fuller
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1571 0 normal SHIPPED_LIVE storaged bug fix and enhancement update 2016-08-04 17:45:59 UTC

Description Johnray Fuller 2016-04-05 20:18:09 UTC
Description of problem:
Every time I start the storaged service with systemd, it segfaults. I also can reproduce the error by simply running /usr/libexec/storaged/storaged in a root terminal.

#  /usr/libexec/storaged/storaged 
16:12:39.885:[20329]:[NOTICE]: storaged daemon version 2.2.0 starting [main.c:153, main()]
16:12:39.888:[20329]:[DEBUG]: Entering main event loop [main.c:178, main()]
16:12:39.905:[20329]:[DEBUG]: Modules unloading, detaching interfaces... [storagedlinuxprovider.c:481, ensure_modules()]
16:12:39.905:[20329]:[DEBUG]: Performing coldplug... [storagedlinuxprovider.c:503, ensure_modules()]
16:12:39.915:[20329]:[DEBUG]: uevent add /sys/devices/virtual/block/dm-0 [storagedlinuxprovider.c:1183, storaged_linux_provider_handle_uevent()]
16:12:39.916:[20329]:[DEBUG]: Looking for x-parent=44ccdd40-810a-4b83-9ad7-89be3af70c8d [storagedlinuxblock.c:834, find_configurations()]
Segmentation fault (core dumped)

I can reproduce this issue at will if you need further debugging.

This particular instance, I passed the --disable-modules flag, but it happens with or without that flag in place.

Version-Release number of selected component:
storaged-2.2.0-3.el7

Additional info:
reporter:       libreport-2.1.11
backtrace_rating: 4
cmdline:        /usr/libexec/storaged/storaged --disable-modules 
crash_function: strstr
executable:     /usr/libexec/storaged/storaged
global_pid:     28685
kernel:         3.10.0-327.13.1.el7.x86_64
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 strstr at /lib64/libc.so.6
 #1 storaged_linux_find_child_configuration at storagedlinuxblock.c:813
 #4 storaged_linux_encrypted_update at storagedlinuxencrypted.c:114
 #6 encrypted_update at storagedlinuxblockobject.c:704
 #7 update_iface at storagedlinuxblockobject.c:394
 #8 storaged_linux_block_object_uevent at storagedlinuxblockobject.c:808
 #9 storaged_linux_block_object_constructed at storagedlinuxblockobject.c:236
 #10 g_object_new_internal at /lib64/libgobject-2.0.so.0
 #11 g_object_new_valist at /lib64/libgobject-2.0.so.0
 #13 storaged_linux_block_object_new at storagedlinuxblockobject.c:308

Comment 1 Johnray Fuller 2016-04-05 20:18:11 UTC
Created attachment 1143997 [details]
File: backtrace

Comment 2 Johnray Fuller 2016-04-05 20:18:12 UTC
Created attachment 1143998 [details]
File: cgroup

Comment 3 Johnray Fuller 2016-04-05 20:18:13 UTC
Created attachment 1143999 [details]
File: core_backtrace

Comment 4 Johnray Fuller 2016-04-05 20:18:15 UTC
Created attachment 1144000 [details]
File: dso_list

Comment 5 Johnray Fuller 2016-04-05 20:18:15 UTC
Created attachment 1144001 [details]
File: environ

Comment 6 Johnray Fuller 2016-04-05 20:18:16 UTC
Created attachment 1144002 [details]
File: limits

Comment 7 Johnray Fuller 2016-04-05 20:18:17 UTC
Created attachment 1144003 [details]
File: machineid

Comment 8 Johnray Fuller 2016-04-05 20:18:18 UTC
Created attachment 1144004 [details]
File: maps

Comment 9 Johnray Fuller 2016-04-05 20:18:19 UTC
Created attachment 1144005 [details]
File: open_fds

Comment 10 Johnray Fuller 2016-04-05 20:18:20 UTC
Created attachment 1144006 [details]
File: proc_pid_status

Comment 11 Johnray Fuller 2016-04-05 20:18:20 UTC
Created attachment 1144007 [details]
File: var_log_messages

Comment 12 Johnray Fuller 2016-04-05 20:18:48 UTC
Created attachment 1144008 [details]
File: sosreport.tar.xz

Comment 15 Johnray Fuller 2016-04-05 20:24:27 UTC
I have a core file as well if needed.

Comment 17 Peter Hatina 2016-04-08 12:03:45 UTC
Can you, please, verify that this build works for you?

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=10809143

Thank you.

Comment 18 Peter Hatina 2016-04-11 07:37:49 UTC
Updated build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=10823537

Comment 19 Johnray Fuller 2016-04-11 15:29:42 UTC
I tested storaged-2.2.0-4.el7 with the patch set Peter developed and it appears to work properly.

Thank you very much.

Comment 20 Johnray Fuller 2016-04-11 15:31:42 UTC
Note, the original patch set from 2016-04-08 didn't include a crucial chunk of code and did not work. The successful test was the 2016-04-11 version of the packages.

Comment 25 errata-xmlrpc 2016-08-04 13:49:00 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://rhn.redhat.com/errata/RHBA-2016-1571.html


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