While I can visually confirm that the fix in comment #10 is now in the
zesty source code (and the fix is not in the xenial/yakkety source
code), I'm unable to actually recreate the experience of a valgrind
failure on xenial (I've attempted with both i386 and amd64 xenial
containers). I additionally rebuilt the amd64 source with -O0 -g but
that did not affect the valgrind run as well.

Reporter, can you trigger this bug on the Ubuntu Xenial (16.04)?  To get
this accepted through the SRU approval process we should really have
some testcase that actually triggers the issue.

root@x2:~# ip -V
ip utility, iproute2-ss151103
root@x2:~# valgrind ip netns add black2
==916== Memcheck, a memory error detector
==916== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==916== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==916== Command: ip netns add black2
==916== 
==916== 
==916== HEAP SUMMARY:
==916==     in use at exit: 0 bytes in 0 blocks
==916==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==916== 
==916== All heap blocks were freed -- no leaks are possible
==916== 
==916== For counts of detected and suppressed errors, rerun with: -v
==916== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
root@x2:~# 


So where this sits:
1) Appears fixed in zesty
2) Needs a testcase/recreate scenario if desired fixed in Yakkety/Xenial

** Changed in: iproute2 (Ubuntu)
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iproute2 in Ubuntu.
https://bugs.launchpad.net/bugs/1615209

Title:
  ip crashes after a few times adding and removing network namespaces

Status in iproute2 package in Ubuntu:
  Incomplete

Bug description:
  # which ip
  /sbin/ip
  # valgrind ip netns add black2
  ==22804== Memcheck, a memory error detector
  ==22804== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
  ==22804== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
  ==22804== Command: ip netns add black2
  ==22804== 
  ==22804== Invalid write of size 1
  ==22804==    at 0x4031F43: memcpy (in 
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  ==22804==    by 0x8059C83: ??? (in /bin/ip)
  ==22804==    by 0x805AF9A: netns_map_init (in /bin/ip)
  ==22804==    by 0x805B01F: do_netns (in /bin/ip)
  ==22804==    by 0x804DF67: ??? (in /bin/ip)
  ==22804==    by 0x804DA11: main (in /bin/ip)
  ==22804==  Address 0x4227094 is 0 bytes after a block of size 28 alloc'd
  ==22804==    at 0x402D17C: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
  ==22804==    by 0x8059C5E: ??? (in /bin/ip)
  ==22804==    by 0x805AF9A: netns_map_init (in /bin/ip)
  ==22804==    by 0x805B01F: do_netns (in /bin/ip)
  ==22804==    by 0x804DF67: ??? (in /bin/ip)
  ==22804==    by 0x804DA11: main (in /bin/ip)
  ==22804== 
  Cannot create namespace file "/var/run/netns/black2": File exists
  ==22804== 
  ==22804== HEAP SUMMARY:
  ==22804==     in use at exit: 28 bytes in 1 blocks
  ==22804==   total heap usage: 2 allocs, 1 frees, 32,824 bytes allocated
  ==22804== 
  ==22804== LEAK SUMMARY:
  ==22804==    definitely lost: 0 bytes in 0 blocks
  ==22804==    indirectly lost: 0 bytes in 0 blocks
  ==22804==      possibly lost: 0 bytes in 0 blocks
  ==22804==    still reachable: 28 bytes in 1 blocks
  ==22804==         suppressed: 0 bytes in 0 blocks
  ==22804== Rerun with --leak-check=full to see details of leaked memory
  ==22804== 
  ==22804== For counts of detected and suppressed errors, rerun with: -v
  ==22804== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1615209/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to