Skip to content
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

problem in core dumped #13

Open
ms31376 opened this issue Feb 6, 2017 · 2 comments
Open

problem in core dumped #13

ms31376 opened this issue Feb 6, 2017 · 2 comments

Comments

@ms31376
Copy link

ms31376 commented Feb 6, 2017

hi when in run this code
#include <stdio.h>
#include <stdlib.h>
void func()
{
int a = 5 ;
int b = 2;
int ret = 0 ;
if(a<b){
ret = a;
}
if(a>b){
ret = b;
}
printf( "Max value is : %d\n", ret );
}

void main(int argc, char** argv){
func();
exit();
}

with this statment gcc ../Desktop/c1/main.c -E && ./bin/milu --debug=dot -f func.txt ../Desktop/c1/main.c
i get this message:
1.Segmentation fault (core dumped)

@Brick7Face
Copy link

I also have this issue

@JingTianM
Copy link

You can try to remove the header file and the main function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants