Message-ID: <4DT5ek$CGA@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 71, Issue 1
Date: Mon, 02 Aug 2004 11:25:34 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1091445934.A
Xref: 74.82.202.154 cn.bbs.comp.unix:1412
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. nvidia binary drivers no longer work (Stefan Ehmann)
2. Re: compile problems in -current (Michael Nottebrock)
3. Re: Problems with snd_via82c686 module (cpghost)
4. Re: PPPoE broekn in the FreeBSD-current (2004.8.1) (Gleb Smirnoff)
5. Re: nvidia binary drivers no longer work (Svatoboj)
6. Re: nvidia binary drivers no longer work (Stefan Ehmann)
7. Panic on boot with today's CURRENT, ata related (Radek Kozlowski)
8. Re: nvidia binary drivers no longer work (Michal Varga)
9. Re: /dev/null doesn't get created (Derek Tattersall)
10. Re: /dev/null doesn't get created (Mark Murray)
11. includes in sys/amd64/amd64/mem.c (Conrad J. Sabatier)
12. Re: includes in sys/amd64/amd64/mem.c (Mark Murray)
13. Re: Upgrading to net/openldap22-sasl-server giving fits
(Joe Marcus Clarke)
14. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
no interrupt") (Brian Fundakowski Feldman)
15. Re: includes in sys/amd64/amd64/mem.c (Conrad J. Sabatier)
16. Re: includes in sys/amd64/amd64/mem.c (Conrad J. Sabatier)
17. Re: tar -l versus gtar -l (Tim Kientzle)
18. processes freezing when writing to gstripe'd device (Sam Lawrance)
19. Re: tar -l versus gtar -l (Andrey Chernov)
20. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
no interrupt") (Scott Long)
21. Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
no interrupt") (Nate Lawson)
22. Re: processes freezing when writing to gstripe'd device
(Pawel Jakub Dawidek)
23. Re: processes freezing when writing to gstripe'd device
(Pawel Jakub Dawidek)
24. Re: tar -l versus gtar -l (David G. Lawrence)
25. Re: includes in sys/amd64/amd64/mem.c (Mark Murray)
26. Re: Buildkernel+ALTQ error (Dan Cojocar)
27. Unable to build new kernel with old gcc (WAS: RE:
Buildkernel+ALTQ error) (Yuriy Tsibizov)
28. Re: Buildkernel+ALTQ error (Dan Cojocar)
29. Re: nvidia binary drivers no longer work (Doug Rabson)
30. Re: nvidia binary drivers no longer work (Doug Rabson)
31. Re: Buildkernel+ALTQ error (Dan Cojocar)
32. Re: PPPoE broekn in the FreeBSD-current (2004.8.1) (Gleb Smirnoff)
33. Re: PPP(was: oE) problems with latest -CURRENT
(Peter Ulrich Kruppa)
34. Re: PPP(was: oE) problems with latest -CURRENT (Bjoern A. Zeeb)
35. Re: Buildkernel+ALTQ error (Max Laier)
----------------------------------------------------------------------
Message: 1
Date: Sun, 01 Aug 2004 20:45:43 +0200
From: Stefan Ehmann <shoesoft@gmx.net>
Subject: nvidia binary drivers no longer work
To: current@freebsd.org
Message-ID: <1091385943.873.4.camel@taxman>
Content-Type: text/plain
After today's cvsup the system freezes when I try to start X using the
nvidia binary driver. The nv driver still works.
~1 week old kernel doesn't have this problem.
------------------------------
Message: 2
Date: Sun, 1 Aug 2004 20:50:41 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: compile problems in -current
To: freebsd-current@FreeBSD.org
Cc: Randy Bush <randy@psg.com>
Message-ID: <200408012050.45288.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"
On Sunday 01 August 2004 20:27, Randy Bush wrote:
[reply-to set to freebsd-ports@]
> ! print/ghostscript-gnu (ghostscript-gnu-7.07_11)
Fixed in ports.
> ! devel/fam (fam-2.6.9_4) (unknown build error)
Fix in PR 69827.
--
,_, | Michael Nottebrock | lofi@freebsd.org
(/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
\u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040801/a32df3ef/attachment-0001.bin
------------------------------
Message: 3
Date: Sun, 01 Aug 2004 21:55:50 +0200
From: cpghost <cpghost@cordula.ws>
Subject: Re: Problems with snd_via82c686 module
To: Svatoboj <svatoboj@centrum.cz>
Cc: freebsd-current@freebsd.org
Message-ID: <410D4AC6.2020305@cordula.ws>
Content-Type: text/plain; charset=us-ascii; format=flowed
Svatoboj wrote:
>Hello,
>
>I have strange behaviour problems with on-board sound card using
>snd_via82c686 module.
>Sound gets somehow distorted and scratchy out of speakers.
>
>
Me too. FWIW, the sound artifacts seem to correlate pretty closely
with disk activity. This problem worsened the last couple of months.
Unfortunately, I can't pinpoint the date when it started. :(
--
Cordula's Web. http://www.cordula.ws/
------------------------------
Message: 4
Date: Sun, 1 Aug 2004 23:52:07 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: PPPoE broekn in the FreeBSD-current (2004.8.1)
To: "Tseng, Ling-hua" <uranus.ed@msa.hinet.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040801195207.GA42499@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r
On Sun, Aug 01, 2004 at 09:59:07PM +0800, Tseng, Ling-hua wrote:
T> FreeBSD: src/sys/netgraph/ng_socket.c, v 1.52 2004/07/27 20:30:56 glebius Exp $
I have fixed problem in rev 1.53
T> > On Sun, Aug 01, 2004 at 02:46:23PM +0800, Tseng, Ling-hua wrote:
T> > T> I viewed some topics and found its problem in 3com NICs, but I never found the topics about the 'lnc' driver.
T> > T> So I post this problem again. It seems disconnect immediately after dial-up.
T> >
T> > What is revision of your ng_socket.c?
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
------------------------------
Message: 5
Date: Sun, 1 Aug 2004 22:12:57 +0200
From: Svatoboj <svatoboj@centrum.cz>
Subject: Re: nvidia binary drivers no longer work
To: Stefan Ehmann <shoesoft@gmx.net>
Cc: current@freebsd.org
Message-ID: <20040801201257.GB6560@mjolnir>
Content-Type: text/plain; charset=us-ascii
On Sun, Aug 01, 2004 at 08:45:43PM +0200, Stefan Ehmann wrote:
> After today's cvsup the system freezes when I try to start X using the
> nvidia binary driver. The nv driver still works.
>
> ~1 week old kernel doesn't have this problem.
Just curious what kind nvidia card do you have?
Using this one:
nvidia0@pci1:0:0: class=0x030000 card=0x00000000 chip=0x011010de
rev=0xb2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'NV11 GeForce2 MX / MX 400'
causes panic at boot
>
Svata
--
If you cannot work with love but only with distaste it is better that you
should leave your work.
Kahlil Gibran
------------------------------
Message: 6
Date: Sun, 01 Aug 2004 22:27:57 +0200
From: Stefan Ehmann <shoesoft@gmx.net>
Subject: Re: nvidia binary drivers no longer work
To: Svatoboj <svatoboj@centrum.cz>
Cc: current@freebsd.org
Message-ID: <1091392076.770.1.camel@taxman>
Content-Type: text/plain
On Sun, 2004-08-01 at 22:12, Svatoboj wrote:
> On Sun, Aug 01, 2004 at 08:45:43PM +0200, Stefan Ehmann wrote:
> > After today's cvsup the system freezes when I try to start X using the
> > nvidia binary driver. The nv driver still works.
> >
> > ~1 week old kernel doesn't have this problem.
> Just curious what kind nvidia card do you have?
> Using this one:
> nvidia0@pci1:0:0: class=0x030000 card=0x00000000 chip=0x011010de
> rev=0xb2 hdr=0x00
> vendor = 'NVIDIA Corporation'
> device = 'NV11 GeForce2 MX / MX 400'
>
> causes panic at boot
dmesg says
nvidia0: <GeForce4 MX 440 with AGP8X> mem
0xf4000000-0xf7ffffff,0xf1000000-0xf1ffffff irq 16 at device 0.0 on
pci1
------------------------------
Message: 7
Date: Sun, 1 Aug 2004 22:43:56 +0200
From: Radek Kozlowski <radek@raadradd.com>
Subject: Panic on boot with today's CURRENT, ata related
To: current@freebsd.org
Message-ID: <20040801204356.GE16779@werd>
Content-Type: text/plain; charset=iso-8859-2
I get a kernel panic on boot with today's CURRENT on my HP Pavilion
laptop (ACPI enabled). Copied by hand:
[...]
ad0: 38154MB <IC25N040ATMR04-0> [77520/16/63] at ata0-master PIO4
ATAPI_RESET time = 70us
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x3c
fault code = supervisor read, page not present
instrucion pointer = 0x8 :0xc044990e
stack pointer = 0x10 :0xc0c21c8c
frame pointer = 0x10 :0xc0c21cc0
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
[thread 0]
Stopped at ata-generic_transaction+0x80e: testb $0x1,0x3c(1.268054e+246ax)
db> trace
ata_generic_transaction(c1b25a8c,c1b25a8c,1f4,a,c1b25a8c) at
ata_generic_transaction+0x80e
ata_start(c1947c00,0,c06b906f,1,c1b25a8c) at ata_start+0x279
ata_queue_request(c1b25a8c,0,101,0,e2d9) at ata_queue_request+0x1fc
ata_controlcmd(c1947ca8,8,0,0,0) at ata_controlcmd+0x8b
ata_identify_devices(c1947c00,1,c18418b0,c0705410,c0c21d80) at
ata_identify_devices+0x162
ata_boot_attach(0,0,c0c21d80,c05181c6,0) at ata_boot_attach+0x2f
run_interrupt_driven_config_hooks(0,c1e000,c1ec00,c1e000,0) at
run_interrupt_driven_config_hooks+0x1c
mi_startup() at mi_startup+0x99
begin() at begin+0x2c
I wish there was a spell checker for things like this.
Maybe this panic is in some way related to what I've previously reported
here:
http://lists.freebsd.org/mailman/htdig/freebsd-current/2004-June/029440.html
-Radek
------------------------------
Message: 8
Date: Sun, 01 Aug 2004 23:07:59 +0200
From: Michal Varga <varga@stonehenge.sk>
Subject: Re: nvidia binary drivers no longer work
To: freebsd-current@freebsd.org
Message-ID: <1091394479.9942.53.camel@xenon.stonehenge.sk>
Content-Type: text/plain
Same here, stopped working about three days ago. Athlon 2500+, GeForce 2
MX400, xorg-server-6.7.0_5, freezes when initializing video card. Open
source drive works fine as usually.
The problem seems to be not kernel related, use of two week old kernel
compiled on a different box didn't solve anything, so i suppose the new
GCC has something to do with this. Rebuilt nvidia driver with no effect,
xorg was not rebuilt yet, want to give it a try sometime. If someone
tried that already, you can save me a lot of time by sending a notice..
(the system is very unstable after all the latest changes in -current,
so i suppose i will take 5-6 panics or lockups until i will be able to
recompile xorg succesfully, if ever..)
m.
On Sun, 2004-08-01 at 20:45, Stefan Ehmann wrote:
> After today's cvsup the system freezes when I try to start X using the
> nvidia binary driver. The nv driver still works.
>
> ~1 week old kernel doesn't have this problem.
>
> _______________________________________________
> 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"
--
Michal Varga <varga@stonehenge.sk>
Stonehenge
------------------------------
Message: 9
Date: Sun, 1 Aug 2004 17:09:37 -0400
From: Derek Tattersall <dlt@mebtel.net>
Subject: Re: /dev/null doesn't get created
To: Mark Murray <mark@grondar.org>
Cc: current@FreeBSD.ORG
Message-ID: <20040801210937.GA1682@mebtel.net>
Content-Type: text/plain; charset=us-ascii
* Mark Murray (mark@grondar.org) [040801 17:03]:
> From: Mark Murray <mark@grondar.org>
> Message-Id: <200408011825.i71IPZgG018406@grimreaper.grondar.org>
> To: dlt@mebtel.net
> Cc: current@FreeBSD.ORG
> Subject: Re: /dev/null doesn't get created
> Date: Sun, 01 Aug 2004 19:25:34 +0100
>
> Derek Tattersall writes:
> > CURRENT as of this morning dint'create /dev/null. My previous
> > CURRENT, from July 25 created it fine so all was well.Can anybody
> > offer me a clue as to what this is all about? I tried to figure out
> > what causes /dev/null to get created, but was unsuccessful.
>
> BOOBOO of mine. Please always check src/UPDATING for clues :-)
>
> M
> --
> Mark Murray
> iumop ap!sdn w,I idlaH
Well I appear to have cvsup'ed just before you added the text to
UPDATING. Oh well. That brings up an interesting question: Under
what circumstances would it be advantageous to not compile the drivers
into the kernel, but leave them as modules and load from
/boot/loader.conf? I haven't had any luck imagining why you would
want to leave them as modules.
--
Derek Tattersall | "Don't say yes until I finish talking." --
| Darryl F. Zanuck
dlt@mebtel.net |
|
dlt666@yahoo.com |
------------------------------
Message: 10
Date: Sun, 01 Aug 2004 22:26:51 +0100
From: Mark Murray <markm@FreeBSD.ORG>
Subject: Re: /dev/null doesn't get created
To: dlt@mebtel.net
Cc: current@FreeBSD.ORG
Message-ID: <200408012126.i71LQp81019936@grimreaper.grondar.org>
Derek Tattersall writes:
> Well I appear to have cvsup'ed just before you added the text to
> UPDATING. Oh well. That brings up an interesting question: Under
> what circumstances would it be advantageous to not compile the drivers
> into the kernel, but leave them as modules and load from
> /boot/loader.conf? I haven't had any luck imagining why you would
> want to leave them as modules.
Personal preference. I like the idea of eventually having a kernel
that is put together at boot time with NO recompiling when you need
to reconfigure.
M
--
Mark Murray
iumop ap!sdn w,I idlaH
------------------------------
Message: 11
Date: Sun, 01 Aug 2004 16:50:24 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: includes in sys/amd64/amd64/mem.c
To: freebsd-current@freebsd.org
Message-ID: <XFMail.20040801165024.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
Curious. I compared the includes in mem.c for each architecture and
found that amd64 is the only one that doesn't include <sys/kernel.h>.
Is this an oversight?
Still waiting for the kernel build breakage on amd64 to be fixed. I'm
at a loss, myself.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 12
Date: Sun, 01 Aug 2004 23:31:39 +0100
From: Mark Murray <markm@FreeBSD.ORG>
Subject: Re: includes in sys/amd64/amd64/mem.c
To: conrads@cox.net
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <200408012231.i71MVeRd020305@grimreaper.grondar.org>
"Conrad J. Sabatier" writes:
> Curious. I compared the includes in mem.c for each architecture and
> found that amd64 is the only one that doesn't include <sys/kernel.h>.
> Is this an oversight?
Could be. Could you try adding that and see if it fixes things? I don't
have access to a working AMD64 right now.
> Still waiting for the kernel build breakage on amd64 to be fixed. I'm
> at a loss, myself.
Erm, could you post the errors you see?
M
--
Mark Murray
iumop ap!sdn w,I idlaH
------------------------------
Message: 13
Date: Sun, 01 Aug 2004 19:32:59 -0400
From: Joe Marcus Clarke <marcus@marcuscom.com>
Subject: Re: Upgrading to net/openldap22-sasl-server giving fits
To: Kirk Strauser <kirk@strauser.com>
Cc: freebsd-current@freebsd.org
Message-ID: <1091403178.84653.3.camel@shumai.marcuscom.com>
Content-Type: text/plain; charset="us-ascii"
On Thu, 2004-07-29 at 15:50, Kirk Strauser wrote:
> On Thursday 29 July 2004 13:21, Doug White wrote:
>
> > It would not suprise me if you need to dump + reload your database to
> > update to a new bdb schema in openldap2.2.
>
> <whine>But I don't WANT to reload my database!</whine>
Yeah, I was in the same boat as you. I wanted to do a binary data
upgrade. According to the Sleepy Cat documentation, only the log file
format changed, so upgrades should have been easy. It wasn't, however.
What I ended up doing on advice from eik was to slapcat my databases
with openldap21-server installed, then upgrade to 2.2, then slapadd the
dumped LDIF back. Since I didn't have a large amount of data, this
worked quite well.
>
> Is there a generalized way to upgrade Berkeley databases? I tried to
> RTFDocs, but they seem to be aimed at BDB programmers ("Simply call the
> DB->transmogrify method...") instead of command-line users.
I tried all of that, but everytime, I ended up with a corrupt
database...at least according to slapd.
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040801/6d9330ab/attachment-0001.bin
------------------------------
Message: 14
Date: Sun, 1 Aug 2004 20:15:45 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
no interrupt")
To: Nate Lawson <nate@cryptography.com>
Cc: current@freebsd.org
Message-ID: <20040802001545.GA91621@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Sun, Aug 01, 2004 at 05:05:19PM -0700, Nate Lawson wrote:
> Brian Fundakowski Feldman wrote:
> >On Fri, Jul 30, 2004 at 03:48:52PM -0700, Nate Lawson wrote:
> >>I've tracked down the source of the memory corruption in -current that
> >>results when booting with various CD and DVD drives (especially the ones
> >>that come with Thinkpads including T23, R32, T41, etc.) The panic is
> >>obvious when running with INVARIANTS ("memory modified after free") but
> >>not so obvious in other configurations. For instance, without
> >>INVARIANTS, part of the rt_info structure is corrupted on my wireless
> >>card, resulting in a panic during ifconfig on boot. This is likely the
> >>source of other problems, including phk's ACPI panic (again, only
> >>triggered when booting with the CD drive in the bay.)
> >>
> >>The root problem is that ata_timeout() fires and calls ata_pio_read()
> >>which overwrites 512 bytes random memory. There are actually two bugs
> >>here that overwrite memory. The code path is as follows:
> >
> >Good job identifying it more exactly. I decided it should just
> >fundamentally
> >be using GEOM primitives everywhere to move the solutions to all these
> >side cases into where they're already handled generically... still think
> >that's probably the right solution, but I'm glad to see this specific
> >problem fixed.
>
> I'm not sure if this is a troll or not but I'll answer it seriously.
> GEOM and other upper layers are never the right place to handle error
> recovery for transactions initiated at the lower layers (like this
> device scan).
>
> In every system I've seen, error recovery is the hardest part of storage
> code to get right and is seldom well-tested. It's a very difficult
> problem that involves a lot of careful fault injection/testing.
> Divergence in hardware fault handling behavior only complicates things.
What would make it a troll? If GEOM were used so that all transactions
were centrallized, and there were one timeout mechanism used to run the
request queues for ATA, it wouldn't be racing and crashing when a device
reset occurs (and it would be a net reduction in code).
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 15
Date: Sun, 01 Aug 2004 20:16:50 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: includes in sys/amd64/amd64/mem.c
To: Mark Murray <markm@FreeBSD.ORG>
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <XFMail.20040801201650.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
On 01-Aug-2004 Mark Murray wrote:
> "Conrad J. Sabatier" writes:
>> Curious. I compared the includes in mem.c for each architecture and
>> found that amd64 is the only one that doesn't include <sys/kernel.h>.
>> Is this an oversight?
>
> Could be. Could you try adding that and see if it fixes things? I
> don't have access to a working AMD64 right now.
>
>> Still waiting for the kernel build breakage on amd64 to be fixed.
>> I'm at a loss, myself.
>
> Erm, could you post the errors you see?
Sorry. They were posted in another thread, but I'll provide them
again.
Adding "#include <sys/kernel.h>" *almost* fixes things, but there are
still some missing defines (from sys/amd64/include/vmparam.h, which is
not being included either).
In /etc/make.conf:
COPTFLAGS= -O2 -pipe -march=athlon64 -m64
cc -c -O2 -pipe -march=athlon64 -m64 -fno-strict-aliasing -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys
-I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf
-I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd
-I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h
-fno-common -finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer
-mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Werror /usr/src/sys/amd64/amd64/mem.c
/usr/src/sys/amd64/amd64/mem.c: In function `memrw':
/usr/src/sys/amd64/amd64/mem.c:97: warning: implicit declaration of
function `PHYS_TO_DMAP'
/usr/src/sys/amd64/amd64/mem.c:97: warning: nested extern declaration
of `PHYS_TO_DMAP'
/usr/src/sys/amd64/amd64/mem.c:97: warning: cast to pointer from
integer of different size
/usr/src/sys/amd64/amd64/mem.c:103: error: `DMAP_MIN_ADDRESS'
undeclared (first use in this function)
/usr/src/sys/amd64/amd64/mem.c:103: error: (Each undeclared identifier
is reported only once
/usr/src/sys/amd64/amd64/mem.c:103: error: for each function it appears
in.)
/usr/src/sys/amd64/amd64/mem.c:103: error: `DMAP_MAX_ADDRESS'
undeclared (first use in this function)
/usr/src/sys/amd64/amd64/mem.c:104: warning: implicit declaration of
function `DMAP_TO_PHYS'
/usr/src/sys/amd64/amd64/mem.c:104: warning: nested extern declaration
of `DMAP_TO_PHYS'
/usr/src/sys/amd64/amd64/mem.c:118: error: `KERNBASE' undeclared (first
use in this function)
*** Error code 1
Stop in /usr/obj/usr/src/sys/CUSTOM.
Adding '#include "/usr/src/sys/amd64/include/vmparam.h"' to mem.c (I
know this is a hack) produces this:
linking kernel.debug
amd64_mem.o(.text+0xa7a): In function `amd64_mrinit':
/usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to
`M_MEMDESC'
mem.o(.text+0x30c): In function `memioctl':
/usr/src/sys/amd64/amd64/mem.c:185: undefined reference to `M_MEMDESC'
mem.o(.text+0x332):/usr/src/sys/amd64/amd64/mem.c:192: undefined
reference to `M_MEMDESC'
mem.o(.text+0x35a):/usr/src/sys/amd64/amd64/mem.c:200: undefined
reference to `M_MEMDESC'
mem.o(.text+0x38a):/usr/src/sys/amd64/amd64/mem.c:207: undefined
reference to `M_MEMDESC'
*** Error code 1
Stop in /usr/obj/usr/src/sys/CUSTOM.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 16
Date: Sun, 01 Aug 2004 20:24:09 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: includes in sys/amd64/amd64/mem.c
To: freebsd-current@freebsd.org
Message-ID: <XFMail.20040801202409.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
On 02-Aug-2004 Conrad J. Sabatier wrote:
[snip]
> Adding '#include "/usr/src/sys/amd64/include/vmparam.h"' to mem.c (I
> know this is a hack) produces this:
>
> linking kernel.debug
> amd64_mem.o(.text+0xa7a): In function `amd64_mrinit':
> /usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to
> `M_MEMDESC'
> mem.o(.text+0x30c): In function `memioctl':
> /usr/src/sys/amd64/amd64/mem.c:185: undefined reference to
> `M_MEMDESC'
> mem.o(.text+0x332):/usr/src/sys/amd64/amd64/mem.c:192: undefined
> reference to `M_MEMDESC'
> mem.o(.text+0x35a):/usr/src/sys/amd64/amd64/mem.c:200: undefined
> reference to `M_MEMDESC'
> mem.o(.text+0x38a):/usr/src/sys/amd64/amd64/mem.c:207: undefined
> reference to `M_MEMDESC'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/CUSTOM.
OK, I also see that in sys/i386/i386/mem.c we have:
MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
But sys/amd64/amd64/mem.c has no such macro.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 17
Date: Sun, 01 Aug 2004 18:31:03 -0700
From: Tim Kientzle <kientzle@freebsd.org>
Subject: Re: tar -l versus gtar -l
To: "David G. Lawrence" <dg@dglawrence.com>
Cc: freebsd-current@freebsd.org
Message-ID: <410D9957.5020308@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
David G. Lawrence wrote:
>
> Well...the SUSv2 specification for tar may not have been the best standard
> to adhere to. The change of behavior for the 'l' option on create is going
> to seriously bite a lot of people because it majorly affects what is
> archived.
I'm reluctant to contradict the one serious
attempt to standardize tar simply because gtar
ignored that effort.
I would rather just disable the -l option entirely;
that way, people would get an error message instead
of having the tar program behave unexpectedly.
Would you be happier with this behavior?
$ tar -cl /foo
Error: -l is ambiguous
If you want GNU tar -l, use --one-file-system instead.
If you want POSIX tar -l, use --link-warn instead.
Tim
------------------------------
Message: 18
Date: Mon, 02 Aug 2004 11:44:31 +1000
From: Sam Lawrance <boris@brooknet.com.au>
Subject: processes freezing when writing to gstripe'd device
To: Pawel Jakub Dawidek <pjd@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <1091411071.922.20.camel@dirk.no.domain>
Content-Type: text/plain
I'm running current from around the 24th of July. About to build world
to see if it makes any difference.
I am observing processes performing operations on a gstripe device
freeze in state 'bufwait'. An 'rm' process is stuck right now. The rest
of the system is fine.
The devices are two vnode backed md devices which I created just for
testing. The same thing occurred using two freebsd partitions of size
15G each (not slices).
NAME: test_cd.stripe
geom name: test_cd.stripe
mediasize: 10231808 (9.8M)
sectorsize: 512
mode: r1w1e0
state: UP
status: total=2, online=2
providers: md3 md2
type: automatic
stripesize: 4096
id: 1411913070
What's the best way to look in to this? I can't attach to rm with gdb
(it just ends up waiting for something). I can drop to kdb, but have no
idea where to go from there.
------------------------------
Message: 19
Date: Mon, 2 Aug 2004 05:43:54 +0400
From: Andrey Chernov <ache@nagual.pp.ru>
Subject: Re: tar -l versus gtar -l
To: Tim Kientzle <kientzle@FreeBSD.ORG>
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <20040802014353.GA67938@nagual.pp.ru>
Content-Type: text/plain; charset=us-ascii
On Sun, Aug 01, 2004 at 06:31:03PM -0700, Tim Kientzle wrote:
> Would you be happier with this behavior?
>
> $ tar -cl /foo
> Error: -l is ambiguous
> If you want GNU tar -l, use --one-file-system instead.
> If you want POSIX tar -l, use --link-warn instead.
POSIX have higher importance. We should ignore any GNUisms in favour of
POSIX overriding ones (at least to pass POSIX tests suite).
--
Andrey Chernov | http://ache.pp.ru/
------------------------------
Message: 20
Date: Sun, 01 Aug 2004 22:04:05 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
no interrupt")
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: Nate Lawson <nate@cryptography.com>
Message-ID: <410DBD35.3030107@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Brian Fundakowski Feldman wrote:
> On Sun, Aug 01, 2004 at 05:05:19PM -0700, Nate Lawson wrote:
>
>>Brian Fundakowski Feldman wrote:
>>
>>>On Fri, Jul 30, 2004 at 03:48:52PM -0700, Nate Lawson wrote:
>>>
>>>>I've tracked down the source of the memory corruption in -current that
>>>>results when booting with various CD and DVD drives (especially the ones
>>>>that come with Thinkpads including T23, R32, T41, etc.) The panic is
>>>>obvious when running with INVARIANTS ("memory modified after free") but
>>>>not so obvious in other configurations. For instance, without
>>>>INVARIANTS, part of the rt_info structure is corrupted on my wireless
>>>>card, resulting in a panic during ifconfig on boot. This is likely the
>>>>source of other problems, including phk's ACPI panic (again, only
>>>>triggered when booting with the CD drive in the bay.)
>>>>
>>>>The root problem is that ata_timeout() fires and calls ata_pio_read()
>>>>which overwrites 512 bytes random memory. There are actually two bugs
>>>>here that overwrite memory. The code path is as follows:
>>>
>>>Good job identifying it more exactly. I decided it should just
>>>fundamentally
>>>be using GEOM primitives everywhere to move the solutions to all these
>>>side cases into where they're already handled generically... still think
>>>that's probably the right solution, but I'm glad to see this specific
>>>problem fixed.
>>
>>I'm not sure if this is a troll or not but I'll answer it seriously.
>>GEOM and other upper layers are never the right place to handle error
>>recovery for transactions initiated at the lower layers (like this
>>device scan).
>>
>>In every system I've seen, error recovery is the hardest part of storage
>>code to get right and is seldom well-tested. It's a very difficult
>>problem that involves a lot of careful fault injection/testing.
>>Divergence in hardware fault handling behavior only complicates things.
>
>
> What would make it a troll? If GEOM were used so that all transactions
> were centrallized, and there were one timeout mechanism used to run the
> request queues for ATA, it wouldn't be racing and crashing when a device
> reset occurs (and it would be a net reduction in code).
>
Nate is absolutely correct. Error recovery is something that belongs in
the device drivers, not in the common block layer. Also, your proposal
is entirely ATA centric and ignores the myriad of other block drivers in
the tree, which again all have different recovery requirements. GEOM
doesn't need to know the gory details of command timeouts, retries, etc.
That's why we have an ATA framework and a SCSI framework. In fact if
you look at SCSI, CAM doesn't even track command timeouts because the
actual hardware driver still has better access to dealing with those
kinds of problems than the upper layer.
Error recovery belongs where it is. If the ATA driver has bugs, then
the ATA driver needs to be dealt with.
Scott
------------------------------
Message: 21
Date: Sun, 01 Aug 2004 23:21:20 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: memory corruption/panic solved ("FAILURE - ATAPI_IDENTIFY
no interrupt")
To: S?ren Schmidt<sos@DeepCore.dk>
Cc: current@freebsd.org
Message-ID: <410DDD60.4090903@root.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
S�ren Schmidt wrote:
> Nate Lawson wrote:
>
>> I've tracked down the source of the memory corruption in -current that
>> results when booting with various CD and DVD drives (especially the ones
>> that come with Thinkpads including T23, R32, T41, etc.) The panic is
>> obvious when running with INVARIANTS ("memory modified after free") but
>> not so obvious in other configurations. For instance, without
>> INVARIANTS, part of the rt_info structure is corrupted on my wireless
>> card, resulting in a panic during ifconfig on boot. This is likely the
>> source of other problems, including phk's ACPI panic (again, only
>> triggered when booting with the CD drive in the bay.)
>
> OK, first thanks for digging into this!
The other major bug I'm hunting is the EISA probe hanging. I want 5.3
to be reliable.
>> The root problem is that ata_timeout() fires and calls ata_pio_read()
>> which overwrites 512 bytes random memory. There are actually two bugs
>> here that overwrite memory. The code path is as follows:
>>
>> 1. ata runs an IDENTIFY command on each drive. It reaches this stack:
>>
>> ata_getparam()
>> ata_identify_devices()
>> ata_boot_attach()
>>
>> 2. ata_getparam() allocates a request and runs it:
>> ata_alloc_request()
>> loop on retries (2 max)
>> fill out an immediate read request for 512 bytes (DEV_BSIZE)
>> *** Bug 1: transfersize is 512 bytes but sizeof(struct ata_request) is
>> much less (~80 bytes).
>> ata_queue_request() starts the request and arms a timeout
>
> Its correct to allocate via ata_alloc_request, the data is *not* put
> into the request, but into another memory area (atadev->param) so this
> is not a bug.
You're correct. Sorry for reading this wrong. I earlier made a note to
check the size of atadev->param and mistakenly checked
sizeof(ata_request). The params are indeed the right size (512 bytes)
and the size in ata.h is noted in 16 bit half words. You might want a
CTASSERT that DEV_BSIZE == sizeof(ata_params).
-Nate
------------------------------
Message: 22
Date: Mon, 2 Aug 2004 08:38:51 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: processes freezing when writing to gstripe'd device
To: Sam Lawrance <boris@brooknet.com.au>
Cc: freebsd-current@freebsd.org
Message-ID: <20040802063851.GL39839@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"
On Mon, Aug 02, 2004 at 11:44:31AM +1000, Sam Lawrance wrote:
+> I'm running current from around the 24th of July. About to build world
+> to see if it makes any difference.
+>
+> I am observing processes performing operations on a gstripe device
+> freeze in state 'bufwait'. An 'rm' process is stuck right now. The rest
+> of the system is fine.
+>
+> The devices are two vnode backed md devices which I created just for
+> testing. The same thing occurred using two freebsd partitions of size
+> 15G each (not slices).
+>
+> NAME: test_cd.stripe
+> geom name: test_cd.stripe
+> mediasize: 10231808 (9.8M)
+> sectorsize: 512
+> mode: r1w1e0
+> state: UP
+> status: total=2, online=2
+> providers: md3 md2
+> type: automatic
+> stripesize: 4096
+> id: 1411913070
+>
+> What's the best way to look in to this? I can't attach to rm with gdb
+> (it just ends up waiting for something). I can drop to kdb, but have no
+> idea where to go from there.
You could use 'ps' command from DDB to which processes are alseep.
Then you can run 'tr <PID>' where <PID> is PID of sleeping process.
Look for processes related somehow to this problem.
It'll be also great if you can provide exact procedure which will also
me to reproduce this problem.
PS. If you plan to upgrade your machine, remember than naming has changed
in gstripe from /dev/<name>.stripe to /dev/stripe/<name>.
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040802/9dde73a9/attachment-0001.bin
------------------------------
Message: 23
Date: Mon, 2 Aug 2004 08:53:52 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: processes freezing when writing to gstripe'd device
To: Sam Lawrance <boris@brooknet.com.au>
Cc: freebsd-current@freebsd.org
Message-ID: <20040802065352.GM39839@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"
On Mon, Aug 02, 2004 at 08:38:51AM +0200, Pawel Jakub Dawidek wrote:
+> +> What's the best way to look in to this? I can't attach to rm with gdb
+> +> (it just ends up waiting for something). I can drop to kdb, but have no
+> +> idea where to go from there.
+>
+> You could use 'ps' command from DDB to which processes are alseep.
+> Then you can run 'tr <PID>' where <PID> is PID of sleeping process.
+> Look for processes related somehow to this problem.
+>
+> It'll be also great if you can provide exact procedure which will also
+> me to reproduce this problem.
+>
+> PS. If you plan to upgrade your machine, remember than naming has changed
+> in gstripe from /dev/<name>.stripe to /dev/stripe/<name>.
One more note. I'm quite sure it is not related to gstripe, because its
implementation is very simple: it doesn't use [mt]sleep(9) (so there is no
missing wakeup()), it doesn't use any mutexes, so while debugging you may
want also look at other components.
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040802/a2fa2ee1/attachment-0001.bin
------------------------------
Message: 24
Date: Mon, 2 Aug 2004 00:02:38 -0700
From: "David G. Lawrence" <dg@dglawrence.com>
Subject: Re: tar -l versus gtar -l
To: Tim Kientzle <kientzle@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040802070238.GA66505@nexus.dglawrence.com>
Content-Type: text/plain; charset=us-ascii
> David G. Lawrence wrote:
> >
> > Well...the SUSv2 specification for tar may not have been the best
> > standard
> >to adhere to. The change of behavior for the 'l' option on create is going
> >to seriously bite a lot of people because it majorly affects what is
> >archived.
>
> I'm reluctant to contradict the one serious
> attempt to standardize tar simply because gtar
> ignored that effort.
>
> I would rather just disable the -l option entirely;
> that way, people would get an error message instead
> of having the tar program behave unexpectedly.
>
> Would you be happier with this behavior?
>
> $ tar -cl /foo
> Error: -l is ambiguous
> If you want GNU tar -l, use --one-file-system instead.
> If you want POSIX tar -l, use --link-warn instead.
Yes. That way at least people won't accidently destroy a filesystem (like
I did) when they're trying to use tar to copy stuff.
-DG
David G. Lawrence
President
Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175
The FreeBSD Project - http://www.freebsd.org
Pave the road of life with opportunities.
------------------------------
Message: 25
Date: Mon, 02 Aug 2004 08:12:45 +0100
From: Mark Murray <markm@FreeBSD.ORG>
Subject: Re: includes in sys/amd64/amd64/mem.c
To: conrads@cox.net
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <200408020712.i727CjRc023117@grimreaper.grondar.org>
"Conrad J. Sabatier" writes:
> OK, I also see that in sys/i386/i386/mem.c we have:
>
> MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
>
> But sys/amd64/amd64/mem.c has no such macro.
Thanks. Fixed locally, commit coming.
M
--
Mark Murray
iumop ap!sdn w,I idlaH
------------------------------
Message: 26
Date: Mon, 2 Aug 2004 10:35:23 +0300
From: Dan Cojocar <dan.cojocar@gmail.com>
Subject: Re: Buildkernel+ALTQ error
To: Max Laier <max@love2party.net>
Cc: freebsd-current@freebsd.org
Message-ID: <b37cb09704080200355045ef68@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII
Hello,
Sorry for this delay, but i was offline :(
I made a cvsup today, and now i get another error:
cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
-nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
-D_KERNEL -include opt_global.h -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
/usr/src/sys/i386/i386/genassym.c
cc1: error: invalid parameter `inline-unit-growth'
cc1: error: invalid parameter `large-function-growth'
*** Error code 1
On Sat, 31 Jul 2004 04:06:36 +0200, Max Laier <max@love2party.net> wrote:
> On Thursday 29 July 2004 15:57, you wrote:
> > Hello,
> >
> > I get the following error when building kernel with altq:
>
> Haven't heard back from you and couldn't reproduce either. Is it safe to
> assert is was a temporary problem with your buildenvironment due to the gcc
> 3.4 update? Please give me a ping if it is persistent, though.
>
>
>
> --
> /"\ Best regards, | mlaier@freebsd.org
> \ / Max Laier | ICQ #67774661
> X http://pf4freebsd.love2party.net/ | mlaier@EFnet
> / \ ASCII Ribbon Campaign | Against HTML Mail and News
>
>
>
------------------------------
Message: 27
Date: Mon, 2 Aug 2004 11:45:04 +0400
From: "Yuriy Tsibizov" <Yuriy.Tsibizov@gfk.ru>
Subject: Unable to build new kernel with old gcc (WAS: RE:
Buildkernel+ALTQ error)
To: "Dan Cojocar" <dan.cojocar@gmail.com>
Cc: Alexander Kabaev <kan@FreeBSD.ORG>
Message-ID: <C192C8912E798F4399668791C896519067505C@mx.hhp.local>
Content-Type: text/plain; charset="koi8-r"
You are building new kernel with old (Gcc 3.3.3) gcc that does not support this flags.
You have to go back to rev. 1.54 of sys/conf/kern.pre.mk to build your kernel with gcc 3.3.3.
> -----Original Message-----
> From: Dan Cojocar [mailto:dan.cojocar@gmail.com]
> Sent: Monday, August 02, 2004 11:35 AM
> To: Max Laier
> Cc: freebsd-current@freebsd.org
> Subject: Re: Buildkernel+ALTQ error
>
>
> Hello,
>
> Sorry for this delay, but i was offline :(
>
> I made a cvsup today, and now i get another error:
>
> cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
> -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
> -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
> -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
> -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
> -D_KERNEL -include opt_global.h -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000
> -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
> /usr/src/sys/i386/i386/genassym.c
> cc1: error: invalid parameter `inline-unit-growth'
> cc1: error: invalid parameter `large-function-growth'
> *** Error code 1
>
>
> On Sat, 31 Jul 2004 04:06:36 +0200, Max Laier
> <max@love2party.net> wrote:
> > On Thursday 29 July 2004 15:57, you wrote:
> > > Hello,
> > >
> > > I get the following error when building kernel with altq:
> >
> > Haven't heard back from you and couldn't reproduce either.
> Is it safe to
> > assert is was a temporary problem with your
> buildenvironment due to the gcc
> > 3.4 update? Please give me a ping if it is persistent, though.
> >
> >
> >
> > --
> > /"\ Best regards, | mlaier@freebsd.org
> > \ / Max Laier | ICQ #67774661
> > X http://pf4freebsd.love2party.net/ | mlaier@EFnet
> > / \ ASCII Ribbon Campaign | Against HTML Mail and News
> >
> >
> >
> _______________________________________________
> 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"
>
>
------------------------------
Message: 28
Date: Mon, 2 Aug 2004 11:09:22 +0300
From: Dan Cojocar <dan.cojocar@gmail.com>
Subject: Re: Buildkernel+ALTQ error
To: Max Laier <max@love2party.net>
Cc: freebsd-current@freebsd.org
Message-ID: <b37cb0970408020109250948c4@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII
On Mon, 2 Aug 2004 09:50:51 +0200, Max Laier <max@love2party.net> wrote:
> On Monday 02 August 2004 09:35, you wrote:
> > Hello,
> >
> > Sorry for this delay, but i was offline :(
>
> Once more: I need your *complete* kernel config!
>
> > I made a cvsup today, and now i get another error:
> >
> > cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
> > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> > -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
> > -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
> > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
> > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
> > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
> > -D_KERNEL -include opt_global.h -finline-limit=8000 --param
> > inline-unit-growth=100 --param large-function-growth=1000
> > -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
> > /usr/src/sys/i386/i386/genassym.c
> > cc1: error: invalid parameter `inline-unit-growth'
> > cc1: error: invalid parameter `large-function-growth'
> > *** Error code 1
>
> This seems not linked to ALTQ at all. Looks more like a defect build
> environment. Did you do a complete buildworld before? Try:
> $ rm -rf /usr/obj/*
> $ cd /usr/src && make buildworld && make buildkernel KERNCONF=<yourconf>
> to have a clean starting point. The gcc update created a lot of noise all over
> the build.
I know that this is not related to ALTQ, i'm doing now a
buildworld, again :(, and i will post my results asap.
Thanks,
Dan
Ps. My kernel config:
machine i386
cpu I686_CPU
ident FREE
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options SCHED_ULE # ULE scheduler
options INET # InterNETworking
options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options SCSI_DELAY=15000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.
options PFIL_HOOKS # pfil(9) framework
options KDB # Enable kernel debugger support.
options INVARIANTS # Enable calls of extra sanity checking
options WITNESS # Enable checks to detect
deadlocks and cycles
device isa
device eisa
device pci
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID # Static device numbering
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device vga # VGA video card driver
device splash # Splash screen and screen saver support
device sc
device npx
device pmtimer
device sio # 8250, 16[45]50 based serial ports
device loop # Network loopback
device ether # Ethernet support
device pty # Pseudo-ttys (telnet etc)
device bpf # Berkeley packet filter
options RANDOM_IP_ID
options HZ=1000
options ALTQ
options ALTQ_CBQ # Class Bases Queueing
options ALTQ_RED # Random Early Drop
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler
options ALTQ_CDNR # Traffic conditioner
options ALTQ_PRIQ # Prioirity Queueing
------------------------------
Message: 29
Date: Mon, 2 Aug 2004 09:38:02 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: Re: nvidia binary drivers no longer work
To: freebsd-current@freebsd.org
Cc: current@freebsd.org
Message-ID: <200408020938.02238.dfr@nlsystems.com>
Content-Type: text/plain; charset="iso-8859-1"
On Sunday 01 August 2004 19:45, Stefan Ehmann wrote:
> After today's cvsup the system freezes when I try to start X using
> the nvidia binary driver. The nv driver still works.
>
> ~1 week old kernel doesn't have this problem.
If you can be patient, there will be a new release of the nvidia binary
driver fairly soon (which also supports libpthread and libthr).
------------------------------
Message: 30
Date: Mon, 2 Aug 2004 09:38:02 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: Re: nvidia binary drivers no longer work
To: freebsd-current@freebsd.org
Cc: current@freebsd.org
Message-ID: <200408020938.02238.dfr@nlsystems.com>
Content-Type: text/plain; charset="iso-8859-1"
On Sunday 01 August 2004 19:45, Stefan Ehmann wrote:
> After today's cvsup the system freezes when I try to start X using
> the nvidia binary driver. The nv driver still works.
>
> ~1 week old kernel doesn't have this problem.
If you can be patient, there will be a new release of the nvidia binary
driver fairly soon (which also supports libpthread and libthr).
------------------------------
Message: 31
Date: Mon, 2 Aug 2004 11:51:33 +0300
From: Dan Cojocar <dan.cojocar@gmail.com>
Subject: Re: Buildkernel+ALTQ error
To: Max Laier <max@love2party.net>
Cc: freebsd-current@freebsd.org
Message-ID: <b37cb09704080201511c0aac62@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII
On Mon, 2 Aug 2004 11:09:22 +0300, Dan Cojocar <dan.cojocar@gmail.com> wrote:
> On Mon, 2 Aug 2004 09:50:51 +0200, Max Laier <max@love2party.net> wrote:
> > On Monday 02 August 2004 09:35, you wrote:
> > > Hello,
> > >
> > > Sorry for this delay, but i was offline :(
> >
> > Once more: I need your *complete* kernel config!
> >
> > > I made a cvsup today, and now i get another error:
> > >
> > > cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
> > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> > > -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
> > > -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
> > > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
> > > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
> > > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
> > > -D_KERNEL -include opt_global.h -finline-limit=8000 --param
> > > inline-unit-growth=100 --param large-function-growth=1000
> > > -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
> > > /usr/src/sys/i386/i386/genassym.c
> > > cc1: error: invalid parameter `inline-unit-growth'
> > > cc1: error: invalid parameter `large-function-growth'
> > > *** Error code 1
> >
> > This seems not linked to ALTQ at all. Looks more like a defect build
> > environment. Did you do a complete buildworld before? Try:
> > $ rm -rf /usr/obj/*
> > $ cd /usr/src && make buildworld && make buildkernel KERNCONF=<yourconf>
> > to have a clean starting point. The gcc update created a lot of noise all over
> > the build.
>
>
> I know that this is not related to ALTQ, i'm doing now a
> buildworld, again :(, and i will post my results asap.
I did a cvsup, buildworld went ok, and when i buildkernel, i get
the same error, like that on 29.07:
cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
-nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
-D_KERNEL -include opt_global.h -fno-common -finline-limit=8000
--param inline-unit-growth=100 --param large-function-growth=1000
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
-Werror /usr/src/sys/contrib/altq/altq/altq_cbq.c
/usr/src/sys/contrib/altq/altq/altq_cbq.c: In function `cbq_request':
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: implicit
declaration of function `_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: nested extern
declaration of `_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: error: `MA_OWNED'
undeclared (first use in this function)
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: error: (Each undeclared
identifier is reported only once
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: error: for each
function it appears in.)
/usr/src/sys/contrib/altq/altq/altq_cbq.c: In function `cbq_enqueue':
/usr/src/sys/contrib/altq/altq/altq_cbq.c:506: warning: nested extern
declaration of `_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: redundant
redeclaration of '_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: previous
implicit declaration of '_mtx_assert' was here
/usr/src/sys/contrib/altq/altq/altq_cbq.c:506: error: `MA_OWNED'
undeclared (first use in this function)
/usr/src/sys/contrib/altq/altq/altq_cbq.c: In function `cbq_dequeue':
/usr/src/sys/contrib/altq/altq/altq_cbq.c:561: warning: nested extern
declaration of `_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: redundant
redeclaration of '_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: previous
implicit declaration of '_mtx_assert' was here
/usr/src/sys/contrib/altq/altq/altq_cbq.c:561: error: `MA_OWNED'
undeclared (first use in this function)
/usr/src/sys/contrib/altq/altq/altq_cbq.c: In function `cbqrestart':
/usr/src/sys/contrib/altq/altq/altq_cbq.c:589: warning: nested extern
declaration of `_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: redundant
redeclaration of '_mtx_assert'
/usr/src/sys/contrib/altq/altq/altq_cbq.c:202: warning: previous
implicit declaration of '_mtx_assert' was here
/usr/src/sys/contrib/altq/altq/altq_cbq.c:589: error: `MA_OWNED'
undeclared (first use in this function)
*** Error code 1
------------------------------
Message: 32
Date: Mon, 2 Aug 2004 13:54:03 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: PPPoE broekn in the FreeBSD-current (2004.8.1)
To: "Tseng, Ling-hua" <uranus.ed@msa.hinet.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040802095403.GA46385@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r
On Mon, Aug 02, 2004 at 02:34:09PM +0800, Tseng, Ling-hua wrote:
T> > I have fixed problem in rev 1.53
T>
T> Is it still something wrong?
T> The ppp.log (until I killed pid 737):
You also need ng_pppoe.c rev 1.67.
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
------------------------------
Message: 33
Date: Mon, 2 Aug 2004 12:06:09 +0000 (GMT)
From: Peter Ulrich Kruppa <root@pukruppa.net>
Subject: Re: PPP(was: oE) problems with latest -CURRENT
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: Maxim Maximov <mcsi@mcsi.pp.ru>
Message-ID: <20040802120348.B127@pukruppa.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Thanks, for repairing things. Your patch works fine for me.
Will it be committed soon, or do I have to keep it?
Peter Ulrich Kruppa ("Original poster")
On Sun, 1 Aug 2004, Bjoern A. Zeeb wrote:
>
> Index: ng_pppoe.c
> ===================================================================
> RCS file: /local/mirror/FreeBSD/r/ncvs/src/sys/netgraph/ng_pppoe.c,v
> retrieving revision 1.66
> diff -u -p -r1.66 ng_pppoe.c
> --- ng_pppoe.c 27 Jul 2004 19:47:13 -0000 1.66
> +++ ng_pppoe.c 1 Aug 2004 14:17:49 -0000
> @@ -246,9 +246,9 @@ enum {
> };
>
> struct ng_pppoe_mode_t {
> - u_int8_t id;
> + u_int8_t id;
> const struct ether_header *eh_prototype;
> - const char *name;
> + const char *name;
> };
>
> static const struct ether_header eh_standard =
> @@ -283,10 +283,9 @@ struct PPPOE {
> typedef struct PPPOE *priv_p;
>
> /* Deprecated sysctl, leaved here to keep compatibility for some time */
> -#define PPPOE_KEEPSTANDARD -1
> -#define PPPOE_STANDARD 0
> -#define PPPOE_NONSTANDARD 1
> -static int pppoe_mode = PPPOE_KEEPSTANDARD;
> +#define PPPOE_SYSCTL_KEEPSTANDARD -1
> +#define PPPOE_SYSCTL_STANDARD 0
> +#define PPPOE_SYSCTL_NONSTANDARD 1
> static const struct ng_pppoe_mode_t *sysctl_mode = ng_pppoe_modes;
>
> static int
> @@ -295,23 +294,22 @@ ngpppoe_set_ethertype(SYSCTL_HANDLER_ARG
> int error;
> int val;
>
> - val = pppoe_mode;
> + val = PPPOE_SYSCTL_KEEPSTANDARD;
> error = sysctl_handle_int(oidp, &val, sizeof(int), req);
> if (error != 0 || req->newptr == NULL)
> return (error);
> switch (val) {
> - case PPPOE_NONSTANDARD:
> + case PPPOE_SYSCTL_NONSTANDARD:
> sysctl_mode = ng_pppoe_modes + 1;
> break;
> - case PPPOE_STANDARD:
> - case PPPOE_KEEPSTANDARD:
> + case PPPOE_SYSCTL_STANDARD:
> + case PPPOE_SYSCTL_KEEPSTANDARD:
> sysctl_mode = ng_pppoe_modes;
> break;
> default:
> return (EINVAL);
> }
>
> - pppoe_mode = val;
> printf("net.graph.nonstandard_pppoe is deprecated. See ng_pppoe(4), ppp(8).\n");
> return (0);
> }
>
> --
> Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
> _______________________________________________
> 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"
>
------------------------------
Message: 34
Date: Mon, 2 Aug 2004 10:12:34 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: PPP(was: oE) problems with latest -CURRENT
To: Peter Ulrich Kruppa <root@pukruppa.net>
Cc: Maxim Maximov <mcsi@mcsi.pp.ru>
Message-ID:
<Pine.BSF.4.53.0408021010590.69034@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 2 Aug 2004, Peter Ulrich Kruppa wrote:
> Thanks, for repairing things. Your patch works fine for me.
>
> Will it be committed soon, or do I have to keep it?
Gleb Smirnoff already comitted it:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ng_pppoe.c.diff?r1=1.66&r2=1.67
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
Message: 35
Date: Mon, 2 Aug 2004 12:20:14 +0200
From: Max Laier <max@love2party.net>
Subject: Re: Buildkernel+ALTQ error
To: freebsd-current@freebsd.org
Cc: Dan Cojocar <dan.cojocar@gmail.com>
Message-ID: <200408021220.20785.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"
On Monday 02 August 2004 10:51, Dan Cojocar wrote:
> On Mon, 2 Aug 2004 11:09:22 +0300, Dan Cojocar <dan.cojocar@gmail.com>
wrote:
> > On Mon, 2 Aug 2004 09:50:51 +0200, Max Laier <max@love2party.net> wrote:
> > > On Monday 02 August 2004 09:35, you wrote:
> > > > Hello,
> > > >
> > > > Sorry for this delay, but i was offline :(
> > >
> > > Once more: I need your *complete* kernel config!
> > >
> > > > I made a cvsup today, and now i get another error:
> > > >
> > > > cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls
> > > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> > > > -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g
> > > > -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
> > > > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
> > > > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
> > > > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
> > > > -D_KERNEL -include opt_global.h -finline-limit=8000 --param
> > > > inline-unit-growth=100 --param large-function-growth=1000
> > > > -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
> > > > /usr/src/sys/i386/i386/genassym.c
> > > > cc1: error: invalid parameter `inline-unit-growth'
> > > > cc1: error: invalid parameter `large-function-growth'
> > > > *** Error code 1
> > >
> > > This seems not linked to ALTQ at all. Looks more like a defect build
> > > environment. Did you do a complete buildworld before? Try:
> > > $ rm -rf /usr/obj/*
> > > $ cd /usr/src && make buildworld && make buildkernel
> > > KERNCONF=<yourconf> to have a clean starting point. The gcc update
> > > created a lot of noise all over the build.
> >
> > I know that this is not related to ALTQ, i'm doing now a
> > buildworld, again :(, and i will post my results asap.
>
> I did a cvsup, buildworld went ok, and when i buildkernel, i get
> the same error, like that on 29.07:
Uhm, well ... attached diff should fix this, but I still think that your build
environment is somehow defective as the required headers would be pulled in
via the following - certainly discussable - include chain:
net/if.h -> _KERNEL => net/if_var.h -> altq/if_altq.h -> sys/lock.h & mutex.h
I have to clean that up and add lock headers where needed. Can you meanwhile
check out if that helps and/or if a #make installincludes helps? Thanks.
--
/"\ Best regards, | mlaier@freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: altq_cbq.c.diff
Type: text/x-diff
Size: 594 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040802/a9fda7c4/altq_cbq.c.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040802/a9fda7c4/attachment.bin
------------------------------
_______________________________________________
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 71, Issue 1
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[31m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m