|
From: Matthias S. <zz...@ge...> - 2015-08-13 21:07:41
|
Hi! The testcase gdbserver_tests/nlgone_exit fails if the locale is set to a non english value. To reproduce this on any system, run soemthing like this: # LANG="de_DE" perl tests/vg_regtest gdbserver_tests/nlgone_exit.vgtest It then fails with this stdoutB.diff: --- nlgone_exit.stderrB.exp 2015-05-17 14:29:09.000000000 +0200 +++ nlgone_exit.stderrB.out 2015-08-13 22:56:52.000000000 +0200 @@ -1 +1,2 @@ relaying data between gdb and process .... +32 ../sysdeps/unix/sysv/linux/_exit.c: Datei oder Verzeichnis nicht gefunden. Possible Solutions: 1. Cleanup of environment in vg_regtest: For all tests clear several known bad variables like LC_* or define others like LC_ALL=C. Cleanup could also include to set core file limit to a known value (if test does not decide otherwise). 2. add envB to vgtest syntax, so the affected testcase can define LC_ALL=C. Regards Matthias |
|
From: Matthias S. <zz...@ge...> - 2015-08-21 05:48:35
|
Am 13.08.2015 um 23:07 schrieb Matthias Schwarzott:
> Hi!
>
> The testcase gdbserver_tests/nlgone_exit fails if the locale is set to a
> non english value.
>
> To reproduce this on any system, run soemthing like this:
> # LANG="de_DE" perl tests/vg_regtest gdbserver_tests/nlgone_exit.vgtest
>
> It then fails with this stdoutB.diff:
> --- nlgone_exit.stderrB.exp 2015-05-17 14:29:09.000000000 +0200
> +++ nlgone_exit.stderrB.out 2015-08-13 22:56:52.000000000 +0200
> @@ -1 +1,2 @@
> relaying data between gdb and process ....
> +32 ../sysdeps/unix/sysv/linux/_exit.c: Datei oder Verzeichnis nicht
> gefunden.
>
To fix this I implemented the simple solution of hardcode LC_ALL=C for
the progB.
Now it looks like this:
$ perl tests/vg_regtest gdbserver_tests/nlgone_exit
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/\${ <-- HERE PWD}/ at tests/vg_regtest line 309.
nlgone_exit: valgrind --tool=none --vgdb=yes
--vgdb-stop-at=startup,exit --vgdb-prefix=./vgdb-prefix-nlgone-exit
./gone exit (progB: ./gdb --quiet -l 60 --nx ./gone)
== 1 test, 0 stderr failures, 0 stdout failures, 0 stderrB failures, 0
stdoutB failures, 0 post failures ==
The perl error about Unescaped left brace was there before already.
Regards
Matthias
|
|
From: Florian K. <fl...@ei...> - 2015-08-26 20:27:44
|
I could not reproduce the problem but opted for implementing solution #2
in r15592. Let me know if this does not work for you.
Florian
On 13.08.2015 23:07, Matthias Schwarzott wrote:
> Hi!
>
> The testcase gdbserver_tests/nlgone_exit fails if the locale is set to a
> non english value.
>
> To reproduce this on any system, run soemthing like this:
> # LANG="de_DE" perl tests/vg_regtest gdbserver_tests/nlgone_exit.vgtest
>
> It then fails with this stdoutB.diff:
> --- nlgone_exit.stderrB.exp 2015-05-17 14:29:09.000000000 +0200
> +++ nlgone_exit.stderrB.out 2015-08-13 22:56:52.000000000 +0200
> @@ -1 +1,2 @@
> relaying data between gdb and process ....
> +32 ../sysdeps/unix/sysv/linux/_exit.c: Datei oder Verzeichnis nicht
> gefunden.
>
>
> Possible Solutions:
>
> 1. Cleanup of environment in vg_regtest: For all tests clear several
> known bad variables like LC_* or define others like LC_ALL=C. Cleanup
> could also include to set core file limit to a known value (if test does
> not decide otherwise).
>
> 2. add envB to vgtest syntax, so the affected testcase can define LC_ALL=C.
>
> Regards
> Matthias
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Valgrind-developers mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-developers
>
|
|
From: Matthias S. <zz...@ge...> - 2015-09-03 20:04:36
|
Hi Florian! I can confirm that it works now. Thank you Matthias Am 26.08.2015 um 22:27 schrieb Florian Krohm: > I could not reproduce the problem but opted for implementing solution #2 > in r15592. Let me know if this does not work for you. > > Florian > > > On 13.08.2015 23:07, Matthias Schwarzott wrote: >> Hi! >> >> The testcase gdbserver_tests/nlgone_exit fails if the locale is set to a >> non english value. >> >> To reproduce this on any system, run soemthing like this: >> # LANG="de_DE" perl tests/vg_regtest gdbserver_tests/nlgone_exit.vgtest >> >> It then fails with this stdoutB.diff: >> --- nlgone_exit.stderrB.exp 2015-05-17 14:29:09.000000000 +0200 >> +++ nlgone_exit.stderrB.out 2015-08-13 22:56:52.000000000 +0200 >> @@ -1 +1,2 @@ >> relaying data between gdb and process .... >> +32 ../sysdeps/unix/sysv/linux/_exit.c: Datei oder Verzeichnis nicht >> gefunden. >> >> >> Possible Solutions: >> >> 1. Cleanup of environment in vg_regtest: For all tests clear several >> known bad variables like LC_* or define others like LC_ALL=C. Cleanup >> could also include to set core file limit to a known value (if test does >> not decide otherwise). >> >> 2. add envB to vgtest syntax, so the affected testcase can define LC_ALL=C. >> >> Regards >> Matthias >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Valgrind-developers mailing list >> Val...@li... >> https://lists.sourceforge.net/lists/listinfo/valgrind-developers >> > > |