Ticket #1141 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

pickling of SimpleTreeLerrner segfaults

Reported by: marko Owned by: janez
Milestone: Component: library
Severity: major Keywords:
Cc: jurezb Blocking:
Blocked By:

Description

The following segfaults on my machine.

import Orange, pickle

for i in range(100):
    print i
    learner = Orange.classification.tree.SimpleTreeLearner()
    data = Orange.data.Table("titanic")
    pickle.dumps(learner)

Change History

comment:1 Changed 3 years ago by jurezb

  • Status changed from new to assigned
  • Owner changed from jurezb to janez

Orange.misc.random is causing the crash.

import Orange, pickle

for i in range(100):
    print i
    rgen = Orange.misc.Random(i)
    data = Orange.data.Table("titanic")
    pickle.dumps(rgen)

Janez, can you take a look at it?

comment:2 Changed 3 years ago by janez

  • Cc jurezb added

On Windows it sometimes crashed, sometimes it did not. I fixed a possible problem - and crash did it never again.

Jure, Marko, it would be splendid if you could kindly verify that this also solves the problem on that other operating system.

comment:3 Changed 3 years ago by jurezb

  • Status changed from assigned to closed
  • Resolution set to fixed

Both examples now work on my machine. I'm closing the ticket.

Note: See TracTickets for help on using tickets.