Bugzilla – Bug 114932
yast2-nis: invalid free() ? (unable to configure nis slave server using yast)
Last modified: 2005-09-02 14:45:27 UTC
I have this setup: two hosts - both running sl10 beta4 (moody.suse.cz & dhcp44). On moody I configured master nis server with active slave (added dhdp44.suse.cz to the list of slave servers). On dhcp44 I'm trying to configure nis slave server using yast. The configuration ends with this error: "Hostname of this host (dhcp44.suse.cz) is not listed in the master's list". Finally this appears on my commandline: dhcp44:~ # yast2& [1] 19070 dhcp44:~ # Command: /sbin/yast2 nis_server & Command: /sbin/yast2 nis_server & *** glibc detected *** free(): invalid pointer: 0xbfd077dc ***
Created attachment 48579 [details] y2logs
I'm not sure about that 'free' warning - it is not an issue of yast2-nis-server, might be related to yast2-core package (thought I doubt). However, the problem with unconfigured server should be easy to fix; Andreas, could I submit it into RC1?
Ah, that glibc message comes from the call /usr/lib/yp/ypxfr -f -h moody.suse.cz suse.cz shadow.byname -> Thorsten, could you look at it? And I have one more question for you (just reassuring): "/usr/lib/yp/makedbm -u /var/yp/suse.cz/ypservers" used to produce the output int the form "key value" (with space), but now it looks like uses \t instead of space. Could I rely on this fact?
(In reply to comment #3) > Ah, that glibc message comes from the call > /usr/lib/yp/ypxfr -f -h moody.suse.cz suse.cz shadow.byname Backtrace? I cannot reproduce that with our servers here and I never heard about such problems. > -> Thorsten, could you look at it? > > And I have one more question for you (just reassuring): > "/usr/lib/yp/makedbm -u /var/yp/suse.cz/ypservers" used to produce the output > int the form "key value" (with space), but now it looks like uses \t instead of > space. Could I rely on this fact? In the past it used sometimes wrongly " " (space). You should except both, space and/or tab. It depends on the implementation and the kind of map.
Between, using "/usr/lib/yp/ypxfr -f -h moody.suse.cz suse.cz shadow.byname" gives an usage error and with -s: kukuk@firun:~> /usr/lib/yp/ypxfr -f -h moody.suse.cz -s suse.cz shadow.byname ypxfr: Can't find server for map
Sorry, the missing parameter was -d (try it from dhcp44.suse.cz): /usr/lib/yp/ypxfr -f -h moody.suse.cz -d suse.cz shadow.byname
Created attachment 48603 [details] backtrace (gdb --args /usr/lib/yp/ypxfr -f -h moody.suse.cz -d suse.cz shadow.byname)
Created attachment 48604 [details] strace
Grmpfh, I thought I fixed that long time ago. fixed package submitted.
yast2-nis-server package also adapted for current makedbm output and submitted.