Comments (2)
why my code is:
==51677==ERROR: AddressSanitizer failed to allocate 0x1999c000 (429506560) bytes of LargeMmapAllocator (error code: 12)
==51677==Process memory map follows:
0x000000400000-0x000000548000 /home/clb/binary/kilo/kilo
0x000000747000-0x000000748000 /home/clb/binary/kilo/kilo
0x000000748000-0x00000074c000 /home/clb/binary/kilo/kilo
0x00000074c000-0x0000013b1000
0x00007fff7000-0x00008fff7000
0x00008fff7000-0x02008fff7000
0x02008fff7000-0x10007fff8000
0x600000000000-0x602000000000
0x602000000000-0x602000010000
0x602000010000-0x602e00000000
0x602e00000000-0x602e00010000
0x602e00010000-0x604000000000
0x604000000000-0x604000010000
0x604000010000-0x604e00000000
0x604e00000000-0x604e00010000
0x604e00010000-0x60c000000000
0x60c000000000-0x60c000010000
0x60c000010000-0x60ce00000000
0x60ce00000000-0x60ce00010000
0x60ce00010000-0x616000000000
0x616000000000-0x616000010000
0x616000010000-0x616e00000000
0x616e00000000-0x616e00010000
0x616e00010000-0x621000000000
0x621000000000-0x621000010000
0x621000010000-0x621e00000000
0x621e00000000-0x621e00010000
0x621e00010000-0x624000000000
0x624000000000-0x624000010000
0x624000010000-0x624e00000000
0x624e00000000-0x624e00010000
0x624e00010000-0x625000000000
0x625000000000-0x625000010000
0x625000010000-0x625e00000000
0x625e00000000-0x625e00010000
0x625e00010000-0x629000000000
0x629000000000-0x629000010000
0x629000010000-0x629e00000000
0x629e00000000-0x629e00010000
0x629e00010000-0x62d000000000
0x62d000000000-0x62d000010000
0x62d000010000-0x62de00000000
0x62de00000000-0x62de00010000
0x62de00010000-0x631000000000
0x631000000000-0x631000020000
0x631000020000-0x631e00000000
0x631e00000000-0x631e00010000
0x631e00010000-0x640000000000
0x640000000000-0x640000003000
0x7f33a4662000-0x7f33af400000
0x7f33af500000-0x7f33af600000
0x7f33af661000-0x7f33b1a36000
0x7f33b1a36000-0x7f33b1bf6000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f33b1bf6000-0x7f33b1df6000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f33b1df6000-0x7f33b1dfa000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f33b1dfa000-0x7f33b1dfc000 /lib/x86_64-linux-gnu/libc-2.23.so
0x7f33b1dfc000-0x7f33b1e00000
0x7f33b1e00000-0x7f33b1e16000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f33b1e16000-0x7f33b2015000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f33b2015000-0x7f33b2016000 /lib/x86_64-linux-gnu/libgcc_s.so.1
0x7f33b2016000-0x7f33b2019000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f33b2019000-0x7f33b2218000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f33b2218000-0x7f33b2219000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f33b2219000-0x7f33b221a000 /lib/x86_64-linux-gnu/libdl-2.23.so
0x7f33b221a000-0x7f33b2322000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f33b2322000-0x7f33b2521000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f33b2521000-0x7f33b2522000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f33b2522000-0x7f33b2523000 /lib/x86_64-linux-gnu/libm-2.23.so
0x7f33b2523000-0x7f33b252a000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7f33b252a000-0x7f33b2729000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7f33b2729000-0x7f33b272a000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7f33b272a000-0x7f33b272b000 /lib/x86_64-linux-gnu/librt-2.23.so
0x7f33b272b000-0x7f33b2743000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f33b2743000-0x7f33b2942000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f33b2942000-0x7f33b2943000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f33b2943000-0x7f33b2944000 /lib/x86_64-linux-gnu/libpthread-2.23.so
0x7f33b2944000-0x7f33b2948000
0x7f33b2948000-0x7f33b296e000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7f33b2990000-0x7f33b2b5d000
0x7f33b2b5d000-0x7f33b2b6d000
0x7f33b2b6d000-0x7f33b2b6e000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7f33b2b6e000-0x7f33b2b6f000 /lib/x86_64-linux-gnu/ld-2.23.so
0x7f33b2b6f000-0x7f33b2b70000
0x7ffe0835b000-0x7ffe0837d000 [stack]
0x7ffe083a9000-0x7ffe083ac000 [vvar]
0x7ffe083ac000-0x7ffe083ae000 [vdso]
0xffffffffff600000-0xffffffffff601000 [vsyscall]
==51677==End of process memory map.
==51677==AddressSanitizer CHECK failed: /build/llvm-toolchain-4.0-euGZ6h/llvm-toolchain-4.0-4.0/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.cc:120 "((0 && "unable to mmap")) != (0)" (0x0, 0x0)
#0 0x4dc0df (/home/clb/binary/kilo/kilo+0x4dc0df)
#1 0x4f7055 (/home/clb/binary/kilo/kilo+0x4f7055)
#2 0x4e6571 (/home/clb/binary/kilo/kilo+0x4e6571)
#3 0x4f01c6 (/home/clb/binary/kilo/kilo+0x4f01c6)
#4 0x423c14 (/home/clb/binary/kilo/kilo+0x423c14)
#5 0x4d1f24 (/home/clb/binary/kilo/kilo+0x4d1f24)
#6 0x50f16e (/home/clb/binary/kilo/kilo+0x50f16e)
#7 0x50faf0 (/home/clb/binary/kilo/kilo+0x50faf0)
#8 0x5117f0 (/home/clb/binary/kilo/kilo+0x5117f0)
#9 0x514543 (/home/clb/binary/kilo/kilo+0x514543)
#10 0x7f33b1a5682f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#11 0x4198c8 (/home/clb/binary/kilo/kilo+0x4198c8)
I become a fool!!
from kilo.
Fixed, thanks!
from kilo.
Related Issues (20)
- Heap buffer overflow in kilo's editor_update_syntax(…) HOT 7
- How to support python highlight? HOT 1
- Question: Why kilo allocating 9 bytes memory for a non-printable character? HOT 2
- Use smcup and rmcup to save/restore screen buffer HOT 1
- Status screen not refreshing upon closing HOT 1
- Weird cursor behaviour when non-English characters are typed HOT 1
- Why does it work HOT 3
- compiler warnings HOT 3
- How can I debug the program using GDB? HOT 1
- /usr/include/features.h:185:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] HOT 2
- ‘UINT32_MAX’ undeclared problem in Linux HOT 1
- getCursorPosition sometimes fails and sometimes it works but ...
- [Documentation] Tutorial? HOT 1
- use on Windows? HOT 4
- Seg Fault HOT 4
- Clang Warnings HOT 1
- License HOT 1
- Syntax Highlighting Segfault HOT 1
- Segfault at if '\<letter>' entered inside string & if compiled with musl-gcc (a proposed fix is also included)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kilo.