Bug 8603 - 4 bytes leakage while installing a package which is dependent on some package and that package is previously installeed
Summary: 4 bytes leakage while installing a package which is dependent on some package...
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.0
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
: 8602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-28 11:36 UTC by jatin jain
Modified: 2015-11-04 17:52 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jatin jain 2015-10-28 11:36:49 UTC
if i install a package A which is dependent on B and B is already installed then i will get 4 bytes leakage.

i checked using valgrind

==24312== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==24312==    at 0x402C109: calloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==24312==    by 0x406B504: xcalloc (xfuncs.c:55)
==24312==    by 0x4062605: buildProvides (pkg_depends.c:800)
==24312==    by 0x40652EC: hash_insert_pkg (pkg_hash.c:730)
==24312==    by 0x406549C: pkg_hash_add_from_file (pkg_hash.c:158)
==24312==    by 0x4065A00: pkg_hash_load_status_files (pkg_hash.c:254)
==24312==    by 0x804929F: main (opkg.c:396)
==24312== 
==24312== LEAK SUMMARY:
==24312==    definitely lost: 4 bytes in 1 blocks
==24312==    indirectly lost: 0 bytes in 0 blocks
==24312==      possibly lost: 0 bytes in 0 blocks
==24312==    still reachable: 0 bytes in 0 blocks
==24312==         suppressed: 0 bytes in 0 blocks
Comment 1 Alejandro del Castillo 2015-10-28 18:13:23 UTC
*** Bug 8602 has been marked as a duplicate of this bug. ***
Comment 2 Alejandro del Castillo 2015-11-04 17:52:28 UTC
Fixed on af3a03f18e61555d61516bc6878dfe1d41af69a2