[Bug 9761] New: mbsnrtowcs() not working

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 20 01:51:44 UTC 2017


https://bugs.busybox.net/show_bug.cgi?id=9761

            Bug ID: 9761
           Summary: mbsnrtowcs() not working
           Product: uClibc
           Version: 0.9.33.2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Locales
          Assignee: unassigned at uclibc.org
          Reporter: igor.liferenko at gmail.com
                CC: uclibc-cvs at uclibc.org
  Target Milestone: ---

Created attachment 6961
  --> https://bugs.busybox.net/attachment.cgi?id=6961&action=edit
test program

Hi,

mbsnrtowcs() fails badly in openwrt "Designated Driver" on mips
(locale is properly supported in my setup, because other wide-character
functions work as documented).

The test program mbsnrtowcs.c is attached.

This is its output:

  [ 1235.400240] 
  do_page_fault(): sending SIGSEGV to mbsnrtowcs for invalid write access to 
  00000000
  [ 1235.407567] epc = 770f1648 in libc.so[770a4000+91000]
  [ 1235.412522] ra  = 770f161c in libc.so[770a4000+91000]
  [ 1235.417610] 
  Segmentation fault

I compiled openwrt with this config:

CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_GLINET=y
CONFIG_DEVEL=y
CONFIG_BUILD_NLS=y
CONFIG_SDK=y
CONFIG_PACKAGE_iconv=y
CONFIG_PACKAGE_libcharset=y
CONFIG_PACKAGE_libiconv-full=y
CONFIG_PACKAGE_libintl-full=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUSYBOX_CONFIG_LAST_SUPPORTED_WCHAR=0
CONFIG_BUSYBOX_CONFIG_LOCALE_SUPPORT=y
CONFIG_BUSYBOX_CONFIG_SUBST_WCHAR=65533
CONFIG_BUSYBOX_CONFIG_UNICODE_PRESERVE_BROKEN=y
CONFIG_BUSYBOX_CONFIG_UNICODE_SUPPORT=y
CONFIG_BUSYBOX_CONFIG_UNICODE_USING_LOCALE=y
CONFIG_PACKAGE_kmod-nls-utf8=y

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


More information about the uClibc-cvs mailing list