This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81302] [7/8 Regression] Segmentation fault in diagnose_tm_1 at trans-mem.c
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Jul 2017 08:21:28 +0000
- Subject: [Bug c/81302] [7/8 Regression] Segmentation fault in diagnose_tm_1 at trans-mem.c
- Auto-submitted: auto-generated
- References: <bug-81302-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81302
--- Comment #2 from Vittorio Zecca <zeccav at gmail dot com> ---
Maybe is this related?
// trunk 249883
// from pr46269.C
// Segmentation fault
// must be compiled with command g++ -fsanitize=address -fgnu-tm
template<class T> class shared_ptr
{
public:
shared_ptr( T * p )
{
}
};
class BuildingCompletedEvent
{
public:
__attribute__((transaction_callable)) void updateBuildingSite(void);
BuildingCompletedEvent();
};
void BuildingCompletedEvent::updateBuildingSite(void)
{
shared_ptr<BuildingCompletedEvent> event(new BuildingCompletedEvent());
}
/*
* during IPA pass: tmipa
In member function ‘void BuildingCompletedEvent::updateBuildingSite()’:
internal compiler error: Segmentation fault
}
^
0xe66cef crash_signal
../../gcc-249883/gcc/toplev.c:338
0xe6b2e0 is_tm_irrevocable
../../gcc-249883/gcc/trans-mem.c:234
0xe6ca0f ipa_tm_scan_irr_block
../../gcc-249883/gcc/trans-mem.c:4408
0xe6ca0f ipa_tm_scan_irr_blocks
../../gcc-249883/gcc/trans-mem.c:4479
0xe6dc14 ipa_tm_scan_irr_function
../../gcc-249883/gcc/trans-mem.c:4641
0xe6f54e ipa_tm_execute
../../gcc-249883/gcc/trans-mem.c:5547
0xe6f54e execute
../../gcc-249883/gcc/trans-mem.c:5705
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.