I am using sublime text with sublimeclang plugin, but sublime text is always crashing when reparsing my code. my code: #include <cppa/cppa.hpp> #include <Poco/DirectoryIterator.h> using namespace std; using namespace cppa; using namespace Poco; class FileTraceActor : public sb_actor<FileTraceActor> { // grant access to the private init_state member friend class sb_actor<FileTraceActor>; behavior empty = ( on(atom("to_be"), arg_match) >> [](string parent,string name) { //case by this line!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! become(); } ); behavior& init_state = empty; }; int main(int argc, char const *argv[]) { /* code */ return 0; } Backtrace: *** glibc detected *** /usr/lib/sublime-text-2/sublime_text: double free or corruption (out): 0x00007f2e46e1f530 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7f2e8e94cb96] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x390e5c)[0x7f2e67882e5c] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x49997d)[0x7f2e6798b97d] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x346f14)[0x7f2e67838f14] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x37cc86)[0x7f2e6786ec86] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x37c23c)[0x7f2e6786e23c] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x343d58)[0x7f2e67835d58] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x3429c0)[0x7f2e678349c0] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x3302e2)[0x7f2e678222e2] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x326c51)[0x7f2e67818c51] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x326faf)[0x7f2e67818faf] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x32632c)[0x7f2e6781832c] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x3258c0)[0x7f2e678178c0] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x322e1b)[0x7f2e67814e1b] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x1fc4e8)[0x7f2e676ee4e8] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x2008d3)[0x7f2e676f28d3] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x9d2ea)[0x7f2e6758f2ea] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x7b4acb)[0x7f2e67ca6acb] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x7b4b84)[0x7f2e67ca6b84] /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/clang/../libclang.so(+0x7c8bba)[0x7f2e67cbabba] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f2e8fbeae9a] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f2e8e9c1cbd] ======= Memory map: ======== 00400000-00bce000 r-xp 00000000 08:12 1326149 /usr/lib/sublime-text-2/sublime_text 00dcd000-00dce000 r--p 007cd000 08:12 1326149 /usr/lib/sublime-text-2/sublime_text 00dce000-00e47000 rw-p 007ce000 08:12 1326149 /usr/lib/sublime-text-2/sublime_text 00e47000-00e5f000 rw-p 00000000 00:00 0 011fc000-0271b000 rw-p 00000000 00:00 0 [heap] 7f2e38000000-7f2e3a185000 rw-p 00000000 00:00 0 7f2e3a185000-7f2e3c000000 ---p 00000000 00:00 0 7f2e3d56b000-7f2e3dffc000 r--p 00000000 08:12 1983024 /tmp/preamble.pch-HY4oSv 7f2e3dffc000-7f2e3dffd000 ---p 00000000 00:00 0 7f2e3dffd000-7f2e3e7fd000 rw-p 00000000 00:00 0 [stack:7053] 7f2e3e7fd000-7f2e3e7fe000 ---p 00000000 00:00 0 7f2e3e7fe000-7f2e3effe000 rw-p 00000000 00:00 0 7f2e3effe000-7f2e3efff000 ---p 00000000 00:00 0 7f2e3efff000-7f2e3f7ff000 rw-p 00000000 00:00 0 [stack:7050] 7f2e3f7ff000-7f2e3f800000 ---p 00000000 00:00 0 7f2e3f800000-7f2e40000000 rw-p 00000000 00:00 0 7f2e40000000-7f2e408a6000 rw-p 00000000 00:00 0 7f2e408a6000-7f2e44000000 ---p 00000000 00:00 0 7f2e44000000-7f2e47ff8000 rw-p 00000000 00:00 0 7f2e47ff8000-7f2e48000000 ---p 00000000 00:00 0 7f2e48000000-7f2e487fa000 rw-p 00000000 00:00 0 7f2e487fa000-7f2e4c000000 ---p 00000000 00:00 0 7f2e4c344000-7f2e4c4dc000 rw-p 00000000 00:00 0 7f2e4c4dc000-7f2e4c4dd000 ---p 00000000 00:00 0 7f2e4c4dd000-7f2e4ccdd000 rw-p 00000000 00:00 0 7f2e4ccdd000-7f2e4cce4000 r-xp 00000000 08:12 919578 /lib/x86_64-linux-gnu/libnss_dns-2.15.so 7f2e4cce4000-7f2e4cee3000 ---p 00007000 08:12 919578 /lib/x86_64-linux-gnu/libnss_dns-2.15.so 7f2e4cee3000-7f2e4cee4000 r--p 00006000 08:12 919578 /lib/x86_64-linux-gnu/libnss_dns-2.15.so 7f2e4cee4000-7f2e4cee5000 rw-p 00007000 08:12 919578 /lib/x86_64-linux-gnu/libnss_dns-2.15.so 7f2e4cee5000-7f2e4cee7000 r-xp 00000000 08:12 915751 /lib/libnss_mdns4_minimal.so.2 7f2e4cee7000-7f2e4d0e6000 ---p 00002000 08:12 915751 /lib/libnss_mdns4_minimal.so.2 7f2e4d0e6000-7f2e4d0e7000 r--p 00001000 08:12 915751 /lib/libnss_mdns4_minimal.so.2 7f2e4d0e7000-7f2e4d0e8000 rw-p 00002000 08:12 915751 /lib/libnss_mdns4_minimal.so.2 7f2e4d0e8000-7f2e4d0e9000 ---p 00000000 00:00 0 7f2e4d0e9000-7f2e4d8e9000 rw-p 00000000 00:00 0 7f2e4d8e9000-7f2e4d98e000 r--p 00000000 08:12 2093740 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf 7f2e4d98e000-7f2e4d98f000 ---p 00000000 00:00 0 7f2e4d98f000-7f2e4e18f000 rw-p 00000000 00:00 0 [stack:7035] 7f2e4e18f000-7f2e4e190000 ---p 00000000 00:00 0 7f2e4e190000-7f2e4e990000 rw-p 00000000 00:00 0 [stack:7034] 7f2e4e990000-7f2e4e991000 ---p 00000000 00:00 0 7f2e4e991000-7f2e4f191000 rw-p 00000000 00:00 0 [stack:7033] 7f2e4f191000-7f2e4f192000 ---p 00000000 00:00 0 7f2e4f192000-7f2e4f992000 rw-p 00000000 00:00 0 [stack:7032] 7f2e4f992000-7f2e4f99c000 r-xp 00000000 08:12 1573719 /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 7f2e4f99c000-7f2e4fb9b000 ---p 0000a000 08:12 1573719 /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 7f2e4fb9b000-7f2e4fb9c000 r--p 00009000 08:12 1573719 /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 7f2e4fb9c000-7f2e4fb9d000 rw-p 0000a000 08:12 1573719 /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so 7f2e4fb9d000-7f2e4fbb6000 r-xp 00000000 08:12 1573723 /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so 7f2e4fbb6000-7f2e4fdb6000 ---p 00019000 08:12 1573723 /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so 7f2e4fdb6000-7f2e4fdb9000 r--p 00019000 08:12 1573723 /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so 7f2e4fdb9000-7f2e4fdba000 rw-p 0001c000 08:12 1573723 /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so 7f2e4fdba000-7f2e4fdfd000 r-xp 00000000 08:12 1316651 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f2e4fdfd000-7f2e4fffc000 ---p 00043000 08:12 1316651 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f2e4fffc000-7f2e4fffe000 r--p 00042000 08:12 1316651 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f2e4fffe000-7f2e4ffff000 rw-p 00044000 08:12 1316651 /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0 7f2e4ffff000-7f2e50000000 rw-p 00000000 00:00 0 7f2e50000000-7f2e50110000 rw-p 00000000 00:00 0 7f2e50110000-7f2e54000000 ---p 00000000 00:00 0 7f2e54000000-7f2e5464a000 rw-p 00000000 00:00 0 7f2e5464a000-7f2e58000000 ---p 00000000 00:00 0 7f2e58000000-7f2e58021000 rw-p 00000000 00:00 0 7f2e58021000-7f2e5c000000 ---p 00000000 00:00 0 7f2e5c000000-7f2e5c021000 rw-p 00000000 00:00 0 7f2e5c021000-7f2e60000000 ---p 00000000 00:00 0 7f2e60000000-7f2e60021000 rw-p 00000000 00:00 0 7f2e60021000-7f2e64000000 ---p 00000000 00:00 0 7f2e6404e000-7f2e64054000 r-xp 00000000 08:12 1573864 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f2e64054000-7f2e64253000 ---p 00006000 08:12 1573864 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f2e64253000-7f2e64254000 r--p 00005000 08:12 1573864 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f2e64254000-7f2e64255000 rw-p 00006000 08:12 1573864 /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so 7f2e64255000-7f2e64259000 r-xp 00000000 08:13 791625 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/sgmlop.so 7f2e64259000-7f2e64458000 ---p 00004000 08:13 791625 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/sgmlop.so 7f2e64458000-7f2e64459000 r--p 00003000 08:13 791625 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/sgmlop.so 7f2e64459000-7f2e6445a000 rw-p 00004000 08:13 791625 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/sgmlop.so 7f2e6445a000-7f2e6450a000 r--p 00000000 08:12 2093741 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 7f2e6450a000-7f2e6450c000 r-xp 00000000 08:12 1574098 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f2e6450c000-7f2e6470b000 ---p 00002000 08:12 1574098 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f2e6470b000-7f2e6470c000 r--p 00001000 08:12 1574098 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f2e6470c000-7f2e6470d000 rw-p 00002000 08:12 1574098 /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so 7f2e6470d000-7f2e6475f000 r--p 00000000 08:12 2093743 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf 7f2e6475f000-7f2e64760000 r--s 00000000 08:12 1717562 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le64.cache-3 7f2e64760000-7f2e64769000 r--s 00000000 08:12 1717554 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3 7f2e64769000-7f2e6476d000 r--s 00000000 08:12 1719903 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-3 7f2e6476d000-7f2e64772000 r--s 00000000 08:12 1717539 /var/cache/fontconfig/2cd17615ca594fa2959ae173292e504c-le64.cache-3 7f2e64772000-7f2e64773000 r--s 00000000 08:12 1717570 /var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-le64.cache-3 7f2e64773000-7f2e64774000 r--s 00000000 08:12 1717536 /var/cache/fontconfig/0d8c3b2ac0904cb8a57a757ad11a4a08-le64.cache-3 7f2e64774000-7f2e6477a000 r--s 00000000 08:12 1717558 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-le64.cache-3 7f2e6477a000-7f2e6477e000 r--s 00000000 08:12 1717549 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3 7f2e6477e000-7f2e6478e000 r--s 00000000 08:12 1717534 /var/cache/fontconfig/04aabc0a78ac019cf9454389977116d2-le64.cache-3 7f2e6478e000-7f2e6478f000 r--s 00000000 08:12 1717538 /var/cache/fontconfig/1ac9eb803944fde146138c791f5cc56a-le64.cache-3 7f2e6478f000-7f2e64792000 r--s 00000000 08:12 1717543 /var/cache/fontconfig/385c0604a188198f04d133e54aba7fe7-le64.cache-3 7f2e64792000-7f2e64793000 r--s 00000000 08:12 1717568 /var/cache/fontconfig/dc05db6664285cc2f12bf69c139ae4c3-le64.cache-3 7f2e64793000-7f2e64795000 r--s 00000000 08:12 1717551 /var/cache/fontconfig/767a8244fc0220cfb567a839d0392e0b-le64.cache-3 7f2e64795000-7f2e64796000 r--s 00000000 08:12 1717544 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-le64.cache-3 7f2e64796000-7f2e64799000 r--s 00000000 08:12 1717553 /var/cache/fontconfig/8801497958630a81b71ace7c5f9b32a8-le64.cache-3 7f2e64799000-7f2e6479e000 r--s 00000000 08:12 1717540 /var/cache/fontconfig/3047814df9a2f067bd2d96a2b9c36e5a-le64.cache-3 7f2e6479e000-7f2e6479f000 r--s 00000000 08:12 1717546 /var/cache/fontconfig/56cf4f4769d0f4abc89a4895d7bd3ae1-le64.cache-3 7f2e6479f000-7f2e647a0000 r--s 00000000 08:12 1717561 /var/cache/fontconfig/b9d506c9ac06c20b433354fa67a72993-le64.cache-3 7f2e647a0000-7f2e647a5000 r--s 00000000 08:12 1717560 /var/cache/fontconfig/b47c4e1ecd0709278f4910c18777a504-le64.cache-3 7f2e647a5000-7f2e647b6000 r--s 00000000 08:12 1717566 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le64.cache-3 7f2e647b6000-7f2e647bc000 r--s 00000000 08:12 1719800 /var/cache/fontconfig/105b9c7e6f0a4f82d8c9b6e39c52c6f9-le64.cache-3 7f2e647bc000-7f2e647c8000 r--s 00000000 08:12 1719902 /var/cache/fontconfig/089dead882dea3570ffc31a9898cfb69-le64.cache-3 7f2e647c8000-7f2e647c9000 r--s 00000000 08:12 1717535 /var/cache/fontconfig/0c9eb80ebd1c36541ebe2852d3bb0c49-le64.cache-3 7f2e647c9000-7f2e647cc000 r--s 00000000 08:12 1707996 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-3 7f2e647cc000-7f2e647d0000 r--s 00000000 08:12 1719901 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-3 7f2e647d0000-7f2e647d1000 ---p 00000000 00:00 0 7f2e647d1000-7f2e64fd1000 rw-p 00000000 00:00 0 [stack:7030] 7f2e64fd1000-7f2e65001000 r-xp 00000000 08:13 791624 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/ciElementTree.so 7f2e65001000-7f2e65201000 ---p 00030000 08:13 791624 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/ciElementTree.so 7f2e65201000-7f2e65203000 r--p 00030000 08:13 791624 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/ciElementTree.so 7f2e65203000-7f2e65204000 rw-p 00032000 08:13 791624 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/ciElementTree.so 7f2e65204000-7f2e652e9000 r-xp 00000000 08:13 791622 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/_SilverCity.so 7f2e652e9000-7f2e654e8000 ---p 000e5000 08:13 791622 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/_SilverCity.so 7f2e654e8000-7f2e654ea000 r--p 000e4000 08:13 791622 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/_SilverCity.so 7f2e654ea000-7f2e654ec000 rw-p 000e6000 08:13 791622 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeCodeIntel/libs/_linux_libcpp6_x86_64/_SilverCity.so 7f2e654ec000-7f2e654ee000 rw-p 00000000 00:00 0 7f2e654ee000-7f2e654ef000 ---p 00000000 00:00 0 7f2e654ef000-7f2e65cef000 rw-p 00000000 00:00 0 [stack:7029] 7f2e65cef000-7f2e65cf0000 ---p 00000000 00:00 0 7f2e65cf0000-7f2e664f0000 rw-p 00000000 00:00 0 [stack:7028] 7f2e664f0000-7f2e664f1000 ---p 00000000 00:00 0 7f2e664f1000-7f2e66cf1000 rw-p 00000000 00:00 0 [stack:7027] 7f2e66cf1000-7f2e66cf2000 ---p 00000000 00:00 0 7f2e66cf2000-7f2e674f2000 rw-p 00000000 00:00 0 [stack:7026] 7f2e674f2000-7f2e67db6000 r-xp 00000000 08:13 659276 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libclang.so 7f2e67db6000-7f2e67fb5000 ---p 008c4000 08:13 659276 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libclang.so 7f2e67fb5000-7f2e67ffd000 r--p 008c3000 08:13 659276 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libclang.so 7f2e67ffd000-7f2e67ffe000 rw-p 0090b000 08:13 659276 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libclang.so 7f2e67ffe000-7f2e68000000 rw-p 00000000 00:00 0 7f2e68000000-7f2e68021000 rw-p 00000000 00:00 0 7f2e68021000-7f2e6c000000 ---p 00000000 00:00 0 7f2e6c000000-7f2e6c021000 rw-p 00000000 00:00 0 7f2e6c021000-7f2e70000000 ---p 00000000 00:00 0 7f2e70000000-7f2e7006a000 rw-p 00000000 00:00 0 7f2e7006a000-7f2e74000000 ---p 00000000 00:00 0 7f2e74000000-7f2e74387000 rw-p 00000000 00:00 0 7f2e74387000-7f2e78000000 ---p 00000000 00:00 0 7f2e78000000-7f2e78022000 rw-p 00000000 00:00 0 7f2e78022000-7f2e7c000000 ---p 00000000 00:00 0 7f2e7c000000-7f2e7c065000 rw-p 00000000 00:00 0 7f2e7c065000-7f2e80000000 ---p 00000000 00:00 0 7f2e80000000-7f2e80021000 rw-p 00000000 00:00 0 7f2e80021000-7f2e84000000 ---p 00000000 00:00 0 7f2e8401f000-7f2e8407f000 rw-s 00000000 00:04 52723760 /SYSV00000000 (deleted) 7f2e8407f000-7f2e8409c000 r--p 00000000 08:12 2093659 /usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf 7f2e8409c000-7f2e840bb000 r--p 00000000 08:12 2093660 /usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf 7f2e840bb000-7f2e840cc000 r-xp 00000000 08:13 659280 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libcache.so 7f2e840cc000-7f2e842cb000 ---p 00011000 08:13 659280 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libcache.so 7f2e842cb000-7f2e842cc000 r--p 00010000 08:13 659280 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libcache.so 7f2e842cc000-7f2e842cd000 rw-p 00011000 08:13 659280 /home/xiemeilong/.config/sublime-text-2/Packages/SublimeClang/libcache.so 7f2e842cd000-7f2e842e9000 r-xp 00000000 08:13 791202 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_ctypes.so 7f2e842e9000-7f2e844e8000 ---p 0001c000 08:13 791202 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_ctypes.so 7f2e844e8000-7f2e844e9000 r--p 0001b000 08:13 791202 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_ctypes.so 7f2e844e9000-7f2e844ed000 rw-p 0001c000 08:13 791202 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_ctypes.so 7f2e844ed000-7f2e844ee000 ---p 00000000 00:00 0 7f2e844ee000-7f2e84cee000 rw-p 00000000 00:00 0 [stack:7023] 7f2e84cee000-7f2e84cef000 ---p 00000000 00:00 0 7f2e84cef000-7f2e854ef000 rw-p 00000000 00:00 0 [stack:7022] 7f2e854ef000-7f2e854f5000 r-xp 00000000 08:13 791185 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_multiprocessing.so 7f2e854f5000-7f2e856f4000 ---p 00006000 08:13 791185 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_multiprocessing.so 7f2e856f4000-7f2e856f5000 r--p 00005000 08:13 791185 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_multiprocessing.so 7f2e856f5000-7f2e856f6000 rw-p 00006000 08:13 791185 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_multiprocessing.so 7f2e856f6000-7f2e856f9000 r-xp 00000000 08:13 791198 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_json.so 7f2e856f9000-7f2e858f8000 ---p 00003000 08:13 791198 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_json.so 7f2e858f8000-7f2e858f9000 r--p 00002000 08:13 791198 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_json.so 7f2e858f9000-7f2e858fa000 rw-p 00003000 08:13 791198 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_json.so 7f2e858fa000-7f2e85a98000 r-xp 00000000 08:12 919525 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f2e85a98000-7f2e85c97000 ---p 0019e000 08:12 919525 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f2e85c97000-7f2e85cb2000 r--p 0019d000 08:12 919525 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f2e85cb2000-7f2e85cbd000 rw-p 001b8000 08:12 919525 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f2e85cbd000-7f2e85cc1000 rw-p 00000000 00:00 0 7f2e85cda000-7f2e85cdd000 r-xp 00000000 08:13 791188 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_hashlib.so 7f2e85cdd000-7f2e85edc000 ---p 00003000 08:13 791188 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_hashlib.so 7f2e85edc000-7f2e85edd000 r--p 00002000 08:13 791188 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_hashlib.so 7f2e85edd000-7f2e85ede000 rw-p 00003000 08:13 791188 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_hashlib.so 7f2e85ede000-7f2e85ee1000 r-xp 00000000 08:13 791191 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_heapq.so 7f2e85ee1000-7f2e860e0000 ---p 00003000 08:13 791191 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_heapq.so 7f2e860e0000-7f2e860e1000 r--p 00002000 08:13 791191 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_heapq.so 7f2e860e1000-7f2e860e3000 rw-p 00003000 08:13 791191 /home/xiemeilong/.pythonbrew/pythons/Python-2.6.7/lib/python2.6/lib-dynload/_heapq.so 7f2e860e3000-7f2e860e4000 ---p 00000000 00:00 0 7f2e860e4000-7f2e868e4000 rw-p 00000000 00:00 0 [stack:7021] 7f2e868e4000-7f2e868e5000 ---p 00000000 00:00 0 7f2e868e5000-7f2e870e5000 rw-p 00000000 00:00 0 [stack:7020] 7f2e870e5000-7f2e870e9000 r-xp 00000000 08:12 1573707 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so 7f2e870e9000-7f2e872e9000 ---p 00004000 08:12 1573707 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so 7f2e872e9000-7f2e872ea000 r--p 00004000 08:12 1573707 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so 7f2e872ea000-7f2e872eb000 rw-p 00005000 08:12 1573707 /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so 7f2e872eb000-7f2e872ec000 ---p 00000000 00:00 0 7f2e872ec000-7f2e87aec000 rw-p 00000000 00:00 0 [stack:7018] 7f2e87aec000-7f2e87aed000 ---p 00000000 00:00 0 7f2e87aed000-7f2e882ed000 rw-p 00000000 00:00 0 [stack:7017] 7f2e882ed000-7f2e882ee000 ---p 00000000 00:00 0 7f2e882ee000-7f2e88aee000 rw-p 00000000 00:00 0 [stack:7016] 7f2e88aee000-7f2e88afa000 r-xp 00000000 08:12 919580 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f2e88afa000-7f2e88cf9000 ---p 0000c000 08:12 919580 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f2e88cf9000-7f2e88cfa000 r--p 0000b000 08:12 919580 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f2e88cfa000-7f2e88cfb000 rw-p 0000c000 08:12 919580 /lib/x86_64-linux-gnu/libnss_files-2.15.so 7f2e88cfb000-7f2e88d05000 r-xp 00000000 08:12 919584 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f2e88d05000-7f2e88f05000 ---p 0000a000 08:12 919584 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f2e88f05000-7f2e88f06000 r--p 0000a000 08:12 919584 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f2e88f06000-7f2e88f07000 rw-p 0000b000 08:12 919584 /lib/x86_64-linux-gnu/libnss_nis-2.15.so 7f2e88f07000-7f2e88f1e000 r-xp 00000000 08:12 919574 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f2e88f1e000-7f2e8911d000 ---p 00017000 08:12 919574 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f2e8911d000-7f2e8911e000 r--p 00016000 08:12 919574 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f2e8911e000-7f2e8911f000 rw-p 00017000 08:12 919574 /lib/x86_64-linux-gnu/libnsl-2.15.so 7f2e8911f000-7f2e89121000 rw-p 00000000 00:00 0 7f2e89121000-7f2e89129000 r-xp 00000000 08:12 919576 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f2e89129000-7f2e89328000 ---p 00008000 08:12 919576 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f2e89328000-7f2e89329000 r--p 00007000 08:12 919576 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f2e89329000-7f2e8932a000 rw-p 00008000 08:12 919576 /lib/x86_64-linux-gnu/libnss_compat-2.15.so 7f2e8932a000-7f2e89a0b000 r--p 00000000 08:12 1314994 /usr/lib/locale/locale-archive 7f2e89a0b000-7f2e89a2a000 r-xp 00000000 08:12 1316329 /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0.20609.1 7f2e89a2a000-7f2e89c2a000 ---p 0001f000 08:12 1316329 /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0.20609.1 7f2e89c2a000-7f2e89c2c000 r--p 0001f000 08:12 1316329 /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0.20609.1 7f2e89c2c000-7f2e89c2d000 rw-p 00021000 08:12 1316329 /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0.20609.1 7f2e89c2d000-7f2e8a05a000 r-xp 00000000 08:12 1316625 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13 7f2e8a05a000-7f2e8a259000 ---p 0042d000 08:12 1316625 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13 7f2e8a259000-7f2e8a260000 r--p 0042c000 08:12 1316625 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13 7f2e8a260000-7f2e8a264000 rw-p 00433000 08:12 1316625 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.13 7f2e8a264000-7f2e8a266000 rw-p 00000000 00:00 0 7f2e8a266000-7f2e8a26e000 r-xp 00000000 08:12 1317003 /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0 7f2e8a26e000-7f2e8a46e000 ---p 00008000 08:12 1317003 /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0 7f2e8a46e000-7f2e8a46f000 r--p 00008000 08:12 1317003 /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0 7f2e8a46f000-7f2e8a470000 rw-p 00009000 08:12 1317003 /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0 7f2e8a470000-7f2e8a472000 r-xp 00000000 08:12 1317007 /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0 7f2e8a472000-7f2e8a671000 ---p 00002000 08:12 1317007 /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0 7f2e8a671000-7f2e8a672000 r--p 00001000 08:12 1317007 /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0 7f2e8a672000-7f2e8a673000 rw-p 00002000 08:12 1317007 /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0 7f2e8a673000-7f2e8a698000 r-xp 00000000 08:12 919606 /lib/x86_64-linux-gnu/libpng12.so.0.49.0 7f2e8a698000-7f2e8a897000 ---p 00025000 08:12 919606 /lib/x86_64-linux-gnu/libpng12.so.0.49.0 7f2e8a897000-7f2e8a898000 r--p 00024000 08:12 919606 /lib/x86_64-linux-gnu/libpng12.so.0.49.0 7f2e8a898000-7f2e8a899000 rw-p 00025000 08:12 919606 /lib/x86_64-linux-gnu/libpng12.so.0.49.0 7f2e8a899000-7f2e8a919000 r-xp 00000000 08:12 1316812 /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.26.0 7f2e8a919000-7f2e8ab18000 ---p 00080000 08:12 1316812 /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.26.0 7f2e8ab18000-7f2e8ab1e000 r--p 0007f000 08:12 1316812 /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.26.0 7f2e8ab1e000-7f2e8ab1f000 rw-p 00085000 08:12 1316812 /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.26.0 7f2e8ab1f000-7f2e8ab45000 r-xp 00000000 08:12 919535 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f2e8ab45000-7f2e8ad45000 ---p 00026000 08:12 919535 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f2e8ad45000-7f2e8ad47000 r--p 00026000 08:12 919535 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f2e8ad47000-7f2e8ad48000 rw-p 00028000 08:12 919535 /lib/x86_64-linux-gnu/libexpat.so.1.6.0 7f2e8ad48000-7f2e8ad60000 r-xp 00000000 08:12 919617 /lib/x86_64-linux-gnu/libresolv-2.15.solibclang: crash detected during reparsing
Why are you reporting this here, rather than to the developers of the sublimeclang plugin? Also, there isn't nearly enough information in this bug; at the very least, please include the version of clang the libclang comes from, and source code preprocessed by that version of clang for the file in question.
Created attachment 9493 [details] the preprocessed code file
I have reported it to sublimeclang plugin,he doubt it is cased by libclang, Backtrace also reported “libclang: crash detected during reparsing” Product:clang Component:c++11 Version:3.1 Platform:pc ubuntu 12.10 amd64 the libclang is downloaded form “http://llvm.org/releases/3.1/clang+llvm-3.1-x86_64-linux-ubuntu_12.04.tar.gz”, I can compile the code with clang successfully, but sublime text always crash when reparsing. the preprocessed code has uploaded as attachment. Thanks. (In reply to comment #1) > Why are you reporting this here, rather than to the developers of the > sublimeclang plugin? > > Also, there isn't nearly enough information in this bug; at the very least, > please include the version of clang the libclang comes from, and source code > preprocessed by that version of clang for the file in question.
Could you please build and use libclang from top of tree and try again ?
sorry, I don't understand what you say. I am just a user. I know about libclang litte; I am also a junior programmer. I have point the line of code that cased the crash, I think the programmer of clang could know where is the proplem quickly。 (In reply to comment #4) > Could you please build and use libclang from top of tree and try again ?
If I get clang+llvm-3.1-x86_64-apple-darwin11 and then: -Using the contents of the preprocessed file, create a PCH for these 2 headers: #include <cppa/cppa.hpp> #include <Poco/DirectoryIterator.h> -Use the PCH with the main file that xiemeilong posted initially (not the one from the preprocessed file), I get a crash when destroying the ASTContext: * thread #2: tid = 0x2103, 0x00000001004b0ce0 libclang.dylib`clang::StoredDeclsMap::DestroyAll(clang::StoredDeclsMap*, bool) + 80, stop reason = EXC_BAD_ACCESS (code=13, address=0x0) frame #0: 0x00000001004b0ce0 libclang.dylib`clang::StoredDeclsMap::DestroyAll(clang::StoredDeclsMap*, bool) + 80 frame #1: 0x0000000100471787 libclang.dylib`clang::ASTContext::~ASTContext() + 23 frame #2: 0x0000000100066f25 libclang.dylib`clang::ASTUnit::~ASTUnit() + 2405 frame #3: 0x000000010006659e libclang.dylib`clang::ASTUnit::~ASTUnit() + 14 frame #4: 0x00000001000136bd libclang.dylib`clang::cxtu::CXTUOwner::~CXTUOwner() + 45 frame #5: 0x0000000100056f60 libclang.dylib`clang_indexSourceFile_Impl(void*) + 2800 Not sure if this is same issue that sublime is crashing on. With TOT I get a crash in the compiler when destroying a LambdaMangleContext.
Created attachment 9502 [details] test case
Crash is reproducible with: $ clang -o main.h.pch -x c++-header -std=c++11 main.h $ clang -fsyntax-only -std=c++11 -fsyntax-only main.cpp -include main.h Cloned to rdar://12645424. Thanks to xiemeilong for the test case!
Fixed in r167946