misc/177761: net-mgmt/net-snmp fails on certain kvm_read() calls via auto_nlist()

2013-04-10 Thread Sean Bruno

>Number: 177761
>Category:   misc
>Synopsis:   net-mgmt/net-snmp fails on certain kvm_read() calls via 
>auto_nlist()
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 10 18:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r248817M: Thu Mar 28 
00:59:30 PDT 2013 sbruno@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
a recent change to 9/stable and 10/current causes the following code snippet to 
fail
.. snip ...
static struct vmmeter sum;
..
auto_nlist("cnt", (char *)&sum, sizeof sum);


>How-To-Repeat:
Generate a small agent library that returns the contents a kvm_read() of "cnt" 
in kernel space.  Example code is a bit tricky, but can be supplied on request.
>Fix:
More or less, the memory was not zeroed in auto_nlist.c ... this indirectly 
casues the kvm_read() to get very bogus values and fail.  zero the memory out 
via calloc() or the attached patch to bzero it.

The diff is for 5.7.1 but is valid in my testing of 5.7.2

Patch attached with submission follows:

--- //depot/yahoo/ybsd_common/usr.local/net-snmp-5.7.1/agent/auto_nlist.c   
2012-09-06 19:09:48.0 
+++ /home/seanbru/net-snmp-5.7.1/agent/auto_nlist.c 2012-09-06 
19:09:48.0 
@@ -53,6 +53,7 @@
 }
 if (*ptr == 0) {
 *ptr = (struct autonlist *) malloc(sizeof(struct autonlist));
+   bzero(*ptr, sizeof(struct autonlist));
 it = *ptr;
 it->left = 0;
 it->right = 0;



>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181023: x11/xkeyboard-config fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181023
>Category:   misc
>Synopsis:   x11/xkeyboard-config fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 18:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster x11/xkeyboard-config
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181025: misc/shared-mime-info fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181025
>Category:   misc
>Synopsis:   misc/shared-mime-info fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 18:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
This is the same problem with the same solution as in pr ports/180991
>How-To-Repeat:
portmaster misc/shared-mime-info
>Fix:
Apply the same patch to Makefile as in ports/180991

I added this to the post-patch target of the Makefile 

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181024: devel/libgsf fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181024
>Category:   misc
>Synopsis:   devel/libgsf fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 18:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
This is the same problem with the same solution as in pr ports/180991
>How-To-Repeat:
portmaster devel/libgsf
>Fix:
Apply the same patch to Makefile as in ports/180991

I added this to the post-patch target of the Makefile 

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181028: devel/docnf fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181028
>Category:   misc
>Synopsis:   devel/docnf fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 19:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
This is the same problem with the same solution as in pr ports/180991
>How-To-Repeat:
portmaster devel/dconf
>Fix:
Apply the same patch to Makefile as in ports/180991

I added this to the post-patch target of the Makefile 

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181027: devel/gconf2 fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181027
>Category:   misc
>Synopsis:   devel/gconf2 fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 19:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
This is the same problem with the same solution as in pr ports/180991
>How-To-Repeat:
portmaster devel/gconf2
>Fix:
Apply the same patch to Makefile as in ports/180991

I added this to the post-patch target of the Makefile 

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181029: misc/io-codes fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181029
>Category:   misc
>Synopsis:   misc/io-codes fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 19:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster misc/io-codes
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181030: devel/gsettings-desktop-schemas fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181030
>Category:   misc
>Synopsis:   devel/gsettings-desktop-schemas fails to build when 
>WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 19:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster devel/gsettings-desktop-schemas
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181031: deskutils/xfce4-tumbler fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181031
>Category:   misc
>Synopsis:   deskutils/xfce4-tumbler fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 19:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster desktop/xfce4-tumbler
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181032: net/glib-networking fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181032
>Category:   misc
>Synopsis:   net/glib-networking fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 20:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster net/glib-networking
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181034: security/libgnome-keyring fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181034
>Category:   misc
>Synopsis:   security/libgnome-keyring fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 20:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster security/libgnome-keyring
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181033: devel/libsoup fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181033
>Category:   misc
>Synopsis:   devel/libsoup fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 20:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster devel/libsoup
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/181036: net/avahi-app fails to build when WITH_ICONV=y set

2013-08-04 Thread Sean Bruno

>Number: 181036
>Category:   misc
>Synopsis:   net/avahi-app fails to build when WITH_ICONV=y set
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 04 20:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r253470M: Tue Jul 23 
10:27:00 PDT 2013 root@powernoodle:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Same as pr ports/180991
>How-To-Repeat:
portmaster net/avahi-app
>Fix:
I added this to the post-patch target of the Makefile

@${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' ${WRKSRC}/po/*.po

This makes the port build properly. It replaces all occurrences of "UTF-8\n" 
with "UTF-8"

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


kern/166458: bind() incorrectly interprets SO_REUSEADDR option as also implying SO_REUSEPORT on FreeBSD

2012-03-27 Thread Sean Bruno

>Number: 166458
>Category:   kern
>Synopsis:   bind() incorrectly interprets SO_REUSEADDR option as also 
>implying SO_REUSEPORT on FreeBSD
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 28 01:00:25 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:9.0
>Organization:
Yahoo! Inc
>Environment:
FreeBSD x 9.0-RELEASE FreeBSD 9.0-RELEASE #3: Tue Dec 27 14:14:29 
PST 2011 
r...@build9x64.pcbsd.org:/usr/obj/builds/amd64/pcbsd-build90/fbsd-source/9.0/sys/GENERIC
  amd64
>Description:


 ... seems to be a bug in FreeBSD when specifying port number 0 in the 
socket address passed to the bind system call in order to let the kernel
select a free port number.

The semantics of SO_REUSEADDR is inconsistently implemented on FreeBSD.

FreeBSD 4 jail environment (on a FreeBSD 4 host):

dev-tegge:~$ ./bindbug 
serversock addr is 10.76.250.174:40328
dup bind: Address already in use
This error was expected, tried to bind to used addr/port
dup2 bind: Address already in use
This error was expected, tried to bind to used port without SO_REUSEPORT
autosock addr is 10.76.250.174:40328
bug triggered, port number conflict on sockets without SO_REUSEPORT
listen succeded after implicitly overlapping port bind

FreeBSD 6 host enironment:

tegge-store1:~:$ ./bindbug 
serversock addr is 127.0.0.1:59073
dup bind: Address already in use
This error was expected, tried to bind to used addr/port
BUG: binding duplicate socket to server port succeeded
dup2sock addr is 0.0.0.0:59073
overlapping explicit bind to same port number succeeded without SO_REUSEPORT
listen succeeded after explicitly overlapping port bind
autosock addr is 0.0.0.0:59073
bug triggered, port number conflict on sockets without SO_REUSEPORT
listen succeded after implicitly overlapping port bind

RHEL4 host environment:

[tegge@dell-bl1s3 ~]$ time ./bindbug 
serversock addr is 127.0.0.1:43270
dup bind: Address already in use
This error was expected, tried to bind to used addr/port
dup2 bind: Address already in use
This error was expected, tried to bind to used port without SO_REUSEPORT
bug not triggered after 16777216 iterations

real1m12.753s
user0m4.695s
sys 1m8.037s
>How-To-Repeat:
Use test code that is attached, compile and run on a fbsd box vs a linux box.

test case is at http://people.freebsd.org/~sbruno/bind_test.c
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/167460: devel/libytnef: bad handling of PT_CLSID in TNEFFillMapi

2012-04-30 Thread Sean Bruno

>Number: 167460
>Category:   misc
>Synopsis:   devel/libytnef: bad handling of PT_CLSID in TNEFFillMapi
>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 Apr 30 19:30:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:9-stable
>Organization:
FreeBSD 
>Environment:
FreeBSD powernoodle-l7 9.0-STABLE FreeBSD 9.0-STABLE #0 r233925: Thu Apr  5 
11:34:25 PDT 2012 
root@pcbsd-4855:/usr/obj/usr/home/sbruno/bsd/9/sys/GENERIC  amd64

>Description:
devel/libytnef/ytnef.c has incomplete handling of the PT_CLSID type and will 
spin off and crash applications attempting to use it.

Patch attached properly handles the GUID data structure via hardcoded magic 
values.

Fix ideas were liberally stolen from the MSDN docs and wine.org handling code.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: misc/167460: devel/libytnef: bad handling of PT_CLSID in TNEFFillMapi

2012-04-30 Thread Sean Bruno
The following reply was made to PR misc/167460; it has been noted by GNATS.

From: Sean Bruno 
To: bug-follo...@freebsd.org, sbr...@freebsd.org
Cc:  
Subject: Re: misc/167460: devel/libytnef: bad handling of PT_CLSID in
 TNEFFillMapi
Date: Mon, 30 Apr 2012 12:56:37 -0700

 Patch located at:
 
 http://people.freebsd.org/~sbruno/libytnef_ytnef_c.txt
 
 Sean
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: bin/167575: mfiutil(8) claims battery is OK even though it is worn out and wb cache is disabled

2012-05-11 Thread Sean Bruno
The following reply was made to PR bin/167575; it has been noted by GNATS.

From: Sean Bruno 
To: bug-follo...@freebsd.org, ema...@freebsd.org
Cc:  
Subject: Re: bin/167575: mfiutil(8) claims battery is OK even though it is
 worn out and wb cache is disabled
Date: Fri, 11 May 2012 06:26:25 -0700

 I would be more suspcious of the hardware you're using.
 
 My Dell boxes with mfi(4) seem to do just fine with failed batteries:
 
 bash-4.2$ sudo mfiutil show battery
 mfi0: Battery State:
  Manufacture Date: 9/22/2007
 Serial Number: 2015
  Manufacturer: SANYO
 Model: DLU8735
 Chemistry: LION
   Design Capacity: 1900 mAh
  Full Charge Capacity: 369 mAh
  Current Capacity: 349 mAh
 Charge Cycles: 42
Current Charge: 95%
Design Voltage: 3700 mV
   Current Voltage: 4014 mV
   Temperature: 22 C
Status: normal
   State of Health: bad
 
 
 
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


kern/187624: WEP and other ciphers do not work if h/w driver does not declare support

2014-03-15 Thread Sean Bruno

>Number: 187624
>Category:   kern
>Synopsis:   WEP and other ciphers do not work if h/w driver does not 
>declare support
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 00:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:-CURRENT
>Organization:
FreeBSD Project
>Environment:
FreeBSD powernoodle.corp.yahoo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #11 
r263173: Sat Mar 15 13:31:08 JST 2014 
sbr...@powernoodle.corp.yahoo.com:/usr/obj/usr/src/sys/POWERNOODLE  amd64

>Description:
Discovered that, with the import of wpa_supplicant 2.0, WEP no longer works 
with drivers (iwn for example) if the driver does not declare support for the 
WEP cipher.

This should be handled by net80211 in s/w if the h/w and driver do not declare 
support for the appropriate cipher.

This is not a bug in iwn(4) but in the way wpa_supplicant attempts to detect 
and support h/w that does not have cipher offloading for the requested network.
>How-To-Repeat:
Attempt to use iwn(4) to associate to a WEP network
>Fix:
Use the attached patch (from rpaulo) to declare the cipher's capabilities no 
matter what.

thanks to Allan Jude for help in diagnosing this at AsiaBSDCon 2014

Patch attached with submission follows:

diff --git a/contrib/wpa/src/drivers/driver_bsd.c 
b/contrib/wpa/src/drivers/driver_bsd.c
--- a/contrib/wpa/src/drivers/driver_bsd.c
+++ b/contrib/wpa/src/drivers/driver_bsd.c
@@ -1446,6 +1446,7 @@
drv->capa.key_mgmt = WPA_DRIVER_CAPA_KEY_MGMT_WPA2 |
WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK;
 
+#ifndef __FreeBSD__
if (devcaps.dc_cryptocaps & IEEE80211_CRYPTO_WEP)
drv->capa.enc |= WPA_DRIVER_CAPA_ENC_WEP40 |
WPA_DRIVER_CAPA_ENC_WEP104;
@@ -1453,6 +1454,12 @@
drv->capa.enc |= WPA_DRIVER_CAPA_ENC_TKIP;
if (devcaps.dc_cryptocaps & IEEE80211_CRYPTO_AES_CCM)
drv->capa.enc |= WPA_DRIVER_CAPA_ENC_CCMP;
+#else
+   drv->capa.enc |= WPA_DRIVER_CAPA_ENC_WEP40 |
+   WPA_DRIVER_CAPA_ENC_WEP104 |
+   WPA_DRIVER_CAPA_ENC_TKIP |
+   WPA_DRIVER_CAPA_ENC_CCMP;
+#endif
 
if (devcaps.dc_drivercaps & IEEE80211_C_HOSTAP)
drv->capa.flags |= WPA_DRIVER_FLAGS_AP;


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: misc/186412: WITHOUT_NIS support for ObsoleteFiles.inc

2014-04-04 Thread Sean Bruno
The following reply was made to PR misc/186412; it has been noted by GNATS.

From: Sean Bruno 
To: Volodymyr Kostyrko 
Cc: bug-follo...@freebsd.org, "freebsd-sta...@freebsd.org"
 
Subject: Re: misc/186412: WITHOUT_NIS support for ObsoleteFiles.inc
Date: Fri, 04 Apr 2014 07:50:16 -0700

 --=-+gtsuUSmEjrGGyMB1eBW
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, 2014-04-04 at 17:05 +0300, Volodymyr Kostyrko wrote:
 > misc/186412
 
 It looks like emaste has MFC'd this to 10.  Should it go to 9 as well?
 
 sean
 
 --=-+gtsuUSmEjrGGyMB1eBW
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: This is a digitally signed message part
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJTPsaoAAoJEBkJRdwI6BaHYTIH/3lhU9ggK2/kN3asBQHpgoBi
 y4CwKHuWAt/SujP7Mf61sgNGV/wVbYAO2+WC/jQbmepDGJkQ5MAH4YjLSzWarxxm
 D5vOJyMsmLOSbhgOnv1HQMp76OQaz6CID9Y1rqOM6iVZk2rfLkHqW0w2xPSMkgJi
 9kn+1StoczOhc8poDtosRxPvrd3MUHme6O6vPaBU+x/hJ8uvTbNWIdjPXFBo3Ch3
 jQxtT1vOzvsaZ7s2ZSmH5SdZzP22PJVHp8v4G2Z/Q5R251XZW+hHXnPB3o3h2mqu
 MCdZf6owzv9pw22cgLOvFp7Oto7TsV4n6KgWDsGM0tvrv32vbVNBUI0Rqga9vAM=
 =xoKo
 -END PGP SIGNATURE-
 
 --=-+gtsuUSmEjrGGyMB1eBW--
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/188094: [i915_dri] SIGSEGV in dri code in games/minecraft-client

2014-04-18 Thread Sean Bruno
The following reply was made to PR kern/188094; it has been noted by GNATS.

From: Sean Bruno 
To: bug-follo...@freebsd.org, adr...@freebsd.org
Cc:  
Subject: Re: kern/188094: [i915_dri] SIGSEGV in dri code in
 games/minecraft-client
Date: Fri, 18 Apr 2014 12:31:55 -0700

 --=-lfClKTlIGq/A74n9P02A
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable
 
 minecraft-client has been updated, not sure if it will help this issue
 or not.
 
 I would probably check to see if openjdk7 or 8 works any better too.
 Its pretty trivial to modify the start script to get a different version
 of JAVA
 
 sean
 
 --=-lfClKTlIGq/A74n9P02A
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: This is a digitally signed message part
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJTUX2rAAoJEBkJRdwI6BaHVgQH/RLVTAJUiUPGTCgKXCRWoj6J
 Oll6GqMiRsEYByjbZzRiO+ipUy9KPTii0W1ENLbCghmHpOujg5AgHIk/l5N9AQZS
 KWHLuQCqodYYwe82CuH+aUlCtveiNEb3+ZG5Dk00zpDwXj4eTnaea/WBpydpGlqC
 +EyQD+rFEGY+bdugfV0sGKya2wzINA8PoKVFA9LHuM9qAC7Fm4j9TLdJ7NA1GL7N
 Tw32ovuroza3YLqNqcYfeBXHlEviWmSTxj817UY//y5AkNXrsuJCqDviLv1h2unx
 uLpGC4qcRyQwoTnXrzVN68yPPBXca2DbtH8Nr888XxH7EkO+Bf4p4fu2XxD/XzM=
 =555T
 -END PGP SIGNATURE-
 
 --=-lfClKTlIGq/A74n9P02A--
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/176666: x11/fireflies buildfailure

2013-03-05 Thread Sean Bruno

>Number: 17
>Category:   misc
>Synopsis:   x11/fireflies buildfailure
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 05 14:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sean Bruno
>Release:10-current
>Organization:
FreeBSD
>Environment:
FreeBSD powernoodle 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r247637M: Sat Mar  2 
11:44:39 UTC 2013 root@powernoodle:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
x11/fireflies appears to not build any longer.

===>  Cleaning for fireflies-2.07_4
===>   fireflies-2.07_4 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for fireflies-2.07_4
=> SHA256 Checksum OK for fireflies-2.07.tar.gz.
===>  Patching for fireflies-2.07_4
===>  Applying FreeBSD patches for fireflies-2.07_4
===>   fireflies-2.07_4 depends on executable: gmake - found
===>   fireflies-2.07_4 depends on shared library: GLU.1 - found
===>  Configuring for fireflies-2.07_4
===>   FreeBSD 10 autotools fix applied to 
/usr/ports/x11/fireflies/work/fireflies-2.07/libgfx/configure
===>   FreeBSD 10 autotools fix applied to 
/usr/ports/x11/fireflies/work/fireflies-2.07/configure
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for gcc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for sdl-config... no
checking for glXSwapBuffers in -lGL... yes
checking for glBegin in -lGL... yes
configure: creating ./config.status
config.status: creating Make.include
config.status: creating installit
config.status: creating fireflies.spec
config.status: creating config.h
===>  Building for fireflies-2.07_4
cd libgfx && TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh MAKE=gmake 
lt_cv_sys_max_cmd_len=262144 ./configure 
--with-bindir=/usr/local/bin/xscreensaver-hacks  
--with-confdir=/usr/local/share/xscreensaver/config --prefix=/usr/local  && cd 
src && gmake
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cpp
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking for ranlib... ranlib
checking for rm... /bin/rm
checking for ignored-fltk-config... :
checking for sqrt in -lm... yes
checking for zlibVersion in -lz... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for TIFFOpen in -ltiff... yes
checking for png_read_image in -lpng... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for glBegin in -lGL... yes
checking for glPolygonOffset... yes
checking for glPolygonOffsetEXT... no
checking for FLTK library... no
checking for FLTK GL support... no
checking for ANSI C header files... yes
checking for limits.h... yes
checking for unistd.h... yes
checking for GL/glext.h... yes
checking for GL/glxext.h... yes
checking for GL/wglext.h... yes
checking for hash_map... no
checking for valarray... yes
checking for sstream... yes
checking for strstream... yes
checking for cc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for type bool... yes
checking for working alloca.h... no
checking for alloca... yes
checking for rint... yes
checking for getrusage... yes
checking for times... yes
checking for random... no
checking for getopt... yes
checking for getopt_long... yes
configure: creating ./config.status
config.status: creating gfx-config
config.status: creating include/gfx/config.h
gmake[1]: Entering directory 
`/usr/ports/x11/fireflies/work/fireflies-2.07/libgfx/src'
c++ -c -O2 -pipe -fno-strict-aliasing -I/usr/local/include 
-I/usr/local/include/GL 
-I/usr/ports/x11/fireflies/work/fireflies-2.07/libgfx/include -DHAVE_CONFIG_H  
mat2.cxx
c++ -c -O2 -pipe -fno-strict-aliasing -I/usr/local/include 
-I/u