bionic-integration-tests errors

Bug #1596847 reported by You-Sheng Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libhybris
New
Undecided
Unassigned

Bug Description

[ RUN ] dirent.scandir_scandir64
bionic/tests/dirent_test.cpp:67: Failure
Value of: unsorted_name_list.size()
  Actual: 45
Expected: name_set.size()
Which is: 21
[ FAILED ] dirent.scandir_scandir64 (2 ms)
* already filed as https://bugs.launchpad.net/libhybris/+bug/1596772

================================================

[----------] 1 test from error
[ RUN ] error.smoke
(null): oops
(null): couldn't open file 'blah': No such file or directory
 oops
blah.c:123: hello world
[ OK ] error.smoke (6 ms)
[----------] 1 test from error (6 ms total)

================================================

[ RUN ] locale.setlocale
bionic/tests/locale_test.cpp:51: Failure
Value of: setlocale(6, __null)
  Actual: "C"
Expected: "C.UTF-8"
bionic/tests/locale_test.cpp:52: Failure
Value of: setlocale(0, __null)
  Actual: "C"
Expected: "C.UTF-8"
bionic/tests/locale_test.cpp:64: Failure
Value of: setlocale(6, "")
  Actual: "en_US.UTF-8"
Expected: "C"
[ FAILED ] locale.setlocale (4 ms)

================================================

[ RUN ] locale.mb_cur_max
bionic/tests/locale_test.cpp:128: Failure
Value of: __ctype_get_mb_cur_max()
  Actual: 4146329520
Expected: 1U
Which is: 1
[ FAILED ] locale.mb_cur_max (5 ms)

================================================

[ RUN ] netdb.gethostbyname
bionic/tests/netdb_test.cpp:158: Failure
Value of: strcmp(name, "localhost") == 0 || strcmp(name, "ip6-localhost") == 0 || strcmp(name, "ip6-loopback") == 0
  Actual: false
Expected: true
localhost.localdomain
[ FAILED ] netdb.gethostbyname (1 ms)

================================================

[ RUN ] netdb.gethostbyname2
bionic/tests/netdb_test.cpp:158: Failure
Value of: strcmp(name, "localhost") == 0 || strcmp(name, "ip6-localhost") == 0 || strcmp(name, "ip6-loopback") == 0
  Actual: false
Expected: true
localhost.localdomain
[ FAILED ] netdb.gethostbyname2 (1 ms)

================================================

And the test itself dies with segmentation fault. Full log available as attachment.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :

[ RUN ] netdb.gethostbyname
===========================
(gdb) up
#2 0xf736890e in netdb_getnameinfo_localhost_Test::TestBody (
    this=<optimized out>) at bionic/tests/netdb_test.cpp:151
151 bionic/tests/netdb_test.cpp: No such file or directory.
(gdb) print host
$1 = "127.0.0.1\000"

Checked we do have localhost entry in both /etc/hosts and /system/etc/hosts, and there is no error in dmesg/syslog. @@"

Revision history for this message
You-Sheng Yang (vicamo) wrote :

We've hooked gethostbyFoo calls, and I think maybe we should add getnameinfo hook in order to fix these netdb related errors. Then we may proceed to hunt the segmentation fault.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.