<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/util/system/context.h, branch CLI_2.6.0</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=CLI_2.6.0</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=CLI_2.6.0'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2023-05-09T20:03:47Z</updated>
<entry>
<title>Mute -Wdeprecated-declarations error when thread sanitizer enabled on darwin platform</title>
<updated>2023-05-09T20:03:47Z</updated>
<author>
<name>hiddenpath</name>
<email>hiddenpath@yandex-team.com</email>
</author>
<published>2023-05-09T20:03:47Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=a2b07bdd8ae0998c6f7b5ec402a830da91198ac5'/>
<id>urn:sha1:a2b07bdd8ae0998c6f7b5ec402a830da91198ac5</id>
<content type='text'>
При сборке проектов с ```--sanitize=thread``` под **darwin**, по умолчанию попадет ```util``` и его часть ```system/context.h```, где в случае ```thread_sanitizer_enabled``` выставляется ```USE_UCONTEXT_CONT```, что приводит к использованию [депрекейтнутного](https://opensource.apple.com/source/libplatform/libplatform-125/include/ucontext.h.auto.html) ```&lt;ucontext.h&gt;``` из [macos_sdk](https://a.yandex-team.ru/arcadia/build/platform/macos_sdk/ya.make?rev=rXXXXXX#L6).


Без должных изменений, сборка падает с ошибкой.
```In file included from /Users/hiddenpath/.ya/build/build_root/fnjm/000128/util/all_system_1.cpp:13:
In file included from /Users/hiddenpath/arcadia/util/system/context.cpp:31:
In file included from /Users/hiddenpath/arcadia/util/system/context.h:46:
/Users/hiddenpath/.ya/tools/v4/2088833948/usr/include/ucontext.h:51:2: error: The deprecated ucontext routines require _XOPEN_SOURCE to be defined
#error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
 ^
In file included from /Users/hiddenpath/.ya/build/build_root/fnjm/000128/util/all_system_1.cpp:13:
In file included from /Users/hiddenpath/arcadia/util/system/context.cpp:31:
/Users/hiddenpath/arcadia/util/system/context.h:68:9: error: use of undeclared identifier 'getcontext'
        getcontext(&amp;Ctx_);
        ^
/Users/hiddenpath/arcadia/util/system/context.h:72:9: error: use of undeclared identifier 'getcontext'
        getcontext(&amp;Ctx_);
        ^
/Users/hiddenpath/arcadia/util/system/context.h:80:9: error: use of undeclared identifier 'makecontext'
        makecontext(&amp;Ctx_, (ucontext_func_t)ContextTrampoLine, 1, c.TrampoLine);
        ^
/Users/hiddenpath/arcadia/util/system/context.h:87:9: error: use of undeclared identifier 'swapcontext'
        swapcontext(&amp;Ctx_, &amp;next-&gt;Ctx_);
        ^
5 errors generated.
Failed</content>
</entry>
<entry>
<title>Clang14: Fix library/cpp/coroutine/engine under tsan</title>
<updated>2022-09-29T09:29:04Z</updated>
<author>
<name>pg</name>
<email>pg@yandex-team.com</email>
</author>
<published>2022-09-29T09:29:04Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=415be0d1a1a30e2256bbf072fcec6c81cce8d706'/>
<id>urn:sha1:415be0d1a1a30e2256bbf072fcec6c81cce8d706</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;halin-george@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:07Z</updated>
<author>
<name>halin-george</name>
<email>halin-george@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:07Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=811c91d683d6123a2aa69baa10b30184f5e1204d'/>
<id>urn:sha1:811c91d683d6123a2aa69baa10b30184f5e1204d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;halin-george@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:07Z</updated>
<author>
<name>halin-george</name>
<email>halin-george@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:07Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=7c7a0655bcf00449b1fcacc2c658cc4d5c3aca7b'/>
<id>urn:sha1:7c7a0655bcf00449b1fcacc2c658cc4d5c3aca7b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;kimkim@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:49:28Z</updated>
<author>
<name>kimkim</name>
<email>kimkim@yandex-team.ru</email>
</author>
<published>2022-02-10T13:49:28Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=10807864acf73d00f425a23b442aac2cf34403a8'/>
<id>urn:sha1:10807864acf73d00f425a23b442aac2cf34403a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;kimkim@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:49:27Z</updated>
<author>
<name>kimkim</name>
<email>kimkim@yandex-team.ru</email>
</author>
<published>2022-02-10T13:49:27Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=13f84424ed9975f6827d9786087c6fe6ea265cda'/>
<id>urn:sha1:13f84424ed9975f6827d9786087c6fe6ea265cda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for Alexander Gololobov &lt;davenger@yandex-team.com&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:47:38Z</updated>
<author>
<name>Alexander Gololobov</name>
<email>davenger@yandex-team.com</email>
</author>
<published>2022-02-10T13:47:38Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=fccc62e9bfdce9be2fe7e0f23479da3a5512211a'/>
<id>urn:sha1:fccc62e9bfdce9be2fe7e0f23479da3a5512211a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for Alexander Gololobov &lt;davenger@yandex-team.com&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:47:37Z</updated>
<author>
<name>Alexander Gololobov</name>
<email>davenger@yandex-team.com</email>
</author>
<published>2022-02-10T13:47:37Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=39608cdb86363c75ce55b2b9a69841c3b71f22cf'/>
<id>urn:sha1:39608cdb86363c75ce55b2b9a69841c3b71f22cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;agorodilov@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:47:09Z</updated>
<author>
<name>agorodilov</name>
<email>agorodilov@yandex-team.ru</email>
</author>
<published>2022-02-10T13:47:09Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=bd5ef432f5cfb1e18851381329d94665a4c22470'/>
<id>urn:sha1:bd5ef432f5cfb1e18851381329d94665a4c22470</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;agorodilov@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:47:09Z</updated>
<author>
<name>agorodilov</name>
<email>agorodilov@yandex-team.ru</email>
</author>
<published>2022-02-10T13:47:09Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=7a4979e6211c3e78c7f9041d4a9e5d3405343c36'/>
<id>urn:sha1:7a4979e6211c3e78c7f9041d4a9e5d3405343c36</id>
<content type='text'>
</content>
</entry>
</feed>
