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

Memory leak not reported #836

Open
yc2lee opened this issue Nov 15, 2017 · 3 comments
Open

Memory leak not reported #836

yc2lee opened this issue Nov 15, 2017 · 3 comments
Labels

Comments

@yc2lee
Copy link
Collaborator

yc2lee commented Nov 15, 2017

The following code generates a memory leak error, which it's supposed to do.

#include <stdlib.h>
#include <stdio.h>

int *f(void) {
  //const unsigned int i = 100;
  int *a = malloc(100);
  return a;
}

int main(void) {
  int *b = f();
  printf("%p\n", b);
  return 0;
}

But if you uncomment the definition of i and use malloc(i), no memory leaks are reported.

The problem is not ASAN parser because the binary executable created by Seashell does not report any errors either.

@yc2lee yc2lee added the bug label Nov 15, 2017
@yc2lee
Copy link
Collaborator Author

yc2lee commented Nov 17, 2017

BTW this problem happens on both old and new Seashell versions.

yc2lee added a commit to yc2lee/seashell that referenced this issue Nov 23, 2017
 * Hack around issue cs136#836 by using clang executable, which finds the memory leak properly
 * Log out button should go back to Seashell sign-in page instead of CAS
 * Update sign-in page with supported browsers and better "wrong password" message
 * Disable offline mode
@e45lee
Copy link
Contributor

e45lee commented Nov 23, 2017 via email

@e45lee
Copy link
Contributor

e45lee commented Nov 24, 2017 via email

yc2lee added a commit that referenced this issue Nov 24, 2017
Old Seashell (v3) Updates:
 * Hack around issue #836 by using clang executable, which finds the memory leak properly
 * Log out button should go back to Seashell sign-in page instead of CAS
 * Update sign-in page with supported browsers and better "wrong password" message
 * Disable offline mode
yc2lee added a commit to yc2lee/seashell that referenced this issue Nov 27, 2017
yc2lee added a commit that referenced this issue Nov 28, 2017
Hack around issue #836 by using clang executable, which finds the memory leak properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants