Orange Forum • View topic - MakeRandomIndices craches

MakeRandomIndices craches

A place to ask questions about methods in Orange and how they are used and other general support.

MakeRandomIndices craches

Postby piecurus » Thu Jul 09, 2009 18:34

That is what I get using MakeRandomIndices...
nothing seems to work with orange!

In [1]: import orange

In [2]: data = orange.ExampleTable("lenses")

In [3]: indices2 = orange.MakeRandomIndices2(p0=6)

In [4]: ind = indices2(data)
*** buffer overflow detected ***: /usr/bin/python terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7fe8746112c7]
/lib/libc.so.6[0x7fe87460f170]
/lib/libc.so.6[0x7fe87460e7ab]
/lib/libc.so.6(__snprintf_chk+0x7b)[0x7fe87460e67b]
/usr/lib/python2.6/orange.so(_ZNK7TOrange25raiseCompatibilityWarningEPKcz+0xe5)[0x7fe87209c885]
/usr/lib/python2.6/orange.so(_ZN19TMakeRandomIndices2clE5GCPtrI17TExampleGeneratorERKf+0x6a6)[0x7fe87211c796]
/usr/lib/python2.6/orange.so(_ZN19TMakeRandomIndices2clE5GCPtrI17TExampleGeneratorE+0x28)[0x7fe87211cb08]
/usr/lib/python2.6/orange.so(_Z23MakeRandomIndices2_callP7_objectS0_S0_+0x3b1)[0x7fe871eb3811]
/usr/bin/python(PyObject_Call+0x5d)[0x41d3bd]
/usr/bin/python(PyEval_EvalFrameEx+0x232f)[0x4a000f]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalFrameEx+0x49fd)[0x4a26dd]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalFrameEx+0x4fd0)[0x4a2cb0]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalFrameEx+0x4fd0)[0x4a2cb0]
/usr/bin/python(PyEval_EvalFrameEx+0x60ce)[0x4a3dae]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalFrameEx+0x4fd0)[0x4a2cb0]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalFrameEx+0x4fd0)[0x4a2cb0]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalFrameEx+0x4fd0)[0x4a2cb0]
/usr/bin/python(PyEval_EvalCodeEx+0x869)[0x4a4649]
/usr/bin/python(PyEval_EvalCode+0x32)[0x4a4762]
/usr/bin/python(PyRun_FileExFlags+0x13c)[0x4c4c3c]
/usr/bin/python(PyRun_SimpleFileExFlags+0x1fb)[0x4c4f6b]
/usr/bin/python(Py_Main+0xb9e)[0x4189ce]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fe8745305a6]
/usr/bin/python[0x417ae9]
======= Memory map: ========
00400000-00616000 r-xp 00000000 08:06 5817259 /usr/bin/python2.6
00815000-00816000 r--p 00215000 08:06 5817259 /usr/bin/python2.6
00816000-00876000 rw-p 00216000 08:06 5817259 /usr/bin/python2.6
00876000-00885000 rw-p 00876000 00:00 0
02008000-026f5000 rw-p 02008000 00:00 0 [heap]
7fe871657000-7fe87166d000 r-xp 00000000 08:06 3899453 /lib/libgcc_s.so.1
7fe87166d000-7fe87186d000 ---p 00016000 08:06 3899453 /lib/libgcc_s.so.1
7fe87186d000-7fe87186e000 r--p 00016000 08:06 3899453 /lib/libgcc_s.so.1
7fe87186e000-7fe87186f000 rw-p 00017000 08:06 3899453 /lib/libgcc_s.so.1
7fe87186f000-7fe871960000 r-xp 00000000 08:06 5818788 /usr/lib/libstdc++.so.6.0.10
7fe871960000-7fe871b60000 ---p 000f1000 08:06 5818788 /usr/lib/libstdc++.so.6.0.10
7fe871b60000-7fe871b67000 r--p 000f1000 08:06 5818788 /usr/lib/libstdc++.so.6.0.10
7fe871b67000-7fe871b69000 rw-p 000f8000 08:06 5818788 /usr/lib/libstdc++.so.6.0.10
7fe871b69000-7fe871b7c000 rw-p 7fe871b69000 00:00 0
7fe871b7c000-7fe87227f000 r-xp 00000000 08:06 13074839 /usr/lib/python2.6/orange.so
7fe87227f000-7fe87247e000 ---p 00703000 08:06 13074839 /usr/lib/python2.6/orange.so
7fe87247e000-7fe872496000 r--p 00702000 08:06 13074839 /usr/lib/python2.6/orange.so
7fe872496000-7fe8724e8000 rw-p 0071a000 08:06 13074839 /usr/lib/python2.6/orange.so
7fe8724e8000-7fe872517000 rw-p 7fe8724e8000 00:00 0
7fe872517000-7fe87251e000 r-xp 00000000 08:06 5908713 /usr/lib/python2.6/lib-dynload/_ssl.so
7fe87251e000-7fe87271e000 ---p 00007000 08:06 5908713 /usr/lib/python2.6/lib-dynload/_ssl.so
7fe87271e000-7fe87271f000 r--p 00007000 08:06 5908713 /usr/lib/python2.6/lib-dynload/_ssl.so
7fe87271f000-7fe872720000 rw-p 00008000 08:06 5908713 /usr/lib/python2.6/lib-dynload/_ssl.so
7fe872720000-7fe872724000 r-xp 00000000 08:06 5908709 /usr/lib/python2.6/lib-dynload/_ls

Re: MakeRandomIndices craches

Postby irfanm6d » Tue Aug 11, 2009 4:16

hi,
I am getting a similar crash on orange.MakeRandomIndices2 method. Did you get resolution on this?

thanks,
Irfan

Postby marko » Tue Aug 11, 2009 7:05

Your example works for me (newest version, 32-bit Ubuntu 9.04). What kind of a system are you using? Which version or Orange?

Regards,
Marko


Return to Questions & Support