Where is my core dump file in Ubuntu?
Posted on 2014-11-23
I have a basic buffer overflow program as defined below, and I was trying to get a core dump from gdb. Now, ulimit -c is unlimited (I've also set to 999999999, doesn't matter) and my core dump is nowhere to be found. Any ideas why I can't create a dump?
user@user-VirtualBox:~/c_projects$ cat buff.c
printf("Enter the password:\n");
printf("You entered %s", passw);
access = 0;
access = 1;
printf("access = %i\n", access);
printf("You have access!\n");
user@user-VirtualBox:~/c_projects$ gdb buff
(gdb) break 8
Breakpoint 1 at 0x4006aa: file buff.c, line 8.
Starting program: /home/user/c_projects/buff
Enter the password:
Breakpoint 1, main () at buff.c:8
8 printf("You entered %s", passw);
(gdb) call abort()
Program received signal SIGABRT, Aborted.
0x00007ffff7a4af79 in __GI_raise (sig=sig@entry=6)
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(__GI_abort) will be abandoned.
When the function is done executing, GDB will silently stop.
A debugging session is active.
Inferior 1 [process 3489] will be killed.
Quit anyway? (y or n) y
user@user-VirtualBox:~/c_projects$ sudo find / -iname core -type f -mtime -1 /*No results!*/
user@user-VirtualBox:~/c_projects$ ulimit -c