OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000111OMNeT++runtime / Tkenvpublic2009-10-13 11:102009-10-13 11:29
Reporterandras 
Assigned Toandras 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionwon't fix 
Platformx86OSGNU/LinuxOS Version?
Product Version4.0 
Target Version4.1Fixed in Version 
Summary0000111: Crash when clicking on table heading of an inspector window
DescriptionTkenv crashes when one clicks on the table heading of an inspector window, trying to change the ordering of table rows.

This has been observed on Ubuntu 9.04 32-bit, using Tcl/Tk 8.4, with BLT (BLT provides the multi-column table widget).

This seems to be a bug in either Tcl8.4 or BLT 2.4z, and is caused (or triggered) by the blt::busy commmand. Removing the blt::busy calls from multicolumnlistbox_blt_sortcolumn in src/tkenv/widgets.tcl solves the issue.

Upgrading to Tcl/Tk 8.5 also makes the crash go away.

Workarounds:
 - option 1: upgrade to Tcl/Tk 8.5: sudo apt-get install tk8.5-dev (then don't forget to rebuild OMNeT++: ./configure, make cleanall, make)
 - option 2: edit omnetpp/src/tkenv/widgets.tcl, and comment out the lines containing "blt::busy" (0000972 and 0000974) by prefixing them with #

A side effect of workaround 2 is that now the code won't prevent user interaction *while* the listbox ordering is being updated, so if some user action (e.g. "run simulation") is triggered too fast after clicking the table header, it may get called within the table ordering code, with unpredictable results. The practical chance of that actually happening is, however, virtually zero.

Steps To ReproduceRun any simulation (e.g. samples/aloha), open an inspector for a simple module (e.g. double-click it); when the inspector comes up, click a table column (e.g. "Name") --> crash.
Additional InformationStack trace:
            36 <symbol is not available> 0x00000000
            <snip>
            33 TclInvokeStringCommand() 0xb77015ce
            <snip>
            25 Tcl_GlobalEval() 0xb77055f6
            24 <symbol is not available> 0xb688f2bd
            23 Blt_TreeViewColumnOp() 0xb688e287
            22 Blt_TreeViewWidgetInstCmd() 0xb6885588
            21 TclEvalObjvInternal() 0xb770294e
            <snip>
            11 Tk_HandleEvent() 0xb77c1de6
            <snip>
            6 Tkenv::run()
            <snip>
            3 main()


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000184)
andras (administrator)
2009-10-13 11:12

Not a bug in OMNeT++; problem will go away as distros upgrade to Tk 8.5.

- Issue History
Date Modified Username Field Change
2009-10-13 11:10 andras New Issue
2009-10-13 11:12 andras Note Added: 0000184
2009-10-13 11:12 andras Status new => resolved
2009-10-13 11:12 andras Resolution open => won't fix
2009-10-13 11:12 andras Assigned To => andras
2009-10-13 11:16 andras Description Updated
2009-10-13 11:29 andras Description Updated


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker