Bug 1370875

Summary: [abrt] jwhois: __pthread_initialize_minimal_internal(): jwhois killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Eugene Marcotte <emarcotte>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: abokovoy, anoopcs, arjun.is, asn, codonell, dj, emarcotte, fweimer, gdeschner, jrivera, law, lists, lmohanty, madam, mfabian, pfrankli, redhat-bugzilla, sbose, siddhesh, ssorce, vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/51154ce4c9f9445dd7063640d790dd45cfb50f28
Whiteboard: abrt_hash:485d50927a72cb4b350e8d2d7444f88b116e278e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-14 11:59:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages
none
output of ldd libnss_wins.so.2
none
crashes with library paths tweaked none

Description Eugene Marcotte 2016-08-27 19:22:10 UTC
Description of problem:
I believe this is due to having "wins" in my /etc/nsswitch.conf.

When I do ping, whois, telnet, or other simple commands that talk to dns it seems like they all crash.

This specific example was me trying to run "whois" on one of my domains.

Version-Release number of selected component:
jwhois-4.0-46.fc24

Additional info:
reporter:       libreport-2.7.2
backtrace_rating: 3
cmdline:        whois home.emarcotte.com
crash_function: __pthread_initialize_minimal_internal
executable:     /usr/bin/jwhois
global_pid:     5634
kernel:         4.6.7-300.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 __pthread_initialize_minimal_internal at nptl-init.c:322
 #1 _init at ../sysdeps/x86_64/crti.S:72
 #2 ??
 #3 call_init at dl-init.c:58
 #5 _dl_init at dl-init.c:87
 #6 dl_open_worker at dl-open.c:564
 #7 _dl_catch_error at dl-error.c:187
 #8 _dl_open at dl-open.c:649
 #9 do_dlopen at dl-libc.c:87
 #10 _dl_catch_error at dl-error.c:187

Comment 1 Eugene Marcotte 2016-08-27 19:22:14 UTC
Created attachment 1194907 [details]
File: backtrace

Comment 2 Eugene Marcotte 2016-08-27 19:22:15 UTC
Created attachment 1194908 [details]
File: cgroup

Comment 3 Eugene Marcotte 2016-08-27 19:22:16 UTC
Created attachment 1194909 [details]
File: core_backtrace

Comment 4 Eugene Marcotte 2016-08-27 19:22:17 UTC
Created attachment 1194910 [details]
File: dso_list

Comment 5 Eugene Marcotte 2016-08-27 19:22:18 UTC
Created attachment 1194911 [details]
File: environ

Comment 6 Eugene Marcotte 2016-08-27 19:22:19 UTC
Created attachment 1194912 [details]
File: exploitable

Comment 7 Eugene Marcotte 2016-08-27 19:22:20 UTC
Created attachment 1194913 [details]
File: limits

Comment 8 Eugene Marcotte 2016-08-27 19:22:22 UTC
Created attachment 1194914 [details]
File: maps

Comment 9 Eugene Marcotte 2016-08-27 19:22:23 UTC
Created attachment 1194915 [details]
File: mountinfo

Comment 10 Eugene Marcotte 2016-08-27 19:22:24 UTC
Created attachment 1194916 [details]
File: namespaces

Comment 11 Eugene Marcotte 2016-08-27 19:22:25 UTC
Created attachment 1194917 [details]
File: open_fds

Comment 12 Eugene Marcotte 2016-08-27 19:22:26 UTC
Created attachment 1194918 [details]
File: proc_pid_status

Comment 13 Eugene Marcotte 2016-08-27 19:22:27 UTC
Created attachment 1194919 [details]
File: var_log_messages

Comment 14 Vitezslav Crhonek 2017-03-14 08:40:24 UTC
Seems to be the same issue as in rhbz#1393909. Reassigning to glibc to decide whether it's duplicate or not.

Comment 15 Florian Weimer 2017-03-14 08:55:28 UTC
(In reply to Eugene Marcotte from comment #0)
> Description of problem:
> I believe this is due to having "wins" in my /etc/nsswitch.conf.

Yes, this is fairly likely.  What's the output of this command?

ldd /lib64/libnss_wins.so.2

Comment 16 Eugene Marcotte 2017-03-14 11:32:39 UTC
Created attachment 1262866 [details]
output of ldd libnss_wins.so.2

Comment 17 Eugene Marcotte 2017-03-14 11:41:53 UTC
Created attachment 1262879 [details]
crashes with library paths tweaked

Comment 18 Eugene Marcotte 2017-03-14 11:44:37 UTC
I have since made some changes to my system (for instance moving wins after dns). Even after reverting this I can't seem to get whois to crash. I can still get ping to crash though.

The other bug mentions the samba replace library, even getting ldd to know the path to this I can't seem to convince it to not crash.

Also seems very similar to rhbz#1377729 but I'm pretty sure fedora has the fixes from samba for that one already.

Comment 19 Florian Weimer 2017-03-14 11:59:43 UTC
(In reply to Eugene Marcotte from comment #17)
> Created attachment 1262879 [details]
> crashes with library paths tweaked

ping has fscaps, so it undergoes an AT_SECURE transition during invocation, and the LD_* environment variables are ignored for security reasons.

The crash is not nice and is glibc's fault (see bug 1393909), but even if we fixed that in glibc, nss_wins would still not work due to bug 1364666.

*** This bug has been marked as a duplicate of bug 1364666 ***