<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8603</bug_id>
          
          <creation_ts>2015-10-28 11:36:49 +0000</creation_ts>
          <short_desc>4 bytes leakage while installing a package which is dependent on some package and that package is previously installeed</short_desc>
          <delta_ts>2015-11-04 17:52:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="jatin jain">jatinvatsalya</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55897</commentid>
    <comment_count>0</comment_count>
    <who name="jatin jain">jatinvatsalya</who>
    <bug_when>2015-10-28 11:36:49 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55951</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-10-28 18:13:23 +0000</bug_when>
    <thetext>*** Bug 8602 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56206</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-11-04 17:52:28 +0000</bug_when>
    <thetext>Fixed on af3a03f18e61555d61516bc6878dfe1d41af69a2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>