Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. Re: calcru: negative time ... followed by freeze (Bruce Evans)
2. startup error for pflogd (Michael Reifenberger)
3. Re: USB Mouse not working on Thinkpad R40, works under WinXP
(Tai-hwa Liang)
4. Re: kldload random.ko panics -CURRENT (Roman Neuhauser)
5. [current tinderbox] failure on alpha/alpha (FreeBSD Tinderbox)
6. Re: calcru: negative time ... followed by freeze (Don Lewis)
7. pthread - fork - execv problem (Chris Stenton)
8. [current tinderbox] failure on amd64/amd64 (FreeBSD Tinderbox)
9. [current tinderbox] failure on i386/i386 (FreeBSD Tinderbox)
10. vmware2 port broken? (Marc van Kempen)
11. Re: -current error (Damian Gerow)
12. Re: read vs. mmap (or io vs. page faults) (Mikhail Teterin)
13. Re: Fatal trap 12: page fault while in kernel mode with samba
(Hilko Meyer)
14. Re: read vs. mmap (or io vs. page faults) (Mikhail Teterin)
15. Re: vfs.usermount not working anymore on SMB shares?
(Kirill Pisman)
16. calcru: negative time ... followed by freeze (Grover Lines)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Jun 2004 18:05:02 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: calcru: negative time ... followed by freeze
To: Julian Elischer <julian@elischer.org>
Cc: threads@freebsd.org
Message-ID: <20040621174821.B979@gamplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 21 Jun 2004, Julian Elischer wrote:
> On Mon, 21 Jun 2004, Bruce Evans wrote:
>
> > Ah, here is a likely cause of the bug in -current:
> >
> > % if (p == curthread->td_proc) {
> > % /*
> > % * Adjust for the current time slice. This is actually fairly
> > % * important since the error here is on the order of a time
> > % * quantum, which is much greater than the sampling error.
> > % * XXXKSE use a different test due to threads on other
> > % * processors also being 'current'.
> > % */
> > % binuptime(&bt);
> > % bintime_sub(&bt, PCPU_PTR(switchtime));
> > % bintime_add(&bt, &p->p_runtime);
> > % } else
> > % bt = p->p_runtime;
> >
> > The XXXKSE comment is correct that this might be broken. If the (p
> > != curthread->td_proc) case happens at all for a running process, then
> > it gives a wrong (out of date) timestamp in bt. This wrongness will
> > be detected if calcru() is was called called earlier in the current
> > timeslice and took the other path here.
>
> It should be fairly easy as there is now a thread state that indicates
> that it is actually running now..
It's not so easy [to fix] since the switchtime for threads running on other
CPUs is inaccessible (it is in the CPU's pcpu data).
The bug seems to be unrelated to KSE. It is related to SMP. RELENG_4 has
the bug, and pre-KSE versions have a proc state that indicates if we have
a running process which can't be handled right.
I will turn off the check in the known broken case, and maybe change the
printf() to a log() since the error is not very important and syscons's
console output routine is suspect when called with sched_lock held.
Bruce
------------------------------
Message: 2
Date: Mon, 21 Jun 2004 10:57:44 +0200 (CEST)
From: Michael Reifenberger <mike@Reifenberger.com>
Subject: startup error for pflogd
To: current@freebsd.org
Cc: Max Laier <max@love2party.net>
Message-ID: <20040621105114.G9108@fw.reifenberger.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Hi,
as it seems is pflogd requiring an user "_pflogd" to work which is not
installed by default under FreeBSD.
As it seems is OpenBSD aggressivly using "_<service>" users.
Is this something we should follow?
Bye/2
---
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com
http://www.plaut.de | http://www.Reifenberger.com
------------------------------
Message: 3
Date: Mon, 21 Jun 2004 17:11:00 +0800 (CST)
From: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw>
Subject: Re: USB Mouse not working on Thinkpad R40, works under WinXP
To: Anish Mistry <mistry.7@osu.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <04062117040316.32842@www.mmlab.cse.yzu.edu.tw>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 20 Jun 2004, Anish Mistry wrote:
[...]
> > > The mouse is recognized (I see the entry in /var/log/messages) and usbd
> > > is running and forking off a moused (moused -p /dev/ums0 -I
> > > /var/run/...). X is configured to work with sysmouse (and this works
> > > with my other USB mouse), but both on the text console and in X the
> > > pointer doesn't move and buttons don't work.
> >
> > Same here: the usbd detected the mouse, but neither the console
> > pointer(moused) nor the XFree86 responded to the mouse movement.
> >
> I'm working on importing the NetBSD sources (this particular part of the cod
e
> has been out of sync for a while, so it's going to take a bit of time) which
> I believe may fix this problem. You might want to search the hardware list
> for a small patch by Markus Wild (Fix for Logitech DiNovo cordless mouse)
> that might fix this problem.
Unfortunately, the small patch which checks "!id" doesn't work for me.
Furthermore, I've tried the HID patch attached in:
http://lists.freebsd.org/pipermail/freebsd-hardware/2004-June/001632.html
It turns out the merge was not finished yet: a couple of errors/warnings
whilst compiling dev/usb/ums.c(mismatched prototype while invoking
hid_is_collection()).
Great work! I'm looking forward to testing your patch. :)
------------------------------
Message: 4
Date: Mon, 21 Jun 2004 11:16:54 +0200
From: Roman Neuhauser <neuhauser@chello.cz>
Subject: Re: kldload random.ko panics -CURRENT
To: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw>
Cc: freebsd-current@freebsd.org
Message-ID: <20040621091654.GA1167@isis.wad.cz>
Content-Type: text/plain; charset=us-ascii
# avatar@mmlab.cse.yzu.edu.tw / 2004-06-21 00:01:04 +0800:
> Apparently, loading the module random.ko in -CURRENT always panics the
> kernel unless the random device was not compiled in the kernel.
...
> I'm wondering about why this module loading panicked instead of bailing ou
t
> with something like "kldload: can't load random: File exists?"
When I asked about the same thing not so long ago, the answer was
"don't do it":
http://marc.theaimsgroup.com/?l=freebsd-hackers&m=108113056524926&w=2
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html
------------------------------
Message: 5
Date: Mon, 21 Jun 2004 05:35:33 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on alpha/alpha
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<alpha@freebsd.org>
Message-ID: <20040621093533.A46937306D@freebsd-current.sentex.ca>
TB --- 2004-06-21 08:00:00 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-21 08:00:00 - starting CURRENT tinderbox run for alpha/alpha
TB --- 2004-06-21 08:00:00 - checking out the source tree
TB --- 2004-06-21 08:00:00 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha
TB --- 2004-06-21 08:00:00 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-06-21 08:04:41 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-21 08:04:41 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha/sr
c
TB --- 2004-06-21 08:04:41 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
[...]
ln -sf /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../..
/contrib/binutils/ld/gen-doc.texi configdoc.texi
makeinfo --no-validate -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binut
ils/doc/../../../../contrib/binutils/gas/doc -I /tinderbox/CURRENT/alpha/alpha
/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld -I /tinderbox/CU
RRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../
./contrib/binutils/binutils -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin
/binutils/doc/../../../../contrib/gdb/gdb/doc -I /tinderbox/CURRENT/alpha/alph
a/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /tinderbox/CU
RRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline
/doc --no-split -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc
-I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../
./../../contrib/binutils/ld/ld.texinfo -o ld.info
gzip -cn ld.info > ld.info.gz
makeinfo --no-validate -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binut
ils/doc/../../../../contrib/binutils/gas/doc -I /tinderbox/CURRENT/alpha/alpha
/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld -I /tinderbox/CU
RRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../
./contrib/binutils/binutils -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin
/binutils/doc/../../../../contrib/gdb/gdb/doc -I /tinderbox/CURRENT/alpha/alph
a/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /tinderbox/CU
RRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline
/doc --no-split -I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc
-I /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../
./../../contrib/binutils/gas/doc/gasp.texi -o gasp.i
nfo
gzip -cn gasp.info > gasp.info.gz
ln -sf /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils/doc/../../../..
/contrib/gdb/gdb/doc/all-cfg.texi gdb-cfg.texi
echo "@set GDBVN `sed q /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutil
s/doc/../../../../contrib/gdb/gdb/version.in`" > GDBvn.texi
make: don't know how to make annotate.texi. Stop
*** Error code 2
Stop in /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin/binutils.
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src/gnu/usr.bin.
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src/gnu.
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src.
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src.
TB --- 2004-06-21 09:35:33 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-06-21 09:35:33 - ERROR: failed to build world
TB --- 2004-06-21 09:35:33 - tinderbox aborted
------------------------------
Message: 6
Date: Mon, 21 Jun 2004 03:23:38 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: calcru: negative time ... followed by freeze
To: bde@zeta.org.au
Cc: threads@FreeBSD.org
Message-ID: <200406211023.i5LANcmF048049@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii
On 21 Jun, Don Lewis wrote:
> On 21 Jun, Bruce Evans wrote:
>> On Sun, 20 Jun 2004, Don Lewis wrote:
>>
>>> On 20 Jun, Robert Watson wrote:
>>> > FYI, this is a Xeon box with two physical processors, each with two
>>> > logical processors, and the problem could well be SMP-related.
>>>
>>> The hang might be SMP-related, but I just started getting the calcru
>>> messages on my UP Athlon XP box. I just upgraded to today's
>>> -CURRENT from a week-old version, and my console got spammed by a bunch
>>> of these messages while I was running portupgrade.
>>>
>>> calcru: negative time of 0 usec for pid 21261 (sh)
>>> calcru: negative time of 0 usec for pid 21261 (sh)
>>> ...
>>> calcru: negative time of 3917 usec for pid 49504 (sh)
>>> calcru: negative time of 3917 usec for pid 49504 (sh)
>>
>> Hmm, these are nonnegative times.
>>
>> The extra messages in -current might be caused by fill_kinfo() now calling
>> calcru().
>>
>> Misreporting of negative times is by the following too-simple dianostic:
>>
>> % tu = (u_int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
>> % ptu = p->p_uu + p->p_su + p->p_iu;
>> % if (tu < ptu || (int64_t)tu < 0) {
>> % printf("calcru: negative time of %jd usec for pid %d (%s)\n",
>> % (intmax_t)tu, p->p_pid, p->p_comm);
>> % tu = ptu;
>> % }
>>
>> The message is also printed for the tu < ptu case, which is what you are
>> getting.
>>
>> I fixed the messages when I got a lot of them due to a local bug. The loca
l
>> bug was from double rounding for calcru() on child times (which -current
>> doesn't do). I can't see how this could be the problem in -current, since
>> the components of ptu are rounded down and there is a KASSERT that they
>> added up to less than tu in the previous call.
>>
>> Ah, here is a likely cause of the bug in -current:
>>
>> % if (p == curthread->td_proc) {
>> % /*
>> % * Adjust for the current time slice. This is actually fairly
>> % * important since the error here is on the order of a time
>> % * quantum, which is much greater than the sampling error.
>> % * XXXKSE use a different test due to threads on other
>> % * processors also being 'current'.
>> % */
>> % binuptime(&bt);
>> % bintime_sub(&bt, PCPU_PTR(switchtime));
>> % bintime_add(&bt, &p->p_runtime);
>> % } else
>> % bt = p->p_runtime;
>>
>> The XXXKSE comment is correct that this might be broken. If the (p
>> != curthread->td_proc) case happens at all for a running process, then
>> it gives a wrong (out of date) timestamp in bt. This wrongness will
>> be detected if calcru() is was called called earlier in the current
>> timeslice and took the other path here.
>>
>> The recent change to fill_kinfo() is quite likely to trigger detection
>> of this bug. fill_kinfo() is often used to iterate over all processes
>> for ps, so it will call calcru() with (p != curthread->td_proc) for
>> all processes other than the one running it, and give a bt that is out
>> of date for all such processes that are actually running. Since there
>> can be at most one running process per CPU, this bug only affects SMP.
>>
>> The call to calcru() from ttyinfo() may be the only other trigger.
>> ttyinfo() picks a process and should rarely or never pick the ithread
>> running it, so it will almost always take the (p != curthread->td_proc)
>> path. Again, this is only a problem for the SMP case since in the !SMP
>> case the picked process must have been switched away from to run the
>> ithread, so it cannot be running.
It looks like another way to trigger this in the SMP case would be to
have two threads of the same process running at the same time, and for
the second thread to call calcru() to have been running for a shorter
period of time than when the first thread called calcru().
In the SMP cases, it probably makes sense to just silently to do
if (tu < ptu)
tu = ptu
because of the complications of attempting to do an accurate
calculation.
> There must be some !SMP trigger for this as well. I just checked and I
> was able to trigger this on my Pentium-M laptop as well by leaning on
> the ^T key while I was logged on via ssh and running 'portupgrade -aP'.
>
> Jun 21 00:41:31 hairball kernel: calcru: negative time of 23169 usec for pid
44653 (sh)
> Jun 21 00:41:32 hairball kernel: calcru: negative time of 21990 usec for pid
44665 (sh)
>
> I didn't use ^T on my Athlon box. I might have had top running, though.
>
> It's interesting that this bug only seems to get triggered on /bin/sh.
> Maybe it is fork()/exit()/wait() related?
It looks like the bug is in the exit code. I tweaked the printf() in
calcru() to print out p_state, p_flag, and p_sflag in addition to the
other info. In all cases, the processes that trigger the printf were
zombies, and show up as [running] in ttyinfo() on a uniprocessor box.
Jun 21 03:17:03 hairball kernel: calcru: negative time of 179 usec for
pid 4543 (sh) p_state=0x2 p_flag=0x2002 p_sflag=0x1
load: 0.71 cmd: sh 4543 [running] 0.00u 0.00s 3% 0k
p_runtime only gets updated in mi_switch(), and it appears that it never
gets updated after the calcru() call in exit1().
It also looks like a bug that a zombie remains in the [running] state
and thus looks interesting to ttyinfo().
------------------------------
Message: 7
Date: Mon, 21 Jun 2004 11:59:38 +0100
From: "Chris Stenton" <jacs@gnome.co.uk>
Subject: pthread - fork - execv problem
To: <current@freebsd.org>
Message-ID: <005b01c4577e$d8e998e0$4b7ba8c0@gnome.co.uk>
Content-Type: text/plain; charset="iso-8859-1"
I am trying to help port over an app thats posix threaded. One thread uses
fork and execv to start a child programme in this case an mp3 player.
However, under FreeBSD-5.2.1, the execv causes all the threads in the parent
process to be blocked until the child process returns. Is there a mechanism
to get around this.
Thanks
Chris
------------------------------
Message: 8
Date: Mon, 21 Jun 2004 07:03:32 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on amd64/amd64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<amd64@freebsd.org>
Message-ID: <20040621110332.73BDB7306D@freebsd-current.sentex.ca>
TB --- 2004-06-21 09:35:33 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-21 09:35:33 - starting CURRENT tinderbox run for amd64/amd64
TB --- 2004-06-21 09:35:33 - checking out the source tree
TB --- 2004-06-21 09:35:33 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64
TB --- 2004-06-21 09:35:33 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-06-21 09:40:22 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-21 09:40:22 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64/sr
c
TB --- 2004-06-21 09:40:22 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
[...]
ln -sf /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../..
/contrib/binutils/ld/gen-doc.texi configdoc.texi
makeinfo --no-validate -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binut
ils/doc/../../../../contrib/binutils/gas/doc -I /tinderbox/CURRENT/amd64/amd64
/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld -I /tinderbox/CU
RRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../
./contrib/binutils/binutils -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin
/binutils/doc/../../../../contrib/gdb/gdb/doc -I /tinderbox/CURRENT/amd64/amd6
4/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /tinderbox/CU
RRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline
/doc --no-split -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc
-I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../
./../../contrib/binutils/ld/ld.texinfo -o ld.info
gzip -cn ld.info > ld.info.gz
makeinfo --no-validate -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binut
ils/doc/../../../../contrib/binutils/gas/doc -I /tinderbox/CURRENT/amd64/amd64
/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld -I /tinderbox/CU
RRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../
./contrib/binutils/binutils -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin
/binutils/doc/../../../../contrib/gdb/gdb/doc -I /tinderbox/CURRENT/amd64/amd6
4/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /tinderbox/CU
RRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../../contrib/libreadline
/doc --no-split -I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc
-I /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../
./../../contrib/binutils/gas/doc/gasp.texi -o gasp.i
nfo
gzip -cn gasp.info > gasp.info.gz
ln -sf /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils/doc/../../../..
/contrib/gdb/gdb/doc/all-cfg.texi gdb-cfg.texi
echo "@set GDBVN `sed q /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutil
s/doc/../../../../contrib/gdb/gdb/version.in`" > GDBvn.texi
make: don't know how to make annotate.texi. Stop
*** Error code 2
Stop in /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin/binutils.
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src/gnu/usr.bin.
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src/gnu.
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src.
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src.
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src.
TB --- 2004-06-21 11:03:32 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-06-21 11:03:32 - ERROR: failed to build world
TB --- 2004-06-21 11:03:32 - tinderbox aborted
------------------------------
Message: 9
Date: Mon, 21 Jun 2004 07:03:32 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/i386
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
<i386@freebsd.org>
Message-ID: <20040621110332.C3AEB7306F@freebsd-current.sentex.ca>
------------------------------
Message: 10
Date: Mon, 21 Jun 2004 13:25:20 +0200
From: Marc van Kempen <marc@bowtie.nl>
Subject: vmware2 port broken?
To: current@freebsd.org
Message-ID: <40D6C5A0.6090602@bowtie.nl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Hi,
Since my upgrade to -current (16 June) I can't compile vmware2 anymore,
I couldn't find anything about it in the mailing lists. How can I fix this?
Here is the make output:
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
In function `init_module':
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:267:
warning: assignment makes integer from pointer without a cast
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
In function `cleanup_module':
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:290:
warning: passing arg 1 of `destroy_dev' makes pointer from integer
without a cast
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:288:
warning: unused variable `retval'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:305:35:
i386/isa/intr_machdep.h: No such file or directory
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
At top level:
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:361:
error: conflicting types for `FreeBSD_Driver_Open'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:146:
error: previous declaration of `FreeBSD_Driver_Open'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
In function `FreeBSD_Driver_Open':
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:366:
error: invalid type argument of `->'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:404:
error: invalid type argument of `->'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
At top level:
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:441:
error: conflicting types for `FreeBSD_Driver_Close'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:147:
error: previous declaration of `FreeBSD_Driver_Close'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
In function `FreeBSD_Driver_Close':
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:442:
error: invalid type argument of `->'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:474:
error: invalid type argument of `->'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
At top level:
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:493:
error: conflicting types for `FreeBSD_Driver_Poll'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:149:
error: previous declaration of `FreeBSD_Driver_Poll'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
In function `FreeBSD_Driver_Poll':
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:496:
error: invalid type argument of `->'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
At top level:
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:576:
error: conflicting types for `FreeBSD_Driver_Ioctl'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:148:
error: previous declaration of `FreeBSD_Driver_Ioctl'
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:
In function `FreeBSD_Driver_Ioctl':
/usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only/freebsd/drive
r.c:577:
error: invalid type argument of `->'
*** Error code 1
Stop in /usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only.
*** Error code 1
Stop in /usr/ncvs/ports/emulators/vmware2/work/vmware-distrib/vmmon-only.
*** Error code 1
Stop in /usr/ncvs/ports/emulators/vmware2/work/vmware-distrib.
*** Error code 1
Stop in /usr/ncvs/ports/emulators/vmware2.
*** Error code 1
Stop in /usr/ncvs/ports/emulators/vmware2.
--
http://zuidafrika.vankempen.com
------------------------------
Message: 11
Date: Mon, 21 Jun 2004 07:49:57 -0400
From: Damian Gerow <dgerow@afflictions.org>
Subject: Re: -current error
To: current@freebsd.org
Cc: "Liam J. Foy" <liamfoy@sepulcrum.org>
Message-ID: <20040621114957.GA23840@afflictions.org>
Content-Type: text/plain; charset=us-ascii
Thus spake Ceri Davies (ceri@submonkey.net) [20/06/04 17:39]:
: I've reproduced it, but there's no error in the 23 screens of scrollback
: I have available. I have to hit the sack now; will have another go
: tomorrow.
FWIW, I saw the exact same thing (an odd error in zlib/libz somewhere).
Dropping the '-j4' has resulted in a build error in binutils:
===> strip
cc -O -pipe -ffast-math -march=pentium4 -I. -I/usr/src/gnu/usr.bin/binutils/st
rip -I/usr/src/gnu/usr.bin/binutils/strip/../libbfd/i386 -I/usr/obj/usr/src/gn
u/usr.bin/binutils/strip/../libbfd -I/usr/src/gnu/usr.bin/binutils/strip/../..
/../../contrib/binutils/include -D_GNU_SOURCE -I/usr/src/gnu/usr.bin/binutils/
strip/../libbinutils -I/usr/src/gnu/usr.bin/binutils/strip/../../../../contrib
/binutils/binutils -I/usr/src/gnu/usr.bin/binutils/strip/../../../../contrib/b
inutils/bfd -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized
-c /usr/src/gnu/usr.bin/binutils/strip/../../../../contrib/binutils/binutils/o
bjcopy.c
cc -O -pipe -ffast-math -march=pentium4 -I. -I/usr/src/gnu/usr.bin/binutils/st
rip -I/usr/src/gnu/usr.bin/binutils/strip/../libbfd/i386 -I/usr/obj/usr/src/gn
u/usr.bin/binutils/strip/../libbfd -I/usr/src/gnu/usr.bin/binutils/strip/../..
/../../contrib/binutils/include -D_GNU_SOURCE -I/usr/src/gnu/usr.bin/binutils/
strip/../libbinutils -I/usr/src/gnu/usr.bin/binutils/strip/../../../../contrib
/binutils/binutils -I/usr/src/gnu/usr.bin/binutils/strip/../../../../contrib/b
inutils/bfd -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized
-c /usr/src/gnu/usr.bin/binutils/strip/../../../../contrib/binutils/binutils/i
s-strip.c
cc -O -pipe -ffast-math -march=pentium4 -I. -I/usr/src/gnu/usr.bin/binutils/st
rip -I/usr/src/gnu/usr.bin/binutils/strip/../libbfd/i386 -I/usr/obj/usr/src/gn
u/usr.bin/binutils/strip/../libbfd -I/usr/src/gnu/usr.bin/binutils/strip/../..
/../../contrib/binutils/include -D_GNU_SOURCE -I/usr/src/gnu/usr.bin/binutils/
strip/../libbinutils -I/usr/src/gnu/usr.bin/binutils/strip/../../../../contrib
/binutils/binutils -I/usr/src/gnu/usr.bin/binutils/strip/../../../../contrib/b
inutils/bfd -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized
-o strip objcopy.o is-strip.o ../libbinutils/libbinutils.a ../libbfd/libbfd.a
../libiberty/libiberty.a
./libbinutils/libbinutils.a(bucomm.o)(.text+0xaa2): In function `make_tempnam
e':
: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
gzip -cn /usr/src/gnu/usr.bin/binutils/strip/../../../../contrib/binutils/binu
tils/doc/strip.1 > strip.1.gz
===> doc
echo "@set VERSION "2.15 [FreeBSD] 2004-05-23"" > gasver.texi
makeinfo --no-validate -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contri
b/binutils/gas/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/bi
nutils/ld -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/binuti
ls -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc -I /us
r/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /usr/src/gnu/
usr.bin/binutils/doc/../../../../contrib/libreadline/doc --no-split -I /usr/sr
c/gnu/usr.bin/binutils/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/
gas/doc/as.texinfo -o as.info
gzip -cn as.info > as.info.gz
echo "@set VERSION "2.15 [FreeBSD] 2004-05-23"" > ldver.texi
ln -sf /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/ld/gen-d
oc.texi configdoc.texi
makeinfo --no-validate -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contri
b/binutils/gas/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/bi
nutils/ld -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/binuti
ls -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc -I /us
r/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /usr/src/gnu/
usr.bin/binutils/doc/../../../../contrib/libreadline/doc --no-split -I /usr/sr
c/gnu/usr.bin/binutils/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/
ld/ld.texinfo -o ld.info
gzip -cn ld.info > ld.info.gz
makeinfo --no-validate -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contri
b/binutils/gas/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/bi
nutils/ld -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/bf
d/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/binuti
ls -I /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc -I /us
r/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/mi -I /usr/src/gnu/
usr.bin/binutils/doc/../../../../contrib/libreadline/doc --no-split -I /usr/sr
c/gnu/usr.bin/binutils/doc -I /usr/src/gnu/usr.bin/binutils/doc/../../../../co
ntrib/binutils /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/binutils/
gas/doc/gasp.texi -o gasp.info
gzip -cn gasp.info > gasp.info.gz
ln -sf /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/gdb/gdb/doc/all-c
fg.texi gdb-cfg.texi
echo "@set GDBVN `sed q /usr/src/gnu/usr.bin/binutils/doc/../../../../contrib/
gdb/gdb/version.in`" > GDBvn.texi
make: don't know how to make annotate.texi. Stop
*** Error code 2
Stop in /usr/src/gnu/usr.bin/binutils.
- Damian
------------------------------
Message: 12
Date: Sun, 20 Jun 2004 12:52:14 -0400
From: Mikhail Teterin <mi+kde@aldan.algebra.com>
Subject: Re: read vs. mmap (or io vs. page faults)
To: Dan Nelson <dnelson@allantgroup.com>
Cc: questions@freebsd.org
Message-ID: <200406201252.14255@aldan>
Content-Type: text/plain; charset="iso-8859-1"
On Sunday 20 June 2004 11:41 am, Dan Nelson wrote:
= In the last episode (Jun 20), Mikhail Teterin said:
= > I expected the second way to be faster, as it is supposed to avoid
= > one memory copying (no user-space buffer). But in reality, on a
= > CPU-bound (rather than IO-bound) machine, using mmap() is
= > considerably slower. Here are the tcsh's time results:
= MADV_SEQUENTIAL just lets the system expire already-read blocks from
= its cache faster, so it won't help much here.
That may be what it _does_, but from the manual page, one gets an
impression, it should tell the VM, that once a page is requested (and
had to be page-faulted in), the one after it will be requested soon and
may as well be prefeteched (and the ones before can be dropped if memory
is in short supply). Anyway, using MADV_SEQUENTIAL is consintently
making mmap behave slightly worse, rather then have no effect.
But let's not get distracted with madvise(). Why is mmap() slower? So
much so, that the machine, which is CPU-bound using read() only uses 90%
of the CPU when using mmap -- while, at the same time -- the disk
bandwidth is also less than that of the read(). It looks to me, like a
lot of thought went into optimizing read(), but much less into mmap,
which is supposed to be faster -- less memory shuffling. Is that true,
is there something inherent in mmap-style of reading, that I don't see?
= read() should cause some prefetching to occur, but it obviously
= doesn't work all the time or else inblock wouldn't have been as high
= as 11000. For sequential access I would have expected read() to have
= been able to prefetch almost every block before the userland process
= needed it.
Thanks!
-mi
------------------------------
Message: 13
Date: Mon, 21 Jun 2004 00:38:43 +0200
From: Hilko Meyer <Hilko.Meyer@gmx.de>
Subject: Re: Fatal trap 12: page fault while in kernel mode with samba
To: Doug White <dwhite@gumbysoft.com>
Cc: current@freebsd.org
Message-ID: <dt2cd094madqg4l1087pqldvp4a51ke52n@smtp.compuserve.de>
Content-Type: text/plain; charset=us-ascii
Doug White schrieb:
>On Wed, 31 Mar 2004, Hilko Meyer wrote:
>
>> Doug White schrieb:
>> >I haven't had time to look at this.
>> >
>> >Can y ou try it with -CURRENT, if you ahve't already?
>>
>> I can, but I don't want to do that. And it's no longer necessary. I've
>> installed the recent update of the samba 2.2.8 port this evening and
>> discovered the reason of the panic at the time.
>
>I was able to reproduce this with -current, but looking at the code I
>don't understand how that vfs op is getting nulled out. It should be set
>to the default operation which just return EOPNOTSUPP. I guess some
>KASSERTs are in order.
>
>The function itself hasn't changed materially in months, so its hard to
>tell when this crept in. Out of curiousity, do you have a -stable box
>around, and can you reproduce on that?
I've tried todays -current and can't reproduce the panic anymore. I think
that the commit in
http://lists.freebsd.org/pipermail/cvs-all/2004-April/061569.html from pjd@
fixed my problem.
thanks,
Hilko
------------------------------
Message: 14
Date: Sun, 20 Jun 2004 18:52:08 -0400
From: Mikhail Teterin <mi+kde@aldan.algebra.com>
Subject: Re: read vs. mmap (or io vs. page faults)
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: questions@freebsd.org
Message-ID: <200406201852.08030@aldan>
Content-Type: text/plain; charset="koi8-u"
On Sunday 20 June 2004 02:35 pm, you wrote:
=
= :I this how things are supposed to be, or will mmap() become more
= :efficient eventually? Thanks!
= :
= : -mi
= It's hard to say. mmap() could certainly be made more efficient, e.g.
= by faulting in more pages at a time to reduce the actual fault rate.
= But it's fairly difficult to beat a read copy into a small buffer.
Well, that's the thing -- by mmap-ing the whole file at once (and by
madvise-ing with MADV_SEQUENTIONAL), I thought, I told, the kernel
everything it needed to know to make the best decision. Why can't
page-faulting code do a better job using all this knowledge, than the
poor read, which only knows about the partial read in question?
I find it so disappointing, that it can, probably, be considered a bug.
I'll try this code on Linux and Solaris. If mmap is better there (as it
really ought to be), we have a problem, IMHO. Thanks!
-mi
------------------------------
Message: 15
Date: Mon, 21 Jun 2004 12:40:49 +0700
From: Kirill Pisman <kpisman@sw-soft.com>
Subject: Re: vfs.usermount not working anymore on SMB shares?
To: freebsd-current@freebsd.org
Message-ID: <1087796448.34586.46.camel@nothing.plesk.ru>
Content-Type: text/plain; charset="us-ascii"
> $ mount_smbfs //LESHA@ROUTER/USB /home/lesha/samba
> mount_smbfs: can not setup kernel iconv table (default:tolower): syserr =
> Operation not permitted
> $ sysctl vfs.usermount
> vfs.usermount: 1
>
>
> Any ideas?
Make mount not try to modify kernel structures. Make some defaults setup
for smbfs with root priviligies (mount something before mounting that
share). Or make the same with sudo.
PS I don't think that usermount is something really useful, it looks
much more like one big security hole.
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?=
=?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?=
=?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?=
=?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?=
=?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040621/
94660129/attachment-0001.bin
------------------------------
Message: 16
Date: Mon, 21 Jun 2004 01:33:53 -0700
From: "Grover Lines" <glinesmhcc@hotmail.com>
Subject: calcru: negative time ... followed by freeze
To: freebsd-current@freebsd.org
Message-ID: <BAY7-F109DdadbaEXQf0002e56f@hotmail.com>
Content-Type: text/plain; format=flowed
Im seeing tons of theese errors myself. Im getting them from tcpserver as
well as sh
Im using a single processor machine also. Just thought I'd throw in my 2
cents worth of input
FreeBSD 5.2-CURRENT #0: Sun Jun 20 09:40:31 PDT 2004
CPU: AMD Duron(tm) Processor (1194.92-MHz 686-class CPU)
small sample of errors.. My machine never froze up though
calcru: negative time of 7524 usec for pid 1735 (tcpserver)
calcru: negative time of 4165 usec for pid 1734 (tcpserver)
calcru: negative time of 7445 usec for pid 1733 (tcpserver)
calcru: negative time of 7524 usec for pid 1735 (tcpserver)
calcru: negative time of 4165 usec for pid 1734 (tcpserver)
calcru: negative time of 7445 usec for pid 1733 (tcpserver)
calcru: negative time of 3823 usec for pid 3725 (tcpserver)
calcru: negative time of 8588 usec for pid 3724 (tcpserver)
calcru: negative time of 8863 usec for pid 3723 (tcpserver)
calcru: negative time of 3823 usec for pid 3725 (tcpserver)
calcru: negative time of 8588 usec for pid 3724 (tcpserver)
calcru: negative time of 8863 usec for pid 3723 (tcpserver)
calcru: negative time of 4460 usec for pid 5833 (sh)
calcru: negative time of 4655 usec for pid 5832 (sh)
calcru: negative time of 0 usec for pid 5831 (sh)
calcru: negative time of 4460 usec for pid 5833 (sh)
calcru: negative time of 4655 usec for pid 5832 (sh)
calcru: negative time of 0 usec for pid 5831 (sh)
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 66, Issue 2
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[36m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m