From: Tom de Vries <tdevries@suse.de>
To: 33044@debbugs.gnu.org, Mark H Weaver <mhw@netris.org>
Subject: bug#33044: Reproduced using guile binary
Date: Sun, 21 Oct 2018 18:24:45 +0200 [thread overview]
Message-ID: <c2eb0736-8b5f-0d09-c6b4-5fdc0c333df1@suse.de> (raw)
In-Reply-To: <a0656d24-cc1a-f6e5-ab16-145ab43c4510@suse.de>
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
On 10/15/18 4:20 PM, Tom de Vries wrote:
> Hi,
>
> Using a simple scheme hello world:
> ...
> $ cat hello.scm
> (display "hello world")
> (newline)
> ...
> we're able to reproduce the problem using the guile binary:
> ....
> $ LC_CTYPE=ja_JP.sjis /home/vries/guile/2.2/install/bin/guile -s hello.scm
> Segmentation fault (core dumped)
> ...
>
> [ Note: When using 2.0, we need to set GUILE_INSTALL_LOCALE=1 in the
> environment, otherwise the 'LC_CTYPE=ja_JP.sjis' setting has no effect. ]
>
I managed to create a testcase for this, patch attached.
Tested on master for x86_64, where it fails.
Thanks,
- Tom
[-- Attachment #2: 0001-Add-standalone-test-test-ja_JP.sjis.patch --]
[-- Type: text/x-patch, Size: 1212 bytes --]
Add standalone test test-ja_JP.sjis
Test for <https://bugs.gnu.org/33044>.
* test-suite/standalone/test-ja_JP.sjis: New test.
* test-suite/standalone/Makefile.am: Add test-ja_JP.sjis.
---
test-suite/standalone/Makefile.am | 4 ++++
test-suite/standalone/test-ja_JP.sjis | 8 ++++++++
2 files changed, 12 insertions(+)
diff --git a/test-suite/standalone/Makefile.am b/test-suite/standalone/Makefile.am
index 2aba708da..c5ce4bccb 100644
--- a/test-suite/standalone/Makefile.am
+++ b/test-suite/standalone/Makefile.am
@@ -183,6 +183,10 @@ TESTS += test-mb-regexp
check_SCRIPTS += test-use-srfi
TESTS += test-use-srfi
+# test-ja_JP.sjis
+check_SCRIPTS += test-ja_JP.sjis
+TESTS += test-ja_JP.sjis
+
# test-scm-c-read
test_scm_c_read_SOURCES = test-scm-c-read.c
test_scm_c_read_CFLAGS = ${test_cflags}
diff --git a/test-suite/standalone/test-ja_JP.sjis b/test-suite/standalone/test-ja_JP.sjis
new file mode 100755
index 000000000..4b7ba0d88
--- /dev/null
+++ b/test-suite/standalone/test-ja_JP.sjis
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Test whether guile can run initialization code using ja_JP.sjis locale
+# (bug #33044).
+unset LC_ALL
+export LC_CTYPE
+LC_CTYPE=ja_JP.sjis
+exec guile -q -s "$0" "$@"
+!#
next prev parent reply other threads:[~2018-10-21 16:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-15 8:44 bug#33044: Invalid read access of chars of wide string in scm_seed_to_random_state Tom de Vries
2018-10-15 14:20 ` bug#33044: Reproduced using guile binary Tom de Vries
2018-10-21 16:24 ` Tom de Vries [this message]
2018-10-15 18:59 ` bug#33044: Analysis and proposed patch Tom de Vries
2018-10-16 1:57 ` bug#33044: Guile misbehaves in the "ja_JP.sjis" locale Mark H Weaver
2018-10-16 5:13 ` Mark H Weaver
2018-10-16 12:52 ` John Cowan
2018-10-16 23:38 ` Tom de Vries
2018-10-17 7:00 ` Tom de Vries
2018-10-16 23:27 ` Tom de Vries
2018-10-18 1:56 ` Mark H Weaver
2018-10-18 10:26 ` Tom de Vries
2018-10-20 2:24 ` Mark H Weaver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c2eb0736-8b5f-0d09-c6b4-5fdc0c333df1@suse.de \
--to=tdevries@suse.de \
--cc=33044@debbugs.gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).