This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/356] localedata: tests-mbwc/tst_iswalnum segfaults during make check
- From: "johnlumby at hotmail dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Aug 2004 18:11:51 -0000
- Subject: [Bug libc/356] localedata: tests-mbwc/tst_iswalnum segfaults during make check
- References: <20040830153917.356.johnlumby@hotmail.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From johnlumby at hotmail dot com 2004-08-30 18:11 -------
Oh - by the way - I did trace through _nl_intern_locale_data while the test was
executing and it loaded the LC_CTYPE category several times, with varying numbers
of items, but in every case, item 82 (which I think is named _NL_CTYPE_EXTRA_MAP_12
according to langinfo.h) was considered to be of type "word" according to the
test I noted above,
if (__builtin_expect (_nl_value_types[category][cnt] == word, 0))
so, regardless of whether this test was referencing the static array of
categories or some trickily-loaded dynamic array, it seems incorrect that the
testcase is accessing that value as though it was a string pointer.
I would add that it seems undesirable to me to resort to this kind of trickery
of accessing dynamically-loaded areas as though they were static, as it makes it
hard to debug with a conventional debugger.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=356
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.