On Feb 6, 1:52 pm, Timothy Clemans <timothy.clem...@gmail.com> wrote:
> Hi,

Hi Timothy,

> On both the command line and in the notebook (my computer and
> sagenb.org) with 3.3.alpha5 Sage closes after executing the following:
>
> {{{
> from jinja import Environment
> env = Environment()
>
> s = """{% for i in a %}
> {{ i }}
> {% endfor %}"""
>
> tmpl = env.from_string(s)
> print tmpl.render(a=[1,2,3])
>
> }}}
>
> In the notebook the error is
> /home/sage/sage/local/bin/sage-sage: line 355: 19626 Segmentation fault
> python "$@"
> Connection to localhost closed.

This does not cause any issue in pure Python:

mabsh...@geom:/scratch/mabshoff/sage-3.3.alpha6$ ./sage -python
Python 2.5.2 (r252:60911, Feb  3 2009, 19:30:41)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from jinja import Environment
>>> env = Environment()
>>> s = """{% for i in a %}
... {{ i }}
... {% endfor %}"""
>>> s
'{% for i in a %}\n{{ i }}\n{% endfor %}'
>>> tmpl = env.from_string(s)
>>> print tmpl.render(a=[1,2,3])

1

2

3

>>>

Please open a ticket.

> If the Notebook looses connection to Sage should it automatically
> restart Sage? Right now executing anything in the worksheet after the
> error just comes back blank.

Well, wouldn't we also have to reevaluate all cells? Please make this
a different ticket than the above crash.

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to