[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

Mark Johnston  changed:

   What|Removed |Added

   Assignee|freebsd-bugs@FreeBSD.org|ma...@freebsd.org
 Status|New |In Progress

--- Comment #6 from Mark Johnston  ---
(In reply to Martin Birgmeier from comment #5)
Thanks for testing. ypxfr_getmap.c is only compiled into ypxfr and yppush, so
you shouldn't need to recompile anything else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

--- Comment #5 from Martin Birgmeier  ---
That did the trick, thanks.

I ran make in libexec/ypxfr and usr.sbin/yppush; any other binaries that would
be affected by the change?

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

--- Comment #4 from Mark Johnston  ---
Created attachment 175798
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175798=edit
proposed patch

This looks like a regression from r285926: ypxfr_getmap.c references a couple
of libc symbols, and that revision turned them into local symbols. Could you
try the attached patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

--- Comment #3 from Martin Birgmeier  ---
One more note: My network is fully dual IPv4/IPv6.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

--- Comment #2 from Martin Birgmeier  ---
[0]# gdb /usr/libexec/ypxfr ypxfr.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `ypxfr'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/librpcsvc.so.5...Reading symbols from
/usr/lib/debug//usr/lib/librpcsvc.so.5.debug...done.
done.
Loaded symbols for /usr/lib/librpcsvc.so.5
Reading symbols from /lib/libc.so.7...Reading symbols from
/usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from
/usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x in ?? ()
(gdb) where
#0  0x in ?? ()
#1  0x000800afe4ed in xdr_ypresp_all_seq (xdrs=, 
objp=0x7fffd210)
at /.../hal/z/SRC/FreeBSD/releng/11.0/lib/libc/yp/xdryp.c:105
#2  0x000800b11536 in clnt_vc_call (cl=, proc=8, 
xdr_args=0x40178c , args_ptr=0x7fffd218, 
xdr_results=0x4017cc , 
results_ptr=, timeout={tv_sec = 10, tv_usec = 0})
at /.../hal/z/SRC/FreeBSD/releng/11.0/lib/libc/rpc/clnt_vc.c:432
#3  0x0040250b in ypxfr_get_map (map=0x7fffe27c "rpc.byname", 
domain=0x800dcfc40 "xyzzy", host=, 
callback=0x402570 )
at /.../hal/z/SRC/FreeBSD/releng/11.0/libexec/ypxfr/ypxfr_getmap.c:85
#4  0x00402eab in main (argc=, 
argv=)
at /.../hal/z/SRC/FreeBSD/releng/11.0/libexec/ypxfr/ypxfr_main.c:517
#5  0x00401c4f in _start ()
#6  0x000800628000 in ?? ()
#7  0x in ?? ()
(gdb) q
[0]# 


[0]# gdb /usr/sbin/yppush yppush.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `yppush'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.7...Reading symbols from
/usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from
/usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x in ?? ()
(gdb) where
#0  0x in ?? ()
#1  0x0008008f44ed in xdr_ypresp_all_seq (xdrs=, 
objp=0x7fffdcd0)
at /.../hal/z/SRC/FreeBSD/releng/11.0/lib/libc/yp/xdryp.c:105
#2  0x000800907536 in clnt_vc_call (cl=, proc=8, 
xdr_args=0x40182c , args_ptr=0x7fffdcd8, 
xdr_results=0x40186c , 
results_ptr=, timeout={tv_sec = 10, tv_usec = 0})
at /.../hal/z/SRC/FreeBSD/releng/11.0/lib/libc/rpc/clnt_vc.c:432
#3  0x00401e6b in ypxfr_get_map (map=0x404403 "ypservers", 
domain=0x7fffe226 "xyzzy", host=, 
callback=0x402f30 )
at
/.../hal/z/SRC/FreeBSD/releng/11.0/usr.sbin/yppush/../../libexec/ypxfr/ypxfr_getmap.c:85
#4  0x00402dae in main (argc=, 
argv=)
at /.../hal/z/SRC/FreeBSD/releng/11.0/usr.sbin/yppush/yppush_main.c:608
#5  0x00401cff in _start ()
#6  0x000800627000 in ?? ()
#7  0x in ?? ()
(gdb) q
[0]#

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

Mark Johnston  changed:

   What|Removed |Added

 CC||ma...@freebsd.org

--- Comment #1 from Mark Johnston  ---
Could you obtain backtraces from the ypxfr and yppush cores and paste them in
this PR?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


[Bug 213506] YP/NIS: yppush, ypxfr dump core

2016-10-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213506

Bug ID: 213506
   Summary: YP/NIS: yppush, ypxfr dump core
   Product: Base System
   Version: 11.0-STABLE
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bin
  Assignee: freebsd-bugs@FreeBSD.org
  Reporter: la5lb...@aon.at

I have a YP (NIS) setup with one master server and several slave servers. One
of the latter is in ypservers (together with the master server, as setup by
ypinit -m).

If I modify a YP-relevant file on the master server and do a 'make' in /var/yp,
yppush fails with a segmentation violation (signal 11) and dumps core. This
aborts 'make', thereby not processing the remaining maps.

If I manually ypxfr a map from the master to any of the slave servers (invoked
at the respective slave server as "ypxfr -h  "), ypxfr
fails with a segmentation violation (signal 11) and dumps core. It leaves a
zero-sized file in /var/yp/ with a . suffix, e.g.,
rpc.byname.4631.

None of this happened with 10.3.

Btw, the only maps which can be successfully transferred are empty ones, i.e.,
containing no entries. The associated file in /var/yp/ has a size
of 40960 bytes.

One more note: this started to happen several months ago on 11-current compiled
for armv6. At that time I thought it was just a problem on that architecture.
But now, after installing 11.0 on all my machines, it happens on all of them
(amd64 and i386).

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"