Source: nss-wrapper
Version: 1.0.2-1
Severity: important
User: debian-sp...@lists.debian.org
Usertags: sparc
Control: forwarded -1 https://bugzilla.samba.org/show_bug.cgi?id=10667
nss-wrapper FTBFS on sparc:
| Running tests...
| /usr/bin/ctest --force-new-ctest-process
| Test project /build/nss-wrapper-99fE0q/nss-wrapper-1.0.2/obj
| Start 1: testsuite
| 1/6 Test #1: testsuite ........................***Exception: SegFault 0.01
sec
| Start 2: test_getaddrinfo
| 2/6 Test #2: test_getaddrinfo ................. Passed 1.23 sec
| Start 3: test_getnameinfo
| 3/6 Test #3: test_getnameinfo ................. Passed 0.01 sec
| Start 4: test_gethostby_name_addr
| 4/6 Test #4: test_gethostby_name_addr ......... Passed 0.01 sec
| Start 5: test_gethostent
| 5/6 Test #5: test_gethostent .................. Passed 0.01 sec
| Start 6: test_nwrap_disabled
| Errors while running CTest
| 6/6 Test #6: test_nwrap_disabled .............. Passed 0.01 sec
|
| 83% tests passed, 1 tests failed out of 6
|
| Total Test time (real) = 1.30 sec
|
| The following tests FAILED:
| 1 - testsuite (SEGFAULT)
| make[1]: *** [test] Error 8
| Makefile:136: recipe for target 'test' failed
I've reproduced the problem on a sparc porterbox:
Program received signal SIGBUS, Bus error.
0x00010da0 in print_group (grp=0xffffc448) at
/home/jwilk/nss-wrapper-1.0.2/tests/testsuite.c:274
274 if ((grp->gr_mem == NULL) || !grp->gr_mem[0]) {
(gdb) print grp->gr_mem
$1 = (char **) 0xffffc461
Apparently the address gr_mem points to is not a multiple of
sizeof(char*), i.e. 4 in this case.
My guess is that that the culprit is the nwrap_gr_copy_r() function,
which does some suspicious pointer arithmetic.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org