<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp/lfalloc/lf_allocX64.h, branch 22.2.40</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=22.2.40</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=22.2.40'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2022-04-18T15:40:19Z</updated>
<entry>
<title>[merge to stable-22-2] Fix a segfault in debug mode when the allocated memory accidentally contains 0xF0000000</title>
<updated>2022-04-18T15:40:19Z</updated>
<author>
<name>sharpeye</name>
<email>sharpeye@yandex-team.ru</email>
</author>
<published>2022-04-18T15:40:19Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=df455b910e1d049369547fe5c4e83417eb7a73a1'/>
<id>urn:sha1:df455b910e1d049369547fe5c4e83417eb7a73a1</id>
<content type='text'>
Наш сервис при сборке с `ALLOCATOR(LF_DBG)` на старте падает [в этой строчке](https://a.yandex-team.ru/arc_vcs/commit/r7923656#file-library/cpp/lfalloc/lf_allocX64.h:R1901) при попытке разыменовать очевидно невалидный указатель. В gdb видно, что мы при попытке определить координаты фиктивного заголовка в `GetAllocHeader()` прочитали какие-то левые 32 бита в качестве `header-&gt;Tag`, и они по стечению обстоятельств оказались равны `0xF0000000` в нашем случае (просто не повезло). После этого мы решаем, что в `header-&gt;Size` лежит настоящий указатель на заголовок, хотя на самом деле там лежит тоже что-то рандомное.

Решение, вроде бы, простое — когда формируем фиктивный заголовок, надо не обращать внимания на теги (потому что к этому моменту их ещё некому было записать).

REVIEW: 2408267

REVIEW: 2438642
x-ydb-stable-ref: 02ccf11b927a06e81b968e8b45c287957b8e1d60
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;anton-fr@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:42Z</updated>
<author>
<name>anton-fr</name>
<email>anton-fr@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=77ba323ac918adf37088050a634b205a4330eab6'/>
<id>urn:sha1:77ba323ac918adf37088050a634b205a4330eab6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;anton-fr@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:42Z</updated>
<author>
<name>anton-fr</name>
<email>anton-fr@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=bed030b23ff75a1c319095c23a60075800da2c68'/>
<id>urn:sha1:bed030b23ff75a1c319095c23a60075800da2c68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;dened@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:42Z</updated>
<author>
<name>dened</name>
<email>dened@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=02ba02ced9993bf59ad9313b36a718701785da63'/>
<id>urn:sha1:02ba02ced9993bf59ad9313b36a718701785da63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;dened@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:41Z</updated>
<author>
<name>dened</name>
<email>dened@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:41Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=7ece857024572838489e8c7bcc838b559f81c400'/>
<id>urn:sha1:7ece857024572838489e8c7bcc838b559f81c400</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;onpopov@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:38Z</updated>
<author>
<name>onpopov</name>
<email>onpopov@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:38Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8'/>
<id>urn:sha1:8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;onpopov@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:38Z</updated>
<author>
<name>onpopov</name>
<email>onpopov@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:38Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=84a29dd4980d5b39615e453f289bd1a81213296d'/>
<id>urn:sha1:84a29dd4980d5b39615e453f289bd1a81213296d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;single@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:50:30Z</updated>
<author>
<name>single</name>
<email>single@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:30Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f7835298a8840c8e5d98715bf23efa9c7e03b9c4'/>
<id>urn:sha1:f7835298a8840c8e5d98715bf23efa9c7e03b9c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;single@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:50:29Z</updated>
<author>
<name>single</name>
<email>single@yandex-team.ru</email>
</author>
<published>2022-02-10T13:50:29Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=8ae96df130bbede609c3504aa9af1bc6ff5361b3'/>
<id>urn:sha1:8ae96df130bbede609c3504aa9af1bc6ff5361b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;ijon@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:49:57Z</updated>
<author>
<name>ijon</name>
<email>ijon@yandex-team.ru</email>
</author>
<published>2022-02-10T13:49:57Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=fcd93d3533aed781986b121b1362ca188bd96367'/>
<id>urn:sha1:fcd93d3533aed781986b121b1362ca188bd96367</id>
<content type='text'>
</content>
</entry>
</feed>
