Jump to page: 1 2
Thread overview
[Issue 14511] Profiler does not work with multithreaded programs
Apr 27, 2015
Walter Bright
Apr 29, 2015
Walter Bright
Apr 18, 2016
jj75607@gmail.com
Apr 18, 2016
jj75607@gmail.com
Apr 21, 2016
Ivan Kazmenko
Nov 08, 2016
Alex
Dec 17, 2022
Iain Buclaw
April 27, 2015
https://issues.dlang.org/show_bug.cgi?id=14511

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/D-Programming-Language/druntime/pull/1233

--
April 29, 2015
https://issues.dlang.org/show_bug.cgi?id=14511

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
April 29, 2015
https://issues.dlang.org/show_bug.cgi?id=14511

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/01087ce464d3b905d16e55799d02b710fcdd9939 fix Issue 14511 - Profiler does not work with multithreaded programs

https://github.com/D-Programming-Language/druntime/commit/0f4f326fb476bbf80ca95e8f368bbb2c3d2f260d Merge pull request #1233 from WalterBright/fix14511

fix Issue 14511 - Profiler does not work with multithreaded programs

--
April 29, 2015
https://issues.dlang.org/show_bug.cgi?id=14511

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=14000

--
June 17, 2015
https://issues.dlang.org/show_bug.cgi?id=14511

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/01087ce464d3b905d16e55799d02b710fcdd9939 fix Issue 14511 - Profiler does not work with multithreaded programs

https://github.com/D-Programming-Language/druntime/commit/0f4f326fb476bbf80ca95e8f368bbb2c3d2f260d Merge pull request #1233 from WalterBright/fix14511

--
January 12, 2016
https://issues.dlang.org/show_bug.cgi?id=14511

zoteman94@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |zoteman94@gmail.com
         Resolution|FIXED                       |---

--- Comment #4 from zoteman94@gmail.com ---
static int bar[];

void main () {
    import std.concurrency : spawn;
    spawn ( & foo );
}

void foo () {
    bar ~= 0;
}

This program segfaults if compiled with -profile=gc. Seems to happen at rt_term of runAll at dmain2.d.

--
April 18, 2016
https://issues.dlang.org/show_bug.cgi?id=14511

jj75607@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jj75607@gmail.com

--- Comment #5 from jj75607@gmail.com ---
Profiler fails with atomic operations:

import core.atomic;

shared struct S
{
    uint counter;

    bool inc() shared
    {
        atomicOp!("+=")(counter, 1);
        return true;
    }
}

int main(string[] argv)
{
    S s;

    return 0;
}

This program segfaults if compiled with profiler hooks

--
April 18, 2016
https://issues.dlang.org/show_bug.cgi?id=14511

jj75607@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major

--
April 21, 2016
https://issues.dlang.org/show_bug.cgi?id=14511

Ivan Kazmenko <gassa@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gassa@mail.ru
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=15947

--
November 08, 2016
https://issues.dlang.org/show_bug.cgi?id=14511

Alex <sascha.orlov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sascha.orlov@gmail.com

--- Comment #6 from Alex <sascha.orlov@gmail.com> ---
After an update from 2.071.2 to 2.072.0 a seg fault with the profile option on a mac appear with the following example

void main() {}
void f()
{
    import core.atomic: atomicOp;
    shared size_t workUnitIndex;
    atomicOp!"+="(workUnitIndex, 1);
}

which does not appear with the prior version of atomic.d

Many thanks to ag0aep6g for helping with the code.

--
« First   ‹ Prev
1 2