* bug#46447: segfault with bugnum
@ 2021-02-11 20:54 Ricardo Wurmus
2021-02-11 21:03 ` tomas
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2021-02-11 20:54 UTC (permalink / raw)
To: 46447
This program sometimes causes Guile 3.0.5 to segfault:
(define a (expt 2 (expt 3 (expt 4 2))))
(display (remainder a 1000000000))
(display "\n")
And sometimes this program doesn’t terminate. Here’s an example
session with the program saved to foo.scm:
--8<---------------cut here---------------start------------->8---
$ guile -s foo.scm
;;; note: source file /home/rekado/dev/gx/branches/master/foo.scm
;;; newer than compiled /home/rekado/.cache/guile/ccache/3.0-LE-8-4.4/home/rekado/dev/gx/branches/master/foo.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /home/rekado/dev/gx/branches/master/foo.scm
;;; compiled /home/rekado/.cache/guile/ccache/3.0-LE-8-4.4/home/rekado/dev/gx/branches/master/foo.scm.go
176561152
$ [env] guile -s foo.scm
176561152
$ [env] guile -s foo.scm
Segmentation fault
$ [env] guile -s foo.scm
C-c C-c # after more than 6 seconds
$ [env] C-c C-c
$ [env] guile -s foo.scm
Segmentation fault
$ [env] guile -s foo.scm
176561152
$ [env] guile -s foo.scm
C-c C-c
$ [env] guile -s foo.scm
176561152
--8<---------------cut here---------------end--------------->8---
--
Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#46447: segfault with bugnum
2021-02-11 20:54 bug#46447: segfault with bugnum Ricardo Wurmus
@ 2021-02-11 21:03 ` tomas
0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2021-02-11 21:03 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 46447
[-- Attachment #1: Type: text/plain, Size: 499 bytes --]
On Thu, Feb 11, 2021 at 09:54:38PM +0100, Ricardo Wurmus wrote:
> This program sometimes causes Guile 3.0.5 to segfault:
>
> (define a (expt 2 (expt 3 (expt 4 2))))
> (display (remainder a 1000000000))
> (display "\n")
>
> And sometimes this program doesn’t terminate. Here’s an example
> session with the program saved to foo.scm:
The first expr alone seems to segfault for me (Guile 3.0.4.38-64c894-dirty)
repeatably (well, that means 5 times in a row ;)
Cheers
- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-11 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 20:54 bug#46447: segfault with bugnum Ricardo Wurmus
2021-02-11 21:03 ` tomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).