-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core dump on -g ? #534
Comments
|
can you upload that binary somewhere? On 14 Jan 2014, at 00:11, Susanne588586 [email protected] wrote:
|
adding -g to gcc crashes radare:
/*
$ r2 -v
radare2 0.9.7git @ linux-little-x86-64 git.0.9.6-335-g772e2ba
commit: 772e2ba build: 2014-01-13
$ gcc -DFORTFY=2 -fstack-protector -fstack-protector-all n.c
$ r2 ./a.out
-- What do you want to debug today?
[0x004004c0]>
$ gcc -DFORTFY=2 -fstack-protector -fstack-protector-all -g n.c
$ r2 ./a.out
Segmentation fault (core dumped)
[12705.778678] traps: r2[23408] general protection ip:7f019b69f99a sp:7fff26e91898 error:0 in libc-2.18.so[7f019b61e000+1a0000]
*/
include <stdio.h>
int main() {
char buf[1024];
int i; //
{
for (i=0; i<512; i++)
printf ("%02x", buf[i]);
printf ("\n");
}
}
Kind Regards
Susan E.
The text was updated successfully, but these errors were encountered: