error

This is a discussion on error within the C++ Programming forums, part of the General Programming Boards category; Hi What does the following error message mean? *** glibc detected *** double free or corruption (out): 0x0804d0d8 *** Aborted ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    65

    error

    Hi
    What does the following error message mean?

    *** glibc detected *** double free or corruption (out): 0x0804d0d8 ***
    Aborted
    SHuo

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,340
    It sounds like you are deleting a pointer twice. Are you using dynamic memory (new/delete)? Are you using classes? Are you using them together without a copy constructor and copy assignment operator?

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    To illustrate with code.....

    Code:
    ...
    string *s = new string("Deleted 2x.");
    delete s;
    delete s; /* DANGER, WILL ROBINSON! */
    ...
    This is something dangerous that should not be done.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21