Environment:
- Eclipse IDE for C/C++ Developers Version: Mars Release (4.5.0)
- Ubuntu 14.04
I have a problem with 'Debug mode' under Eclipse. I tried to debug a simple program as an experiment:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
char *s = malloc(1);
free(s);
s = NULL;
return 0;
}
The program is building correctly and is working without any Errors/Warnings but during debugging I am receiving following error:

I have searched my entire hard drive and file malloc.c is not present.
The questions:
If the file malloc.c can not be found, why the program can be build and is running correctly?
Why the debugger has a problems with functions visible to the compiler?
Has anyone saw this issue in the past and knows the solution?
What kind of programming environment with debug mode are you using other than Eclipse?
I have found a couple similar topics, but without the general issue solution:
- How can i Escape from "no source available" errors when stepping OVER a stdio function in eclipse (C language, using CDT)
- GDB on eclipse debug mode can't find stdlib/rand.c
Running commands:
# apt-get install libc6-dbg
# apt-get source libc6
Does not solve the problem.