Error: malloc. C: 3096

Source: Internet
Author: User

 

An error occurred while allocating space for using malloc.CodeAs follows:

Malloc. c: 3096: sysmalloc: assertion '(old_top = (mbinptr) (char *) & (AV)-> bins [(1)-1) * 2])-_ builtin_offsetof (struct malloc_chunk, FD) & old_size = 0) | (unsigned long) (old_size)> = (unsigned long) (_ builtin_offsetof (struct malloc_chunk,
Fd_nextsize) + (2 * (sizeof (size_t)-1 ))&~ (2 * (sizeof (size_t)-1) & (old_top)-> size & 0 × 1) & (unsigned long) old_end & pagemask) = 0) 'failed.

InProgramIn, because the last malloc (or new) allocation space is used out of bounds, this allocation error occurs. Check whether the space that last called malloc (or new) is used correctly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.