CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Feb 2003
    Location
    London, UK
    Posts
    23

    Tracing a memory error on unix

    Hi there,
    I hope this is not a too general question. I have a reasonable large program and recently when I run it I get the following errors:

    *** malloc[566]: error for object 0x1f2cb0: Incorrect checksum for freed object - object was probably modified after being freed; break at szone_error

    Program received signal EXC_BAD_ACCESS, Could not access memory.
    0x900042a8 in free_list_remove_ptr ()

    Now i have no idea how to trace this back to its source. I am using gcc 3.1 on Mac OS X. I have tried doing a backtrace in gdb but the thing that is points to is clearing a valarray which i have had no problem with previously.

    Any hints would be appreciated,

    Dan

    PS Here is the backtrace:
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured