#41 tests/All.py segfaults python 2.7.2 at end of test suite

None
closed-fixed
Adrian
None
5
2013-09-26
2013-02-27
Jack Howarth
No

Pmw 1.3.3a testsuite still segfaults at the end of a successful run.
Testing Pmw 1.3.3a on fink against blt 2.4z (using gentoo
blt2.4z-8.5.2 ) and python 2.7 produces the final crash and backtrace
in gdb...

% gdb /sw/bin/python2.7
...
(gdb) r All.py
Starting program: /sw/bin/python2.7 All.py
...

. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000091
0x00000001010701c8 in Tcl_PushCallFrame ()
(gdb) bt

0 0x00000001010701c8 in Tcl_PushCallFrame ()

1 0x00000001005589ae in Blt_EnterNamespace ()

2 0x000000010056b5b5 in UnmapVariable ()

3 0x000000010056b9cb in Blt_VectorFree ()

4 0x000000010056d173 in VectorDestroyOp ()

5 0x000000010100cd4c in TclInvokeStringCommand ()

6 0x000000010100dfff in TclEvalObjvInternal ()

7 0x000000010100e3c4 in Tcl_EvalObjv ()

8 0x00000001002ddfa3 in Tkapp_Call ()

9 0x00000001000a1ca7 in PyEval_EvalFrameEx ()

10 0x000000010009fd26 in PyEval_EvalCodeEx ()

11 0x0000000100033bc6 in function_call ()

12 0x0000000100010725 in PyObject_Call ()

13 0x000000010001c6c6 in instancemethod_call ()

14 0x0000000100010725 in PyObject_Call ()

15 0x00000001000a626d in PyEval_CallObjectWithKeywords ()

16 0x000000010001b256 in instance_dealloc ()

17 0x0000000100039776 in list_dealloc ()

18 0x0000000100046200 in insertdict ()

19 0x000000010004609e in PyDict_SetItem ()

20 0x000000010004bb0b in _PyModule_Clear ()

21 0x00000001000b918a in PyImport_Cleanup ()

22 0x00000001000c6137 in Py_Finalize ()

23 0x00000001000d88b3 in Py_Main ()

24 0x00007fff8f0e17e1 in start ()

(gdb)

Discussion

  • Jack Howarth
    Jack Howarth
    2013-02-27

    Log of testsuite run in valgrind on x86_64-apple-darwin10.

     
    Attachments
  • Adrian
    Adrian
    2013-02-27

    Jack,

    This seems to be a problem with BLT and Tcl. Similar issues have been reported all over Linux forums and there are many partial solutions. I'm running Ubuntu 12.10 and have the same problem - apparently I'd have to patch some files in the BLT package to solve it but I'm not going to do that because I change packages too often for it to stick and the problem seems to have a different answer for every platform.

    One way to test whether your problem is BLT related is to install the blt-demo package and try running one of the demos. For example, on my system, running wish graph1.tcl crashes with a similar segmentation fault. The same happens for example for barchart1.tcl. Barchart2.tcl fails with an invalid command error. Apparently BLT uses some outdated Tcl commands. This has never happened to me under Windows so I tend to believe it's not a Pmw bug.

    I'll look into a definite solution and will post if I find anything new - please try running some of the BLT demos and see if you get similar errors.

     
  • Adrian
    Adrian
    2013-08-17

    • status: open --> open-fixed
    • assigned_to: Adrian
    • Group: -->
     
  • Adrian
    Adrian
    2013-08-17

    Thsi problem should have been fixed by the recent Pmw 2.0.0-rc1 and 1.3.3b upgrades which disable BLT functionality by default. If you do need BLT, the errors will reappear after enabling BLT.

     
  • Adrian
    Adrian
    2013-09-26

    • status: open-fixed --> closed-fixed