Bug 1554276

Summary: clang frontend command failed due to signal
Product: [Fedora] Fedora Reporter: Stas Sergeev <stsp2>
Component: clangAssignee: Tom Stellard <tstellar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: airlied, davejohansen, ravnzon, sbergman, siddharth.kde, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-16 18:33:09 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:
Attachments:
Description Flags
test-case none

Description Stas Sergeev 2018-03-12 10:04:17 UTC
Created attachment 1407134 [details]
test-case

Description of problem:
clang crash with the attached test-case

Version-Release number of selected component (if applicable):
clang-5.0.1-1.fc27.x86_64

How reproducible:
easily

Steps to Reproduce:
1. clang++ -std=c++11 -c malloca.cpp

Actual results:
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)

Expected results:
proper error messages (the code is clearly invalid)

Additional info:
This code is actually a result of the question I asked here:
https://stackoverflow.com/questions/48915888/allocate-shared-with-malloc
Maybe someone from clang devs/C++ gurus can hint me about
why do I need to manually override the delete operator here?

Comment 1 Tom Stellard 2018-03-16 18:33:09 UTC
Same root cause as bug 1554280.

*** This bug has been marked as a duplicate of bug 1554280 ***

Comment 2 Tom Stellard 2018-03-16 18:42:19 UTC
Also, you'll have to ask your C++ question somewhere else, I'm not sure of the answer.