Bug 1663054

Summary: dtc "Segmentation fault" on Raspberry Pi 3B+
Product: [Fedora] Fedora Reporter: Steve <y9t7sypezp>
Component: dtcAssignee: Peter Robinson <pbrobinson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: arnd, gkurz, jwboyer, normand, pbonzini, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dtc-1.4.7-2.fc29 dtc-1.4.7-2.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-18 02:14:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve 2019-01-02 22:26:50 UTC
Description of problem:
This crashes with a "Segmentation fault" on a Raspberry Pi 3B+:

$ sudo dtc -I fs /proc/device-tree

Reported in Bug 1661961, Comment 22. See the associated Attachment 1517970 [details].

Version-Release number of selected component (if applicable):
Name         : dtc
Version      : 1.4.7
Release      : 1.fc29
Arch         : armv7hl

How reproducible:
Always.

Additional info:

I reproduced the crash in an armv7l VM (virt-manager/qemu) on an F28 x86_64 host.

The dtc command is cited by PhilE (Raspberry Pi Engineer & Forum Moderator) in a post at raspberrypi.org:
https://www.raspberrypi.org/forums/viewtopic.php?p=1404200#p1298259

Comment 1 Steve 2019-01-02 22:46:14 UTC
kernel 4.19.10-300.fc29.armv7hl per Bug 1661961, Comment 18.

Comment 2 Greg Kurz 2019-01-15 17:29:35 UTC
This is fixed upstream by the following commit:

commit 9619c8619c37b9aea98100bcc15c51a5642e877e
Author: Greg Kurz <groug>
Date:   Thu Aug 30 12:01:59 2018 +0200

    Kill bogus TYPE_BLOB marker type

https://github.com/dgibson/dtc/commit/9619c8619c37b9aea98100bcc15c51a5642e877e

It got merged quite early after 1.4.7 so I believe it should be easy to
apply on top of the official tarball.

Cheers,

--
Greg

Comment 3 Fedora Update System 2019-01-16 12:07:08 UTC
dtc-1.4.7-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-507e89ccbe

Comment 4 Fedora Update System 2019-01-16 12:07:11 UTC
dtc-1.4.7-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4384e1aee2

Comment 5 Fedora Update System 2019-01-17 02:11:21 UTC
dtc-1.4.7-2.fc29 has been pushed to the Fedora 29 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-2019-4384e1aee2

Comment 6 Fedora Update System 2019-01-17 02:50:27 UTC
dtc-1.4.7-2.fc28 has been pushed to the Fedora 28 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-2019-507e89ccbe

Comment 7 Fedora Update System 2019-01-18 02:14:03 UTC
dtc-1.4.7-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2019-01-22 01:34:44 UTC
dtc-1.4.7-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.