Bug

38 views
Skip to first unread message

Varun Kumar

unread,
Mar 4, 2022, 1:00:20 PM3/4/22
to sage-support

When I'm trying to do   practical, we get some bug in sagemath occur that shown below:

sage: p=points((n,1/n) for n in range(1,100000000))

sig_error() without sig_on()

------------------------------------------------------------------------

Unhandled SIGABRT: An abort() occurred.

This probably occurred because a *compiled* module has a bug

in it and is not properly wrapped with sig_on(), sig_off().

Python will now terminate.

------------------------------------------------------------------------

/opt/sagemath-9.3/src/bin/sage-python: line 2:   905 Aborted                 (core dumped) sage -python "$@"


Regards,

Varun Kumar

Dima Pasechnik

unread,
Mar 5, 2022, 4:33:37 AM3/5/22
to sage-support
On Fri, Mar 4, 2022 at 6:00 PM Varun Kumar <varun8...@gmail.com> wrote:
>
> When I'm trying to do practical, we get some bug in sagemath occur that shown below:
>
> sage: p=points((n,1/n) for n in range(1,100000000))

points() is meant to be used for graphics.
Are you going to plot 10^8 points?

It's much more than the total number of pixels on a typical modern
computer monitor.
It's certainly was not designed for such values.
Basically, an internal structure used to build p causes the process to
run out of memory.
(If I try running this and checking how much RAM it takes, it goes all
they way to over 20Gb)

HTH
Dima

>
> sig_error() without sig_on()
>
> ------------------------------------------------------------------------
>
> Unhandled SIGABRT: An abort() occurred.
>
> This probably occurred because a *compiled* module has a bug
>
> in it and is not properly wrapped with sig_on(), sig_off().
>
> Python will now terminate.
>
> ------------------------------------------------------------------------
>
> /opt/sagemath-9.3/src/bin/sage-python: line 2: 905 Aborted (core dumped) sage -python "$@"
>
>
> Regards,
>
> Varun Kumar
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/67e209e9-9dde-407c-b43c-fea06cd2b548n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages