From owner-freebsd-bugs Mon Jan 24 22:50: 9 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5A57A151EC for ; Mon, 24 Jan 2000 22:50:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA24683; Mon, 24 Jan 2000 22:50:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id B457014BE4 for ; Mon, 24 Jan 2000 22:49:59 -0800 (PST) (envelope-from andre.albsmeier@mchp.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.9.3/8.9.3) with ESMTP id HAA13061 for ; Tue, 25 Jan 2000 07:49:58 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id HAA11595 for ; Tue, 25 Jan 2000 07:49:57 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.9.3/8.9.3) id HAA49965 for ; Tue, 25 Jan 2000 07:49:57 +0100 (CET) Message-Id: <200001250649.HAA08637@internal> Date: Tue, 25 Jan 2000 07:49:55 +0100 (CET) From: Andre Albsmeier To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/16342: Problems with krb_realmofhost() and/or krb_get_lrealm() Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16342 >Category: bin >Synopsis: Problems with krb_realmofhost() and/or krb_get_lrealm() >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 24 22:50:03 PST 2000 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 3.4-STABLE i386 >Organization: >Environment: FreeBSD-3.4-STABLE /etc/make.conf.local contains MAKE_KERBEROS4=1 /etc/hosts as follows, please note that there is no fully qualified hostname 127.0.0.1 localhost localhost.my.domain myname.my.domain 192.168.254.254 schlappy sc >Description: I was using xlockmore on my laptop. The hostname was set to "schlappy". I am not using fully qualified hostnames since I have no own domain. When the screen was locked by xlock and I entered my password, I noticed that it took a few seconds until the screen was unlocked again. xlock then has crashed with a coredump. I suspected a problem in xlock and looked with gdb at the corefile, here is part of the output: #0 0x282235df in send () from /usr/lib/libc.so.3 #1 0x2821fa40 in res_send () from /usr/lib/libc.so.3 #2 0x2821c245 in res_query () from /usr/lib/libc.so.3 #3 0x2821c7b7 in res_querydomain () from /usr/lib/libc.so.3 #4 0x2821c4a6 in res_search () from /usr/lib/libc.so.3 #5 0x280c14bb in dns_lookup () from /usr/lib/libkrb.so.3 #6 0x280bea4b in k_gethostname () from /usr/lib/libkrb.so.3 #7 0x280bebc5 in krb_realmofhost () from /usr/lib/libkrb.so.3 #8 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #9 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #10 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #11 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #12 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #13 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #14 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 ... ... continuing ... #58043 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #58044 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #58045 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #58046 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #58047 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #58048 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #58049 0x280bec3e in krb_realmofhost () from /usr/lib/libkrb.so.3 #58050 0x280be8e0 in krb_get_lrealm () from /usr/lib/libkrb.so.3 #58051 0x804ff0d in krb_check_password (pwd=0x282469fc, pass=0xbfbfcd90 "PW_replaced") at ./passwd.c:1519 #58052 0x804fe38 in checkPasswd (buffer=0xbfbfd1f0 "PW_replaced") at ./passwd.c:1173 #58053 0x804d604 in getPassword () at ./xlock.c:2318 #58054 0x804e04a in lockDisplay (display=0x8075000, do_display=1) at ./xlock.c:2635 #58055 0x804fb8d in main (argc=1, argv=0xbfbfd520) at ./xlock.c:3501 #58056 0x804b34d in _start () It seemed that there is a problem with krb_realmofhost() and krb_get_lrealm() which automagically are enabled when compiling xlockmore with MAKE_KERBEROS4=1 defined in /etc/make.conf.local. >How-To-Repeat: I could isolate the problem with the following small test program which has to be compiled with: cc k4test.c -lkrb -ldes -------------------------- snip ---------------------------------- #include #include #include #include main() { fprintf( stderr, "%s\n", krb_realmofhost( "schlappy" )); } -------------------------- snap ---------------------------------- The program spins around as xlock does. This stops immediately when the hostname "schlappy" is additionally included with any domain appended in /etc/hosts, e.g. 192.168.254.254 schlappy.domain.org schlappy sc >Fix: unknown >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message