Coder Social home page Coder Social logo

Comments (2)

0xsmirk avatar 0xsmirk commented on June 29, 2024

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.

antirez avatar antirez commented on June 29, 2024

Fixed, thanks!

from kilo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.