close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 20 years ago

Last modified 20 years ago

#176 closed defect (fixed)

Tol Base se cae cuando se intenta dibujar intersección vacía

Reported by: ptejedor Owned by: Jorge
Priority: normal Milestone:
Component: Various Version: head
Severity: normal Keywords:
Cc: jagutierrez

Description

La siguiente secuencia de instrucciones hacen que TOL-Base se caiga:

Definir un TimeSet vacío, en concreto:

TimeSet Tsabsurdo = WD(1) * WD(2);

El TimeSet se crea sin problemas. Si a continuación se intenta ver el
conjunto temporal al que afecta, TOL-Base se cae, generando una excepción,
aparentemente de intento de acceso a la posición 0x0 de memoria.

Change History (7)

comment:1 Changed 21 years ago by Javier Portugal

Component: GraphicsTOL-tcl
Owner: changed from rcsoto to Jorge

El error no esta en la visualización del conjunto temporal, este se enecuentra en la
operación:

::tol::timeset create arg? arg?

Esta instrución provoca una caida de la aplicación cuando el TimeSet esun
conjunto vacio.

Ejemplo:

Funciona correctamente, el conjunto temporal no es vacio
::tol::console eval "TimeSet myC = C;";
set tms1 tms1
::tol::timeset create $tms1 myC

ERROR, el conjunto temporal es vacio
::tol::console eval "TimeSet Tsabsurdo = WD(1) * WD(2);";
set tms2 tms2
::tol::timeset create $tms Tsabsurdo

Gracias

comment:2 Changed 21 years ago by Jorge

Status: newassigned

# executed on Linux and tkcon

package require Toltcl
::tol::initkerne
::tol::initlibrary
::tol::console eval "TimeSet emp = WD(1) * WD(2);"
::tol::timeset create tms emp

tms start 2000 # took about 3 seconds
# the result was {-1 -1 -1 -1 -1 -1}

tms next # was fast
# of course the result was {-1 -1 -1 -1 -1 -1}

So, I think the problem must be checked on windows

comment:3 Changed 21 years ago by Jorge

indeed on windows the previous code behave differently. It crash!

comment:4 Changed 20 years ago by Jorge

Component: TOL-tclUnclassified

It's is unclassified because it's related to stack allocation on Windows.

comment:5 Changed 20 years ago by Jorge

Resolution: fixed
Status: assignedclosed

Size of stack allocation is increased. This is not a final solution as we can reach a
deepest recursion level wich can break this size down.

comment:6 Changed 20 years ago by Jorge

Cc: jagutierrez added

comment:7 Changed 20 years ago by Jorge

* Bug 204 has been marked as a duplicate of this bug. *

Note: See TracTickets for help on using tickets.