AssertionError on assert size == part.size

Bug #1192838 reported by Kasper Dupont
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
guppy (Ubuntu)
Triaged
Low
Unassigned

Bug Description

When trying to use guppy to print information about heap usage in python, it raises an exception as it is analysing the structure of the heap.

$ python
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from guppy import hpy
>>> h = hpy()
>>> print h.heap()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/guppy/heapy/UniSet.py", line 348, in __str__
    return self.fam.c_str(self)
  File "/usr/lib/pymodules/python2.7/guppy/heapy/UniSet.py", line 1616, in c_str
    a.fam.get_partition(a).ppob(ob)
  File "/usr/lib/pymodules/python2.7/guppy/heapy/UniSet.py", line 1704, in get_partition
    p = a.fam.Part.partition(a, a.er)
  File "/usr/lib/pymodules/python2.7/guppy/heapy/Part.py", line 774, in partition
    return SetPartition(self, set, er)
  File "/usr/lib/pymodules/python2.7/guppy/heapy/Part.py", line 705, in __init__
    assert size == part.size
AssertionError
>>>

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-guppy 0.1.9-2ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-48.74-generic 3.2.46
Uname: Linux 3.2.0-48-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: i386
Date: Thu Jun 20 08:16:53 2013
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: guppy
UpgradeStatus: Upgraded to precise on 2012-05-08 (407 days ago)

Revision history for this message
Kasper Dupont (ubuntu-launchpad-feb) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I get the same assertion error when I attempt to run hpy().heap() on Ubuntu Saucy. Strange thing is though, it looks like once you've hit the error any subsequent calls to this method works fine.

Changed in guppy (Ubuntu):
status: New → Confirmed
tags: added: quantal raring saucy
Changed in guppy (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Still present in guppy 0.1.9-2ubuntu4 on Ubuntu Utopic.

tags: added: trusty utopic
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.