unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* 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

unofficial mirror of bug-guile@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guile-bugs/0 guile-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-bugs guile-bugs/ https://yhetil.org/guile-bugs \
		bug-guile@gnu.org
	public-inbox-index guile-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.lisp.guile.bugs
	nntp://news.gmane.io/gmane.lisp.guile.bugs


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git