D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14000 - Segmentation fault with profile
Summary: Segmentation fault with profile
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-18 07:32 UTC by Fyodor Ustinov
Modified: 2019-02-27 03:36 UTC (History)
3 users (show)

See Also:


Attachments
Source file from rosettacode (3.04 KB, application/x-dsrc)
2015-01-18 07:32 UTC, Fyodor Ustinov
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Fyodor Ustinov 2015-01-18 07:32:51 UTC
Created attachment 1463 [details]
Source file from rosettacode

When compile code from http://rosettacode.org/wiki/Atomic_updates#D with -profile option result program hangs with "Segmentation fault"

ufm@msi ~/Src/tt $ dmd -profile d1.d 
ufm@msi ~/Src/tt $ ./d1 
N. transfers, buckets, buckets sum:
Segmentation fault

DMD64 D Compiler v2.066.1
Comment 1 omegawarosu 2015-01-26 00:34:07 UTC
Same here, when vibe.d is linked.
Comment 2 Walter Bright 2015-04-27 10:09:37 UTC
Are these multithreaded programs? Because the profiler doesn't work with multithreaded programs.
Comment 3 Walter Bright 2015-04-29 05:22:55 UTC
This may fix it:

https://issues.dlang.org/show_bug.cgi?id=14511
Comment 4 Victor Porton 2019-02-27 03:36:34 UTC
No crash here, the bug seems fixed:

$ dmd --version
DMD64 D Compiler v2.084.1
Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved written by Walter Bright