Several potential bugs of memory leak
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux86 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu version: 18.04
bcc version:0.16.17
I found several bugs in bcc , would you help me to check if these bugs are true?thanks for your patience.
=======
step 1 :
In file build/ar/ar.c(build is directory generated by configure) , function xmalloc line 2088 :
Allocate memory to result
step 2 :
In file build/ar/ar.c(build is directory generated by configure) , function xmalloc line 2090 :
Select the false branch at this point (result==null is false)
step 3 :
In file build/ar/ar.c(build is directory generated by configure) , function make_new_symdefs line 1756 :
Function xmalloc executes and stores the return value to strings
step 4 :
In file build/ar/ar.c(build is directory generated by configure) , function make_new_symdefs line 1760 :
Select the true branch at this point (read(indesc,
=======
step 1 :
In file build/bcc/
Allocate memory to p
step 2 :
In file build/bcc/
Select the true branch at this point (p!=null is true)
step 3 :
In file build/bcc/
Function xalloc executes and returns
step 4 :
In file build/bcc/
Function catstr executes and stores the return value to p
step 5 :
In file build/bcc/
Select the true branch at this point (opt_v>1 is true)
step 6 :
In file build/bcc/
Select the true branch at this point (opt_v>2 is true)
step 7 :
In file build/bcc/
Select the false branch at this point (i<dyn_count is false), the allocated memory is leaked
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1941973
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.