I had created the bug report: https://bugs.kde.org/show_bug.cgi?id=396053.
And the code repository is in:
https://github.com/hnes/libaco/tree/valgrind_memcheck_bug_report_on_copy_stack_coroutine
.
All best
Remus
On Mon, Jun 25, 2018 at 11:57 AM, Remus Clearwater <
remus.clearwa...@gmail.com> wrote:
> Thank you very much, John.
>
> It is my fault. I will prepare the test cases and submit the detailed
> report as soon as possible.
>
> All best
>
> Remus
>
> On Mon, Jun 25, 2018 at 11:36 AM, John Reiser <jrei...@bitwagon.com>
> wrote:
>
>> On 06/23/2018, Remus Clearwater wrote:
>>
>> I tried to use valgrind's memcheck on a C copy-stack coroutine program,
>>> and got many false positive reports about the invalid write/read on the
>>> shared stack when memcpy occurred.
>>>
>>> (I already used the VALGRIND_STACK_REGISTER/VALGRIND_STACK_DEREGISTER.)
>>>
>>> Valgrind works fine when I use valgrind on a standalone stack coroutine
>>> program.
>>>
>>> So, the question is:
>>>
>>> Does valgrind support copy-stack coroutine yet?
>>>
>>
>> The errors that you saw when you tried it, say that valgrind does not yet
>> support it.
>> By the way, which version of valgrind? Which hardware? Which
>> compiler(s)?
>> Which C run-time library? And what was the exact text of the first
>> relevant
>> complaint from memcheck?
>>
>> The surest way to make progress is to submit a New bug report at
>> https://bugs.kde.org/buglist.cgi?quicksearch=valgrind
>> and attach two test cases with actual code: one with "standalone stack
>> co-routine",
>> and one with "copy-stack co-routine". Supplying actual code, and the
>> recipe
>> to build executables from it, is vital. If the behavior that you saw
>> cannot be reproduced by a valgrind developer, then it is likely to be
>> a long time before anything gets fixed.
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Valgrind-users mailing list
>> Valgrind-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users