This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/10652] getaddrinfo causes segfault if multithreaded and linked statically


https://sourceware.org/bugzilla/show_bug.cgi?id=10652

Vyacheslav Barinov <rayslava at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rayslava at gmail dot com

--- Comment #28 from Vyacheslav Barinov <rayslava at gmail dot com> ---
Can confirm on sys-libs/glibc-2.26-r3 on my Gentoo.

Everything's fine when linking dynamically, when linking statically, I receive
the following trace:

#0  0x00007ffff5d70648 in internal_getent (stream=0x7fffd8000b10,
result=result@entry=0x7ffff6778410, buffer=buffer@entry=0x7fffe0000e70 "",
buflen=buflen@entry=1024, 
    errnop=errnop@entry=0x7ffff67796b0, herrnop=herrnop@entry=0x7ffff67783fc,
af=2, flags=0) at nss_files/files-XXX.c:216
#1  0x00007ffff5d717c0 in _nss_files_gethostbyname3_r (name=0x7fffe0000b10
"api.telegram.org", af=2, result=0x7ffff6778410, buffer=<optimized out>,
buflen=1024, errnop=0x7ffff67796b0, 
    herrnop=0x7ffff67783fc, ttlp=0x0, canonp=0x0) at
nss_files/files-hosts.c:352
#2  0x00007ffff5d71941 in _nss_files_gethostbyname2_r (name=<optimized out>,
af=<optimized out>, result=<optimized out>, buffer=<optimized out>,
buflen=<optimized out>, 
    errnop=<optimized out>, herrnop=0x7ffff67783fc) at
nss_files/files-hosts.c:389
#3  0x0000000000704ac3 in __gethostbyname2_r (name=0x7fffe0000b10
"api.telegram.org", af=af@entry=2, resbuf=resbuf@entry=0x7ffff6778410,
buffer=<optimized out>, 
    buffer@entry=0x7fffe0000e70 "", buflen=buflen@entry=1024,
result=result@entry=0x7ffff6778408, h_errnop=0x7ffff67783fc) at
../nss/getXXbyYY_r.c:316
#4  0x00000000004513e6 in networking::resolve_host (answer=0x7ffff6778410,
hostname=...) at src/net.cpp:58
#5  networking::tcp_connect (host=...) at src/net.cpp:87
#6  0x00000000004524da in networking::tls_connect (host=...) at src/net.cpp:169

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]