Thread: munmap_chunk(): invalid pointer

  1. #1
    Registered User
    Join Date
    Dec 2020
    Posts
    1

    munmap_chunk(): invalid pointer

    How do I fix my munmap_chunk(): invalid pointer error? It is being printed after my intended output?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Post the smallest and simplest compilable program that demonstrates the error.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. invalid pointer
    By hscharf in forum C Programming
    Replies: 4
    Last Post: 12-14-2015, 06:37 AM
  2. realloc() invalid pointer
    By JayBlay77 in forum C Programming
    Replies: 3
    Last Post: 02-17-2010, 09:55 AM
  3. munmap_chunk(): invalid pointer
    By MK27 in forum C Programming
    Replies: 2
    Last Post: 09-05-2008, 03:51 PM
  4. glibc invalid pointer error
    By benshi in forum C++ Programming
    Replies: 4
    Last Post: 05-12-2008, 10:24 AM
  5. invalid pointer conversion
    By jimzy in forum C++ Programming
    Replies: 8
    Last Post: 04-13-2007, 12:21 PM

Tags for this Thread