Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1092051 > unrolled thread
| Started by | Vagrant Cascadian <vagrant@reproducible-builds.org> |
|---|---|
| First post | 2022-02-04 18:30 +0100 |
| Last post | 2022-02-04 19:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Bug#1004950: reprotest fails when using kk_KZ.RK1048 locale with java (locale not supported by java) Vagrant Cascadian <vagrant@reproducible-builds.org> - 2022-02-04 18:30 +0100
Bug#1004950: reprotest fails when using kk_KZ.RK1048 locale with java (locale not supported by java) Holger Levsen <holger@layer-acht.org> - 2022-02-04 19:10 +0100
| From | Vagrant Cascadian <vagrant@reproducible-builds.org> |
|---|---|
| Date | 2022-02-04 18:30 +0100 |
| Subject | Bug#1004950: reprotest fails when using kk_KZ.RK1048 locale with java (locale not supported by java) |
| Message-ID | <DNazg-29n-7@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On 2022-02-04, Fab Stz wrote: > I have a CI job that runs reprotest. The project, at some time, makes calls to > java. However this fails/crashes sometimes. > > By narrowing things down it always crashes when locale kk_KZ.RK1048 is in use. > > By searching further I discovered that kk_KZ.RK1048 locale/charset is not > supported by java [1]. Hence the crash: > > $ LC_ALL=kk_KZ.RK1048 java -version > Error occurred during initialization of VM > java.lang.IllegalArgumentException: Null charset name > at java.nio.charset.Charset.lookup(java.base/Charset.java:455) ... > $ LC_ALL=C java -version > openjdk version "11.0.12" 2021-07-20 > OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2) > OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing) > > > Expected behavior? That it works also with call to java? or maybe an option to > disable this locale if java is used? > > [1]: > https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html Well, reprotest intentionally uses some obscure locales to find bugs exactly like this... That said, this points out two issues, and I'm considering making some changes to locale handling for the "experiment" tests. Currently: loc = random.choice(['fr_CH.UTF-8', 'es_ES', 'ru_RU.CP1251', 'kk_KZ.RK1048', 'zh_CN']) I don't think selecting a locale at random is a good idea; this means sometimes a build might succeed with reprotest and sometimes not, depending on which locale happens to be randomly selected. Secondly, I think by default reprotest should use a slightly less obscure locale to test, and the same locale every time. Adding a commandline flag to build with a specified locale would also be good. Possibly another flag to do a series of builds, each with a different locale (maybe from a list of very obscure locales). live well, vagrant
[toc] | [next] | [standalone]
| From | Holger Levsen <holger@layer-acht.org> |
|---|---|
| Date | 2022-02-04 19:10 +0100 |
| Message-ID | <DNbbY-2C2-5@gated-at.bofh.it> |
| In reply to | #1092051 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Feb 04, 2022 at 09:18:56AM -0800, Vagrant Cascadian wrote: > I don't think selecting a locale at random is a good idea; this means > sometimes a build might succeed with reprotest and sometimes not, > depending on which locale happens to be randomly selected. agreed. > Secondly, I think by default reprotest should use a slightly less > obscure locale to test, and the same locale every time. also agreed. > Adding a commandline flag to build with a specified locale would also be > good. Possibly another flag to do a series of builds, each with a > different locale (maybe from a list of very obscure locales). this seems like a good idea indeed. -- cheers, Holger ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C ⠈⠳⣄ Imagine god created trillions of galaxies but freaks out because some dude kisses another.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web