kern/164534: net.bpf.zerocopy_enable=1 makes pflogd eat cpu and hang
>Number: 164534 >Category: kern >Synopsis: net.bpf.zerocopy_enable=1 makes pflogd eat cpu and hang >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: Fri Jan 27 09:30:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Volodymyr Kostyrko >Release:RELENG_9 >Organization: None >Environment: FreeBSD green.tandem.local 9.0-STABLE FreeBSD 9.0-STABLE #1 r230528: Wed Jan 25 14:46:26 EET 2012 arcade@green.tandem.local:/usr/obj/usr/src/sys/MINIMAL_4BSD amd64 >Description: When running kernel with `option ZEROCOPY` and `net.bpf.zerocopy_enable=1` starting pflogd results in its instant hang and 100% cpu consumption. >How-To-Repeat: >Fix: Don't play with options not in GENERIC I suppose... >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"
bin/164535: ps(1) truncates command to screen size even when stdout is not a tty
>Number: 164535 >Category: bin >Synopsis: ps(1) truncates command to screen size even when stdout is not >a tty >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: Fri Jan 27 09:50:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Marcus Reid >Release:9.0-STABLE >Organization: >Environment: FreeBSD seabug 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Jan 9 10:53:27 PST 2012 root@seabug:/usr/obj/usr/src/sys/FARK amd64 >Description: ps(1) truncates long commands to the size of the screen even when stdout is not a terminal. This is counter-intuitive and differs from another implementation I looked at. Output of ps | grep differs depending on how big your terminal window is for example. >How-To-Repeat: ps aux | grep ps auxww | grep >Fix: Patch included. Tested; behavior remains consistent with docs: COLUMNS variable retains effect, and -w limits to 132 characters still. --- bin/ps/ps.c.orig2012-01-27 01:24:10.519024952 -0800 +++ bin/ps/ps.c 2012-01-27 01:24:20.350023629 -0800 @@ -187,6 +187,8 @@ if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') termwidth = atoi(cols); + else if (isatty(STDOUT_FILENO) == 0) + termwidth = UNLIMITED; else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || Patch attached with submission follows: --- bin/ps/ps.c.orig2012-01-27 01:24:10.519024952 -0800 +++ bin/ps/ps.c 2012-01-27 01:24:20.350023629 -0800 @@ -187,6 +187,8 @@ if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') termwidth = atoi(cols); + else if (isatty(STDOUT_FILENO) == 0) + termwidth = UNLIMITED; else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || >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: bin/143962: fstat(1) doesn't work on UNIX sockets
Synopsis: fstat(1) doesn't work on UNIX sockets Responsible-Changed-From-To: freebsd-bugs->pluknet Responsible-Changed-By: pluknet Responsible-Changed-When: Fri Jan 27 09:58:32 UTC 2012 Responsible-Changed-Why: I am working on it. http://www.freebsd.org/cgi/query-pr.cgi?pr=143962 ___ 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/164536: FEATURE REQUEST: disable building kernel modules that are included in the kernel
>Number: 164536 >Category: kern >Synopsis: FEATURE REQUEST: disable building kernel modules that are >included in the kernel >Confidential: no >Severity: non-critical >Priority: low >Responsible:freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 27 10:10:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: vermaden >Release:9.0-STABLE >Organization: >Environment: >Description: Hi, is there anything against a solution, that would disable building kernel modules that are already part of the kernel? There is no way to load them anyway, as they are in the kernel, so they only take space (and time/resources in buildkernel process). Regards, vermaden >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: bin/164535: ps(1) truncates command to screen size even when stdout is not a tty
On Fri, 27 Jan 2012, Marcus Reid wrote: Description: ps(1) truncates long commands to the size of the screen even when stdout is not a terminal. This is counter-intuitive and differs from another implementation I looked at. Output of ps | grep differs depending on how big your terminal window is for example. How-To-Repeat: ps aux | grep ps auxww | grep Fix: Patch included. Tested; behavior remains consistent with docs: COLUMNS variable retains effect, and -w limits to 132 characters still. Patch attached with submission follows: --- bin/ps/ps.c.orig2012-01-27 01:24:10.519024952 -0800 +++ bin/ps/ps.c 2012-01-27 01:24:20.350023629 -0800 @@ -187,6 +187,8 @@ if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') termwidth = atoi(cols); + else if (isatty(STDOUT_FILENO) == 0) + termwidth = UNLIMITED; This change defeats the else clause, which checks all of STDOUT_FILENO, STDERR_FILENO and STDIN_FILENO and uses the terminal width iff any if these is a terminal according to the TIOCGWINSZ test for being a terminal, and otherwise gives a default of 79 columns (not UNLIMITED, which is only documented for ps -ww and only reachable using that and via the missing sanity checking for COLUMNS=0). else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || So the correct way to avoid terminalness when outputting to a file is "ps foo 2>&1". This is too strange for stdin, so apparently checking all 3 fd's is a feature, precisely to get the terminal width from somewhere even when stdout and stderr are redirected to a file. "COLUMNS=0 ps" is an easier way. If this feature is considered a bug, then remove the checks of STDERR_FILENO and STDIN_FILENO. Bruce ___ 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/163540: SCHED_4BSD seems unstable on RELENG_9
The following reply was made to PR kern/163540; it has been noted by GNATS. From: Volodymyr Kostyrko To: bug-follo...@freebsd.org Cc: Subject: Re: kern/163540: SCHED_4BSD seems unstable on RELENG_9 Date: Fri, 27 Jan 2012 13:40:36 +0200 Hello. In case anyone will hit the same bug again I'm providing a link to full crashinfo output: http://limbo.xim.bz/4bsd.core.txt -- Sphinx of black quartz judge my vow. ___ 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/164535: ps(1) truncates command to screen size even when stdout is not a tty
The following reply was made to PR bin/164535; it has been noted by GNATS. From: Bruce Evans To: Marcus Reid Cc: freebsd-gnats-sub...@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: bin/164535: ps(1) truncates command to screen size even when stdout is not a tty Date: Fri, 27 Jan 2012 22:49:35 +1100 (EST) On Fri, 27 Jan 2012, Marcus Reid wrote: >> Description: > ps(1) truncates long commands to the size of the screen even when stdout is > not a terminal. This is counter-intuitive and differs from another > implementation I looked at. Output of ps | grep differs depending on how > big your terminal window is for example. >> How-To-Repeat: > ps aux | grep > ps auxww | grep >> Fix: > Patch included. Tested; behavior remains consistent with docs: COLUMNS > variable retains effect, and -w limits to 132 characters still. > > > Patch attached with submission follows: > > --- bin/ps/ps.c.orig 2012-01-27 01:24:10.519024952 -0800 > +++ bin/ps/ps.c 2012-01-27 01:24:20.350023629 -0800 > @@ -187,6 +187,8 @@ > > if ((cols = getenv("COLUMNS")) != NULL && *cols != '\0') > termwidth = atoi(cols); > +else if (isatty(STDOUT_FILENO) == 0) > +termwidth = UNLIMITED; This change defeats the else clause, which checks all of STDOUT_FILENO, STDERR_FILENO and STDIN_FILENO and uses the terminal width iff any if these is a terminal according to the TIOCGWINSZ test for being a terminal, and otherwise gives a default of 79 columns (not UNLIMITED, which is only documented for ps -ww and only reachable using that and via the missing sanity checking for COLUMNS=0). > else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && > ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 && > ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) || So the correct way to avoid terminalness when outputting to a file is "ps foo 2>&1". This is too strange for stdin, so apparently checking all 3 fd's is a feature, precisely to get the terminal width from somewhere even when stdout and stderr are redirected to a file. "COLUMNS=0 ps" is an easier way. If this feature is considered a bug, then remove the checks of STDERR_FILENO and STDIN_FILENO. Bruce ___ 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/164538: [patch] add support for newer Lenovo ThinkPads to acpi_ibm
>Number: 164538 >Category: kern >Synopsis: [patch] add support for newer Lenovo ThinkPads to acpi_ibm >Confidential: no >Severity: non-critical >Priority: medium >Responsible:freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 27 12:40:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Pierre Imai >Release:9.0-stable >Organization: >Environment: FreeBSD X.Y.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Jan 20 20:52:52 CET 2012 r...@x.y.net:/usr/obj/data/usr/src/sys/COMMON-AMD64 amd64 >Description: The acpi_ibm kernel module does not include the ID used by newer Lenovo Laptops (basically, "IBM0086" was replaced by "LEN0086"). Adding the new string to the ibm_ids struct in acpi_ibm.c allows the driver to attach and work properly. Tested during daily use on a ThinkPad W520 running 9.0-stable AMD64 since Nov 2011. >How-To-Repeat: Try "kldload ibm_acpi" on e.g. a Lenovo ThinkPad W520, the driver will not recognize the ACPI ID. >Fix: Replace line 293 of sys/dev/acpi_support/acpi_ibm.c: --- /usr/src/sys/dev/acpi_support/acpi_ibm.c.old2012-01-27 13:18:19.0 +0100 +++ /usr/src/sys/dev/acpi_support/acpi_ibm.c2012-01-27 13:19:32.0 +0100 @@ -290,7 +290,7 @@ DRIVER_MODULE(acpi_ibm, acpi, acpi_ibm_driver, acpi_ibm_devclass, 0, 0); MODULE_DEPEND(acpi_ibm, acpi, 1, 1, 1); -static char*ibm_ids[] = {"IBM0068", NULL}; +static char*ibm_ids[] = {"LEN0068", "IBM0068", NULL}; static void ibm_led(void *softc, int onoff) >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: bin/164353: ifmcstat(8) build fail without -DWITH_KVM
Synopsis: ifmcstat(8) build fail without -DWITH_KVM State-Changed-From-To: open->patched State-Changed-By: maxim State-Changed-When: Fri Jan 27 17:16:55 UTC 2012 State-Changed-Why: Fixed in HEAD. Thanks for the patch! Responsible-Changed-From-To: freebsd-bugs->maxim Responsible-Changed-By: maxim Responsible-Changed-When: Fri Jan 27 17:16:55 UTC 2012 Responsible-Changed-Why: MFC reminder. http://www.freebsd.org/cgi/query-pr.cgi?pr=164353 ___ 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/164081: sockstat(1) not reporting all open sockets
Synopsis: sockstat(1) not reporting all open sockets State-Changed-From-To: open->patched State-Changed-By: jilles State-Changed-When: Fri Jan 27 21:11:04 UTC 2012 State-Changed-Why: Fixed in head. Responsible-Changed-From-To: freebsd-bugs->jilles Responsible-Changed-By: jilles Responsible-Changed-When: Fri Jan 27 21:11:04 UTC 2012 Responsible-Changed-Why: Take. http://www.freebsd.org/cgi/query-pr.cgi?pr=164081 ___ 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/156540: commit references a PR
The following reply was made to PR kern/156540; it has been noted by GNATS. From: dfil...@freebsd.org (dfilter service) To: bug-follo...@freebsd.org Cc: Subject: Re: kern/156540: commit references a PR Date: Sat, 28 Jan 2012 01:39:03 + (UTC) Author: emaste Date: Sat Jan 28 01:38:48 2012 New Revision: 230636 URL: http://svn.freebsd.org/changeset/base/230636 Log: pmc_*_initialize may return NULL if the CPU is not supported, so check that md is not null before dereferencing it. PR: kern/156540 Modified: head/sys/dev/hwpmc/hwpmc_x86.c Modified: head/sys/dev/hwpmc/hwpmc_x86.c == --- head/sys/dev/hwpmc/hwpmc_x86.c Sat Jan 28 00:17:17 2012 (r230635) +++ head/sys/dev/hwpmc/hwpmc_x86.c Sat Jan 28 01:38:48 2012 (r230636) @@ -250,7 +250,7 @@ pmc_md_initialize() return (NULL); /* disallow sampling if we do not have an LAPIC */ - if (!lapic_enable_pmc()) + if (md != NULL && !lapic_enable_pmc()) for (i = 1; i < md->pmd_nclass; i++) md->pmd_classdep[i].pcd_caps &= ~PMC_CAP_INTERRUPT; ___ svn-src-...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org" ___ 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/164538: [acpi_ibm] [patch] add support for newer Lenovo ThinkPads to acpi_ibm
Old Synopsis: [patch] add support for newer Lenovo ThinkPads to acpi_ibm New Synopsis: [acpi_ibm] [patch] add support for newer Lenovo ThinkPads to acpi_ibm Responsible-Changed-From-To: freebsd-bugs->freebsd-acpi Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 28 03:08:18 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=164538 ___ 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"
bin/164561: [patch] usr.sbin/pkg_install: update references to INDEX-8 for CURRENT
>Number: 164561 >Category: bin >Synopsis: [patch] usr.sbin/pkg_install: update references to INDEX-8 for >CURRENT >Confidential: no >Severity: non-critical >Priority: low >Responsible:freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 28 03:50:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Conrad J. Sabatier >Release:FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD serene.no-ip.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Thu Jan 26 09:38:49 CST 2012 r...@serene.no-ip.org:/usr/obj/usr/src/sys/CUSTOM amd64 >Description: pkg_version(1) refers to INDEX-8, should be INDEX-10 in CURRENT >How-To-Repeat: N/A >Fix: patch below --- pkg_install.diff begins here --- Index: /usr/src/usr.sbin/pkg_install/version/pkg_version.1 === RCS file: /home/ncvs/src/usr.sbin/pkg_install/version/pkg_version.1,v retrieving revision 1.40 diff -u -r1.40 pkg_version.1 --- /usr/src/usr.sbin/pkg_install/version/pkg_version.1 30 May 2008 14:26:09 - 1.40 +++ /usr/src/usr.sbin/pkg_install/version/pkg_version.1 28 Jan 2012 03:30:24 - @@ -72,7 +72,7 @@ .Nm will search for the package in the ports collection index file (typically -.Pa /usr/ports/INDEX-8 ) . +.Pa /usr/ports/INDEX-10 ) . Any matching version number(s) there will be used to determine whether the installed package is up-to-date or requires updating. .Pp @@ -205,12 +205,12 @@ If no .Ar index file is specified on the command line, -.Pa /usr/ports/INDEX-8 +.Pa /usr/ports/INDEX-10 is used. .El .Sh FILES -.Bl -tag -width /usr/ports/INDEX-8 -compact -.It Pa /usr/ports/INDEX-8 +.Bl -tag -width /usr/ports/INDEX-10 -compact +.It Pa /usr/ports/INDEX-10 Default index file. .El .Sh EXAMPLES @@ -224,7 +224,7 @@ The command below generates a report against the version numbers in the on-line ports collection: .Pp -.Dl % pkg_version http://www.FreeBSD.org/ports/INDEX-8 +.Dl % pkg_version http://www.FreeBSD.org/ports/INDEX-10 .Pp The following command compares two package version strings: .Pp --- pkg_install.diff ends here --- >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: bin/164561: [patch] pkg_version(1): update references to INDEX-8 for CURRENT
Old Synopsis: [patch] usr.sbin/pkg_install: update references to INDEX-8 for CURRENT New Synopsis: [patch] pkg_version(1): update references to INDEX-8 for CURRENT Responsible-Changed-From-To: freebsd-bugs->portmgr Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 28 04:54:12 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=164561 ___ 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/164534: [bpf] net.bpf.zerocopy_enable=1 makes pflogd eat cpu and hang
Old Synopsis: net.bpf.zerocopy_enable=1 makes pflogd eat cpu and hang New Synopsis: [bpf] net.bpf.zerocopy_enable=1 makes pflogd eat cpu and hang Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 28 04:58:28 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=164534 ___ 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"