[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33044: Reproduced using guile binary
From: |
Tom de Vries |
Subject: |
bug#33044: Reproduced using guile binary |
Date: |
Sun, 21 Oct 2018 18:24:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
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
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" "$@"
+!#
- bug#33044: Invalid read access of chars of wide string in scm_seed_to_random_state, Tom de Vries, 2018/10/15
- bug#33044: Reproduced using guile binary, Tom de Vries, 2018/10/15
- bug#33044: Reproduced using guile binary,
Tom de Vries <=
- bug#33044: Analysis and proposed patch, Tom de Vries, 2018/10/15
- bug#33044: Guile misbehaves in the "ja_JP.sjis" locale, Mark H Weaver, 2018/10/15
- bug#33044: Guile misbehaves in the "ja_JP.sjis" locale, Tom de Vries, 2018/10/16
- bug#33044: Guile misbehaves in the "ja_JP.sjis" locale, Mark H Weaver, 2018/10/17
- bug#33044: Guile misbehaves in the "ja_JP.sjis" locale, Tom de Vries, 2018/10/18
- bug#33044: Guile misbehaves in the "ja_JP.sjis" locale, Mark H Weaver, 2018/10/19