<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/152873>152873</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
dereferencing million times cause sigsegv
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
CharaVerKys
</td>
</tr>
</table>
<pre>
basically i just dereferenced function pointer ~4971000 times and it crash compiler; not compile error but program crash
```
$ cat sigsegv.cpp | wc
7 18 4971366
```
just takes a little to write by yourself, godbold clang trunk for example {https://godbolt.org/z/rjE9vxMj1} if not work - full link below
also fails on local machine:
```
clang++-19: error: unable to execute command: Segmentation fault (core dumped)
clang++-19: error: clang frontend command failed due to signal (use -v to see invocation)
Debian clang version 19.1.7 (++20250114103228+cd708029e0b2-1~exp1~20250114103334.78)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin
clang++-19: note: diagnostic msg:
********************
```
`/tmp/sigsegv-405d66.cpp`
`/tmp/sigsegv-405d66.sh`
- files would take forever to scroll down, so i just upload them if you really want to
https://drive.google.com/file/d/1bmxXwftAQ6EaioilPDBpFPoFBnifbPS0/view?usp=sharing
bug is really that simple, but some one recommended me to write bug report
godbold full link
```https://godbolt.org/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaPECAMzwBtMA7AQwFtMQByARg9KtQYEAysib0QXACx8BBAKoBnTAAUAHpwAMvAFYTStJg1DIApACYAQuYukl9ZATwDKjdAGFUtAK4sGEgGykrgAyeAyYAHI%2BAEaYxCBmpAAOqAqETgwe3r4ByanpAqHhUSyx8Yl2mA4ZQgRMxARZPn5cgZXVArX1BEWRMXEJtnUNTTmtQ929JWUJAJS2qF7EyOwcYQQA1FTUtKhMmyYAzAAiGwCss0dWGgCC61sQ90enF1cmt%2B93ghssTGEQsw2JgA7NcbhsIRsIAAqWFw%2BEIxFI5E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BsypnMeMJVt81wAu68LOEgJIwKS1TwIkYcwLAnLJEaFNOVqxrR3sbYOtC1hKtmKTmt94PIvVWkziSEAA%3D%3D```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykV0uTszqP_jX0xtVdxhACi14YAulcSCfkSjZTXBwgGExjEyCL89unIO875zIzZ_OlKCBYkh_J0mM54DxLSkI-pYkpTWZvQSNSVn9aaVAHJ1Kvev4Wsrj_DAOeRQGlPcjAveECxKQmN1KTMiIxuDVlJDJWgoplpSA1-EM1pjKEEIisIBwEZQwyAaI64CmIWFFllNSSYoKSid__AalrVoOwEaCqWVIHxUtegljS4K8LYgmpIAoE4FnCSfL4iKoKSFMLtJEEMRh_09dD1sGAQtG0f5qAeHRBBPmADdBMCEqAYKCtM0FA2IOeNTUn9CYhCyQsDhmNQUSDMgGibsoc3FgNSBcUFSVAmpqpEBWXFCwhR0LOS0F8sDqRkPOUkFPfbePRuXdZms5Adhvdblmdg3dwaygFNCtzEBLK2he8gHIGbkFGOWAloCwKKCiCKM1KMszyd3dGXBIyJWS-y4ak4Fckh5emDMKXZ6QjUSPIEOwiKONhcE-SgpQiGBfuFjRUAAnpEasJiJuiIrGEjH83_4rIrWalIGX82_YInMQgbsaZh_wK6GC64QS8P8ZvhICsfLBonPw1z4yEWVD-svkgNR9gycaH_DEdlF8IEEQTKMuqDBU0foviKdQhMggM0bv8B-kq-Y-_CCmK-jHVXxMcgjohYsDd6dp_aep7Fb3TrGy696RshvG0JkEMChYTOkhVjGedBPGi5CKglMSzbPRaQk7Dawk5NAuHO30UQ2CQE2bl_xmvkolh2UCcBUnJuMgiUPBkNDXk839w_a-8Hl6QI4pKQs6vCnlX4STWtKFQfon9_zI8fYm8g1tGCQcta2g81smQ8eRB6nH1oppRCmLWlkN9cPabE5qKsiAGIiXFkOU9a0BNRtJog1IMqhLEf6-VuM4e5CNhLKHkI2KFhJxh6mFEQo4cFt2lvQm80-wgYxndzszK2TLHLLNbuN0Pjjwy0kqK0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