Bug 530277 - blt demo programs crash
Summary: blt demo programs crash
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: blt
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Wart
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-22 06:14 UTC by Scott Smedley
Modified: 2010-12-04 07:24 UTC (History)
2 users (show)

Fixed In Version: 2.4-32.z.fc12
Clone Of:
Environment:
Last Closed: 2010-12-04 07:24:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Scott Smedley 2009-10-22 06:14:16 UTC
Most of demo programs shipped with the BLT Tcl/Tk package crash.


Version-Release number of selected component (if applicable): blt-2.4-30.z.fc11.i586


How reproducible: always


Steps to Reproduce:
1. cd /usr/share/tcl8.5/blt2.4/demos
2. wish ./tabnotebook2.tcl
3. wish ./barchart1.tcl
4. wish ./graph1.tcl
5. wish ./tabset2.tcl 
etc.

  
Actual results:

Most of the programs either segfault, or give an error message similar to:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  147 (RENDER)
  Minor opcode of failed request:  4 (RenderCreatePicture)
  Serial number of failed request:  514
  Current serial number in output stream:  522


Expected results:

obvious

Additional info:

Some demo scripts actually work ok:

ie.
wish ./tabnotebook1.tcl
wish ./tabset1.tcl

Comment 1 Fedora Update System 2010-01-12 23:44:19 UTC
blt-2.4-32.z.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update blt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0417

Comment 2 Fedora Update System 2010-01-12 23:49:44 UTC
blt-2.4-31.z.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update blt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-0409

Comment 3 Scott Smedley 2010-01-13 00:07:31 UTC
I don't appear to be able to test out the fix:

lapss>> sudo yum --enablerepo=updates-testing update blt
Loaded plugins: refresh-packagekit
Setting up Update Process
No Packages marked for Update

Scott.

Comment 4 Scott Smedley 2010-01-14 01:13:48 UTC
yum update worked this morning. *shrug*

The update appears to have fixed the X error, but some of the demo
programs are now giving a Tcl error:

lapss>> wish ./tabnotebook2.tcl 
Error in startup script: can't read "cosX(max)": no such element in array
    while executing
"expr ($cosX(max) - $cosX(min)) * 0.025"
    invoked from within
"set pct [expr ($cosX(max) - $cosX(min)) * 0.025]"
    (file "scripts/graph2.tcl" line 102)
    invoked from within
"source scripts/$file.tcl"
    (in namespace eval "::graph2" script line 3)
    invoked from within
"namespace eval $file {
	set graph [graph .t.$file]
	source scripts/$file.tcl
	.t tab configure $index -window $graph
	incr index
    }"
    ("foreach" body line 2)
    invoked from within
"foreach file { graph1 graph2 graph3 graph5 } {
    namespace eval $file {
	set graph [graph .t.$file]
	source scripts/$file.tcl
	.t tab configure $ind..."
    (file "./tabnotebook2.tcl" line 72)

Comment 5 Wart 2010-01-14 22:05:42 UTC
I've narrowed down the bug to a simple test case.  It appears that the vector command does not work properly when run inside of a Tcl namespace.  Run the following script to see the problem.

I'll try to reproduce this with the CVS version of blt and report it upstream.

#!/usr/bin/wish

package require BLT

namespace import blt::*

vector create x
x seq 1 10 1
puts "Outside of namespace: x contains [x range 0 end]"
puts "Outside of namespace: x min is $x(min)"

namespace eval testNs {
    vector create y
    y seq 1 10 1
    puts "Inside of namespace: y contains [y range 0 end]"
    puts "Inside of namespace: y min is $y(min)"
}

Comment 6 Fedora Update System 2010-01-26 00:54:54 UTC
blt-2.4-31.z.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-01-26 01:02:54 UTC
blt-2.4-32.z.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Wart 2010-01-26 01:09:19 UTC
Re-opening bug since the update doesn't really fix this latest namespace issue.

Comment 9 Bug Zapper 2010-04-28 10:55:03 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 10 Bug Zapper 2010-06-28 15:05:29 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Scott Smedley 2010-06-29 00:11:46 UTC
Reopened. My comment on 13/Jan/2010 still applies for Fedora 12.

Comment 12 Bug Zapper 2010-11-04 09:16:01 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 13 Bug Zapper 2010-12-04 07:24:02 UTC
Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.