NSS is unreliable in statically linked binaries

Bug #1613067 reported by sokoow
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GLibC
Incomplete
Medium
glibc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

More in https://sourceware.org/bugzilla/show_bug.cgi?id=20468

I'm getting following on amd64 as well as arm64:

Thread 3 "drone" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9a7b2090 (LWP 21950)]
0x0000007f98ddd334 in internal_getent (stream=0x7f840008c0, result=0x6a83ec <net.glob..func11+84>, result@entry=0x2e302e302e373231,
    buffer=0xca8e08 "gethostbyname4_r", buffer@entry=0x7f9a7b1010 "", buflen=buflen@entry=1064, errnop=0x7f9a7b14c0, errnop@entry=0x7f9a7b15c0, herrnop=0x0,
    herrnop@entry=0x686c61636f6c0931, af=127, af@entry=0, flags=-1703211040, flags@entry=0) at nss_files/files-XXX.c:251
251 nss_files/files-XXX.c: No such file or directory.
(gdb) bt
#0 0x0000007f98ddd334 in internal_getent (stream=0x7f840008c0, result=0x6a83ec <net.glob..func11+84>, result@entry=0x2e302e302e373231,
    buffer=0xca8e08 "gethostbyname4_r", buffer@entry=0x7f9a7b1010 "", buflen=buflen@entry=1064, errnop=0x7f9a7b14c0, errnop@entry=0x7f9a7b15c0, herrnop=0x0,
    herrnop@entry=0x686c61636f6c0931, af=127, af@entry=0, flags=-1703211040, flags@entry=0) at nss_files/files-XXX.c:251
#1 0x0000007f98dde2c0 in _nss_files_gethostbyname4_r (name=0x7f940008c0 "postgres.pharaoh.local", pat=0x7f9a7b15d0, buffer=0x7f9a7b1010 "", buflen=1064,
    errnop=0x7f9a7b15c0, herrnop=0x686c61636f6c0931, ttlp=<optimized out>) at nss_files/files-hosts.c:392
#2 0x0000000000a71438 in gaih_inet ()
#3 0x0000000000a72ef0 in getaddrinfo ()
#4 0x00000000009b1bec in _cgo_7a2d42f1a351_C2func_getaddrinfo (v=0x442003ba88) at /home/go/src/net/cgo_unix.go:66
#5 0x000000000047cf28 in runtime.asmcgocall () at /home/go/src/runtime/asm_arm64.s:542
#6 0x00000044201716c0 in ?? ()
#7 0x0000000000000001 in ?? ()

Changed in glibc:
importance: Unknown → Medium
status: Unknown → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glibc (Ubuntu):
status: New → Confirmed
Florian Weimer (fweimer)
summary: - SIGSEGV on internal_getent nss_files/files-XXX.c:251
+ NSS is unreliable in statically linked binaries
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.