python2.7 crashed with SIGSEGV in vtkDataArrayTemplate<double>::GetTuple()

Bug #758567 reported by Robert Jordens
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vtk (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: python2.7

The following script crashes python2.7 with enthought tvtk

#!/usr/bin/python

import numpy as np
from enthought.tvtk.api import tvtk
from enthought.mayavi.scripts import mayavi2

poly = tvtk.Polygon()
poly.points.from_array(np.array([
    [0,-.5,0], [1.5,0,0], [0,1,0], [-2,0,0]]))
cells = tvtk.CellArray()
cells.insert_next_cell(poly)
pd = tvtk.PolyData(points=poly.points, polys=cells)

@mayavi2.standalone
def view():
    from enthought.mayavi.sources.vtk_data_source import VTKDataSource
    from enthought.mayavi.filters.warp_scalar import WarpScalar
    from enthought.mayavi.filters.poly_data_normals import PolyDataNormals
    from enthought.mayavi.modules.surface import Surface

    mayavi.new_scene()
    src = VTKDataSource(data = pd)
    mayavi.add_source(src)
    mayavi.add_filter(WarpScalar())
    mayavi.add_filter(PolyDataNormals())
    s = Surface()
    mayavi.add_module(s)

if __name__ == '__main__':
    view()

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: python2.7-minimal 2.7.1-5ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
CrashCounter: 1
Date: Tue Apr 12 02:28:51 2011
ExecutablePath: /usr/bin/python2.7
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcCmdline: python se.py
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
SegvAnalysis:
 Segfault happened at: 0x7fda35082248 <_ZN20vtkDataArrayTemplateIdE8GetTupleExPd+40>: mov (%rsi,%rax,1),%rcx
 PC (0x7fda35082248) ok
 source "(%rsi,%rax,1)" (0xbfc756183dac0) not located in a known VMA region (needed readable region)!
 destination "%rcx" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: python2.7
StacktraceTop:
 vtkDataArrayTemplate<double>::GetTuple(long long, double*) () from /usr/lib/libvtkCommon.so.5.4
 vtkPolygon::ComputeNormal(vtkPoints*, int, long long*, double*) () from /usr/lib/libvtkFiltering.so.5.4
 vtkPolyDataNormals::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) () from /usr/lib/libvtkGraphics.so.5.4
 vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) () from /usr/lib/libvtkFiltering.so.5.4
 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) () from /usr/lib/libvtkFiltering.so.5.4
Title: python2.7 crashed with SIGSEGV in vtkDataArrayTemplate<double>::GetTuple()
UpgradeStatus: Upgraded to natty on 2011-04-05 (7 days ago)
UserGroups: adm admin audio cdrom dialout dip fuse lpadmin netdev plugdev sambashare vboxusers

Revision history for this message
Robert Jordens (jordens) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 vtkDataArrayTemplate<double>::GetTuple (this=<value optimized out>, i=<value optimized out>, tuple=0x7fff5df48d30) at /build/buildd/vtk-5.4.2/Common/vtkDataArrayTemplate.txx:612
 GetPoint (p=0x52f33e0, numPts=0, pts=0x8629e38, n=0x7fff5df48e50) at /build/buildd/vtk-5.4.2/Common/vtkPoints.h:119
 vtkPolygon::ComputeNormal (p=0x52f33e0, numPts=0, pts=0x8629e38, n=0x7fff5df48e50) at /build/buildd/vtk-5.4.2/Filtering/vtkPolygon.cxx:103
 vtkPolyDataNormals::RequestData (this=0x850e8c0, inputVector=<value optimized out>, outputVector=<value optimized out>) at /build/buildd/vtk-5.4.2/Graphics/vtkPolyDataNormals.cxx:331
 vtkExecutive::CallAlgorithm (this=0x85fbc10, request=0x84f31c0, direction=<value optimized out>, inInfo=0x8745da0, outInfo=0x86a5d70) at /build/buildd/vtk-5.4.2/Filtering/vtkExecutive.cxx:748

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in python2.7 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Matthias Klose (doko) wrote :

likely an issue with the python-vtk bindings

affects: python2.7 (Ubuntu) → vtk (Ubuntu)
visibility: private → public
Revision history for this message
dino99 (9d9) wrote :

This version has expired long ago; no more supported

Changed in vtk (Ubuntu):
status: New → Invalid
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.