kengo
kengo

Reputation: 11

Core dumped after program exits

I have a quite intriguing issue with my program (compiled with gcc 4.6.4 on ubuntu 12.04). When I dynamically build the executable, the program runs flawlessly. But when I build it statically (with -static flag), it gives me a 'core dumped' after exiting (e.g. after 'return 0' in main). Unfortunately, the whole program is too big to pose in here. What are the possibilities?

Upvotes: 1

Views: 516

Answers (2)

In addition of the two possibilities in johnnycrash answer:

Upvotes: 2

johnnycrash
johnnycrash

Reputation: 5344

1) You have a thread still executing. 2) You are overwriting memory and you get lucky with the dynamic libraries.

Upvotes: 1

Related Questions