Ticket #55 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

python bindings segfault when accessing closed wiimote

Reported by: toots Owned by: dsmith
Priority: major Milestone:
Component: other Version: 0.6.00
Keywords: Cc:

Description

 http://bugs.debian.org/458303:

After calling .close() on an instance of cwiid.Wiimote, interacting
with it further causes a segfault:

$ ipython 

In [1]: import cwiid

In [2]: wiimote = cwiid.Wiimote()

In [3]: wiimote.close()

In [4]: wiimote.state
Segmentation fault

(I used wiimote.state as an example; other actions, such as writing to
wiimote.led, also trigger the segfault.)

I would expect a Python exception of some kind instead.

- Josh Triplett

Change History

Changed 5 years ago by dsmith

  • version changed from 0.5.02 to 0.6.00

Excellent bug for a new developer - any takers?

Changed 4 years ago by jonaskoelker

I improved the patch in ticket #78 --- I think :) --- so as to throw a ValueError? when the wiimote is closed.

Consider it taken :)

Changed 4 years ago by dsmith

  • status changed from new to closed
  • resolution set to fixed

Fixed r186

Note: See TracTickets for help on using tickets.