You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classFoo
{
this(Bar bar) { this.bar = bar; }
Bar bar;
}
extern(C) structBar {}
voidmain()
{
auto bar = Bar();
auto foo = newFoo(bar);
}
With ldc2 -fsanitize=address %
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x55e3bea07532 bp 0x7ffdd7f55120 sp 0x7ffdd7f55100 T0)
==27==The signal is caused by a READ memory access.
==27==Hint: this fault was caused by a dereference of a high value address (see register values below). Disassemble the provided pc to learn which register was used.
#0 0x55e3bea07532 in D main /sandbox/onlineapp.d:12:5
#1 0x55e3beab788c in _D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv (/tmp/onlineapp-433482+0xce88c) (BuildId: 8e61071a375c929d9dfe0882c992f5960dc2fae5)
#2 0x55e3beab7786 in _d_run_main2 (/tmp/onlineapp-433482+0xce786) (BuildId: 8e61071a375c929d9dfe0882c992f5960dc2fae5)
#3 0x55e3beab75dc in _d_run_main (/tmp/onlineapp-433482+0xce5dc) (BuildId: 8e61071a375c929d9dfe0882c992f5960dc2fae5)
#4 0x55e3bea07591 in main /dlang/ldc-1.38.0/bin/../import/core/internal/entrypoint.d:42:17
#5 0x7f3f5704c1c9 (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
#6 0x7f3f5704c28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 08134323d00289185684a4cd177d202f39c2a5f3)
#7 0x55e3bea073c4 in _start (/tmp/onlineapp-433482+0x1e3c4) (BuildId: 8e61071a375c929d9dfe0882c992f5960dc2fae5)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /sandbox/onlineapp.d:12:5 in D main
==27==ABORTING
Error: /tmp/onlineapp-433482 failed with status: 1
The text was updated successfully, but these errors were encountered:
With
ldc2 -fsanitize=address %
The text was updated successfully, but these errors were encountered: