public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug rust/29202] New: [gdb/rust] Running selftest rust-lex. Self test failed: Converting character sets: Invalid argument.
@ 2022-05-31  8:58 vries at gcc dot gnu.org
  2022-05-31  8:59 ` [Bug testsuite/29202] " vries at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2022-05-31  8:58 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29202

            Bug ID: 29202
           Summary: [gdb/rust] Running selftest rust-lex. Self test
                    failed: Converting character sets: Invalid argument.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rust
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Here ( https://builder.sourceware.org/buildbot/#/builders/98/builds/10 ) we
have:
...
Running selftest rust-lex.
Self test failed: Converting character sets: Invalid argument.
...
Ran 147 unit tests, 1 failed
(gdb) PASS: gdb.gdb/unittest.exp: no executable loaded: maintenance selftest,
ran some tests
FAIL: gdb.gdb/unittest.exp: no executable loaded: maintenance selftest, failed
none
...

I managed to reproduce this in a container helpfully set up by Martin Liška.

The root cause turned out to be this call failing:
...
(gdb) fin
Run till exit from #0  0x00007f0c2e11668e in iconv_open () from
/lib64/libc.so.6
iconv_wrapper::iconv_wrapper (from=0x11946e0 "ANSI_X3.4-1968", to=0x96de99
"UTF-32LE", this=<synthetic pointer>) at ../../gdb/charset.c:476
...
because the support for UTF-32LE was not installed.

Adding the package glibc-locale made the test pass.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-07 12:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31  8:58 [Bug rust/29202] New: [gdb/rust] Running selftest rust-lex. Self test failed: Converting character sets: Invalid argument vries at gcc dot gnu.org
2022-05-31  8:59 ` [Bug testsuite/29202] " vries at gcc dot gnu.org
2022-05-31  9:03 ` vries at gcc dot gnu.org
2022-05-31  9:24 ` vries at gcc dot gnu.org
2022-06-01 15:44 ` tromey at sourceware dot org
2022-06-03 10:39 ` vries at gcc dot gnu.org
2022-06-03 10:53 ` mark at klomp dot org
2022-06-03 11:02 ` mark at klomp dot org
2022-06-03 11:12 ` mark at klomp dot org
2022-06-07 12:18 ` vries at gcc dot gnu.org

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).