![]() |
|
|
|
|
|||||||
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| install glibc-2.6.1 | big123456 | UNIX for Advanced & Expert Users | 4 | 10-01-2007 01:46 AM |
| package glibc-2.3.2-95.27_x86.rpm | big123456 | Linux | 1 | 01-24-2007 05:49 AM |
| extract glibc-2.3.2.tar.tar | big123456 | Linux | 2 | 01-24-2007 02:33 AM |
| Updating glibc on a SuSE OpenExchange box | cw1972 | Linux | 0 | 09-30-2003 03:25 AM |
| glibc 2.2.2 | jurrien | UNIX for Dummies Questions & Answers | 1 | 03-07-2001 11:56 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
glibc error
Hi All,
This is my first time posting on this forum. I'd like to participate actively on this list. Here we go! I'm making a little application and I'm using ncurses. After a while using it, I receive the following error and the stack trace is shown: ***glibc detected*** malloc() : memory corruption Anybody knows when glibc throws this error?? I'll appreciate your help! Thanks in advance! |
| Forum Sponsor | ||
|
|
|
|||
|
malloc is complaining that you have corrupted a pointer in some way example:
Code:
char *ptr=malloc(100);
char tmp[10={0x0};
..........
.......
ptr++;
............
..........
free(ptr);
|
|
|||
|
Hi jim,
Thanks a lot for your answer, I'll re-check my code in order to find when malloc is trying to free up an incorrect memory address. If I can't find the error, I'll post my code, because the error is thrown by a function of ncurses library. I think I'm passing a bad argument to this function. Thank again! |