Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jaknight

    free (malloc) and glibc

    The error was in intialization. I was initializing from 1 instead or 0. Changing it has fixed the problem. Thanks for the help.
  2. jaknight

    free (malloc) and glibc

    I've been running it through a debugger, but what I can glean from it is minimal. I'll give some code: for(...){ /* initializing matrix (matrix subroutine below) */ X=matrix(1, x, 1, y); ... /* freeing matrix */ free_matrix(X, 1, x, 1, y); } float **matrix(long nrl, long nrh, long ncl...
  3. jaknight

    free (malloc) and glibc

    It's strange. The error always occurs when freeing memory. The code is located within a loop. So I allocate memory for a 2D pointer, then when I'm finished with the pointer I free it up for use during the next iteration. This works fine for 5-10 iterations and then this bug appears. The pointer...
  4. jaknight

    free (malloc) and glibc

    When I run a program it spits out the following message: *** glibc detected *** corrupted double-linked list: 0x08b9cb08 *** Aborted (core dumped) It is reproducible for certain parameter values, but for most there is no problem. Backtrace listed the following: #0 0xffffe410 in ?? () #1...

Part and Inventory Search

Back
Top