Bug 114932 - yast2-nis: invalid free() ? (unable to configure nis slave server using yast)
Summary: yast2-nis: invalid free() ? (unable to configure nis slave server using yast)
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 4
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Jiří Suchomel
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 97395
  Show dependency treegraph
 
Reported: 2005-09-02 10:44 UTC by Martin Mrazik
Modified: 2005-09-02 14:45 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2logs (314.39 KB, application/x-gtar)
2005-09-02 10:45 UTC, Martin Mrazik
Details
backtrace (gdb --args /usr/lib/yp/ypxfr -f -h moody.suse.cz -d suse.cz shadow.byname) (1.28 KB, text/plain)
2005-09-02 14:08 UTC, Jiří Suchomel
Details
strace (10.59 KB, text/plain)
2005-09-02 14:09 UTC, Jiří Suchomel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mrazik 2005-09-02 10:44:52 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 ***
Comment 1 Martin Mrazik 2005-09-02 10:45:47 UTC
Created attachment 48579 [details]
y2logs
Comment 2 Jiří Suchomel 2005-09-02 13:16:24 UTC
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?
Comment 3 Jiří Suchomel 2005-09-02 13:28:46 UTC
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?
Comment 4 Thorsten Kukuk 2005-09-02 13:32:57 UTC
(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.
Comment 5 Thorsten Kukuk 2005-09-02 13:34:42 UTC
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
Comment 6 Jiří Suchomel 2005-09-02 13:41:57 UTC
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

Comment 7 Jiří Suchomel 2005-09-02 14:08:41 UTC
Created attachment 48603 [details]
backtrace (gdb --args /usr/lib/yp/ypxfr -f -h moody.suse.cz -d suse.cz shadow.byname)
Comment 8 Jiří Suchomel 2005-09-02 14:09:27 UTC
Created attachment 48604 [details]
strace
Comment 9 Thorsten Kukuk 2005-09-02 14:23:42 UTC
Grmpfh, I thought I fixed that long time ago. fixed package submitted.
Comment 10 Jiří Suchomel 2005-09-02 14:45:27 UTC
yast2-nis-server package also adapted for current makedbm output and submitted.