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 #60

Closed
bmah888 opened this issue Feb 28, 2014 · 7 comments
Closed

Memory leak #60

bmah888 opened this issue Feb 28, 2014 · 7 comments

Comments

@bmah888
Copy link
Contributor

bmah888 commented Feb 28, 2014

From devzone.my on February 15, 2013 04:47:36

[src/iperf_api.c:1179]: (error) Memory leak: tcp
[src/locale.c:104]: (error) syntax error
[src/locale.c:334]: (error) Invalid number of character ({) when these macros are defined: '__cplusplus'.

Original issue: http://code.google.com/p/iperf/issues/detail?id=60

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From jef.poskanzer on February 15, 2013 16:15:31

The two errors in locale.c were easily fixed, but I'm surprised that your compiler noted them. It does syntax checking inside #ifdefs that are not currently defined? That seems unusually persnickety. I like persnickety.

The supposed memory leak remains a mystery.

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From devzone.my on February 15, 2013 16:29:08

[src/units.c:90]: (portability) scanf without field width limits can crash with huge input data on libc versions older than 2.13-25. Add a field width specifier to fix this problem:
%i => %3i

Sample program that can crash:

#include <stdio.h>
int main()
{
int a;
scanf("%i", &a);
return 0;
}

To make it crash:
perl -e 'print "5"x2100000' | ./a.out

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From jdugan@es.net on February 15, 2013 16:30:51

Is this analysis coming from valgrind or something?

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From devzone.my on February 15, 2013 16:33:36

@jdu,

Yes cppcheck, http://sourceforge.net/apps/trac/cppcheck/

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From devzone.my on February 15, 2013 16:37:26

[src/iperf_api.c:1179]: (error) Memory leak: tcp
[src/iperf_api.c:1680]: (debug) inconclusive leak of sp: ; alloc ; use ; if return ; return use ; }
[src/iperf_api.c:769]: (debug) uninitialized variables: bailout. can't determine if this condition can be false when previous condition is false: (Nwrite(test.ctrl_sck,&test.state,1,SOCK_STREAM)<0)
[src/iperf_api.c:1232]: (debug) uninitialized variables: bailout. can't determine if this condition can be false when previous condition is false: (test.stats_timer)

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From bltierney@es.net on March 12, 2013 15:46:24

Owner: japoskanzer@lbl.gov
Labels: Milestone-3.0-Release

@bmah888
Copy link
Contributor Author

bmah888 commented Feb 28, 2014

From bltierney@es.net on May 08, 2013 14:33:51

was not able to replicate
problem may be fixed.

Status: WontFix

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

No branches or pull requests

1 participant