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: nfsd problems with FreeBSD 5.2.1 (Mike Thomas)
2. Re: nfsd problems with FreeBSD 5.2.1 (Mike Thomas)
3. Re: nfsd problems with FreeBSD 5.2.1 (Eric Anderson)
4. Re: One more ..... (Willem Jan Withagen)
5. gdb crashes while trying to debug a core.....
(Willem Jan Withagen)
6. Re: nfsd problems with FreeBSD 5.2.1 (Chuck Swiger)
7. Re: Call for PRs: nullfs (Julian Elischer)
8. Re: One more ..... (Marcel Moolenaar)
9. Re: gdb crashes while trying to debug a core.....
(Marcel Moolenaar)
10. Re: gdb crashes while trying to debug a core..... (Gleb Smirnoff)
11. Re: nfsd problems with FreeBSD 5.2.1 (Eric Anderson)
12. Re: gdb crashes while trying to debug a core.....
(Willem Jan Withagen)
13. Re: gdb crashes while trying to debug a core.....
(Willem Jan Withagen)
14. buildworld failure (Grover Lines)
15. edquota -t broken? (Sven Willenberger)
16. ATA DVD playback hanging in physrd (Nate Lawson)
17. Re: ATA DVD playback hanging in physrd (Kevin Oberman)
18. Re: gdb crashes while trying to debug a core.....
(Marcel Moolenaar)
19. Re: gdb crashes while trying to debug a core.....
(Marcel Moolenaar)
20. Re: acpi_video without suspending (Brad Davis)
21. Re: acpi_video without suspending (Eric Anderson)
22. Re: acpi_video without suspending (Brad Davis)
23. Re: pccbb crashes when detaching (unsafe interrupt handler)
(M. Warner Losh)
24. Re: pccbb crashes when detaching (unsafe interrupt handler)
(M. Warner Losh)
25. Re: pccbb crashes when detaching (unsafe interrupt handler)
(M. Warner Losh)
26. Re: pccbb crashes when detaching (unsafe interrupt handler)
(Brian Fundakowski Feldman)
27. Re: ATA DVD playback hanging in physrd (Mayo)
28. [current tinderbox] failure on alpha/alpha (FreeBSD Tinderbox)
29. [current tinderbox] failure on amd64/amd64 (FreeBSD Tinderbox)
30. [current tinderbox] failure on i386/i386 (FreeBSD Tinderbox)
31. Re: Kernel Build FAILURE -sound (Seigo Tanimura)
32. Re: install crashes on ThinkPad T41 (Vaidas Damosevicius)
33. kernel build error in cam_periph_mapmem (Harald Schmalzbauer)
----------------------------------------------------------------------
Message: 1
Date: Fri, 16 Jul 2004 14:02:43 -0500
From: Mike Thomas <mwt@cems.umn.edu>
Subject: Re: nfsd problems with FreeBSD 5.2.1
To: Eric Anderson <anderson@centtech.com>, current@freebsd.org
Message-ID: <40F82653.50903@cems.umn.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Eric,
It's not a dell, its a 1U box from Sun with x86 hardware, I believe the
model on it is V60x, but no, I haven't tired turning off hyperthreading,
that's one thing I am about to do. I have backed out from 5.2-current to
RELENG_5_2 to go back to 5.2.1-release and I'm going to see if that
helps at all.
--Mike
> Oh - and also - have you tried turning off hyperthreading? is this a
> Dell by any chance?
>
>
> Mike Thomas wrote:
>
>> Hello,
>>
>> Alright folks, I'm in some serious need for help/advice.
>>
>> I'm running FreeBSD 5.2.1 (-current) with a kernel/buildworld ran
>> yesterday (7/16/2004) on a Dual Xeon 3.06ghz with hyperthreading
>> enabled. The machine also has 2gb of ram and a scsi raided array with
>> an intel storage raid array controller. (iir0)
>>
>> The machine functions as a nis client for accounts with home
>> directories nfs mounted from a Solaris 9 machine. It's primary
>> function is as a mail server, and what it is nfs sharing out is the
>> spool folder. (/var/mail, in this case).
>>
>> I know all about the dangers of sharing out a mail spool, I don't
>> need, or want, a lecture about proper operating procedures in this
>> case. It's for legacy purposes and will be going away in due time.
>> Anyway, its with this mount that I am experiencing these nfs problems.
>>
>> Now, to the nitty gritty. I am seeing periodic spikes from one of the
>> nfsd children from about 10% of the cpu (via top) to 100% of the cpu.
>> During times of this spike, even if the spike only reaches 40-50% of
>> the cpu, the machine becomes dibilitatingly slow and stops responding
>> to all other commands. Even issuing an 'ls' is difficult, let alone
>> doing anything productive. While using top, the nfsd state will
>> alternate between biowr, biord, *Giant (yeah, it even is requesting
>> Giant locks). I have recompiled every single ounce of software that
>> operates on /var/mail to only use fcntl locking
>> (procmail/postfix/uw-imap (there's a patch by redhat to do that)) so
>> that it is nfs friendly.
>>
>> Here's what I've tried to do to see if it made any difference. First,
>> all mounts of /var/mail from other servers were using UDP, they have
>> all been switched to tcp with a rsize and wsize of 1024. I've tried
>> 4096, and 8192, both which make no difference. All clients are
>> specifically forced to use NFSv3. I have also tried varying between a
>> soft and hard mount, also, with no difference in these spikes.
>>
>> I also tried switching back to the 4BSD scheduler, to see if that
>> might have beeen the issue, but it would appear that didn't make any
>> difference as well, though the max load average I was seeing stayed a
>> bit lower with ULE as upposed to the 4BSD scheduler.
>>
>> So, I'm really at the end of my rope right now, I have no idea what
>> to do or what could be causing this. Any advice would be great, thanks.
>>
>> --Mike
>> _______________________________________________
>> 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: 2
Date: Fri, 16 Jul 2004 14:15:13 -0500
From: Mike Thomas <mwt@cems.umn.edu>
Subject: Re: nfsd problems with FreeBSD 5.2.1
To: Eric Anderson <anderson@centtech.com>, current@freebsd.org
Message-ID: <40F82941.8010208@cems.umn.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Eric Anderson wrote:
I'll go through one by one on this.
> Hi Mike! I've had some experience with FreeBSD/NFS/NIS and might be
> able to help.. (maybe!)
>
> Have you done a tcpdump to see what traffic is like during that time?
Yeah, the packets come in very quickly from several hosts, all via tcp.
>
> Also - is your NIS server that this mail server is connected to being
> used by a lot of clients? I've seen very strange hangs, delays, and
> loads when the NIS server doesn't respond quickly enough..
>
The NIS server doesn't have a lot of clients, less than 10 off the top
of my head, nothing that would cause it to be very slow with responses.
> Just for your info, what I use on my clients (I have about 800 NFS
> clients), is UDP, NFSv3, 4196 rd/wr size, hard mount, interruptible..
>
> Does mountd have a high run time? Maybe it's a mount storm (if you use
> automounter on your clients)
>
Mountd has consumed 0:01 minutes of cpu time with the machine being up
two days, since I know of every machine thats mounting the nfs share, I
have visited each one individually to make sure the mount was correctly
accessable and such (since I was playing with mount options)
> What about network interface errors?
To be honest, i'm not sure how to check for these, in linux/solaris,
ifconfig itself prints out the errors, this isn't the case (at least
with ifconfig -a) on FreeBSD, as far as I can tell.
>
> If you watch an iostat during the busy time, is your disk being slammed?
iostat seems to never go over 30k/sec average,
>
> If you are using uw-imap, how big are the mailboxes?
>
See, this is the thing that I think may be causing the problems. We are
using uw-imap, and the mailboxes vary anywhere from 100k to 600mb (some
people are irresponsible mail users!) The thing is though, even in times
of high load like someone opening or accessing a mailbox of this size,
it shouldn't be causing the box to go down to its knees, should it?
I've recompiled the machine with 5.2.1-release-p9 and disabled
hyperthreading, we'll see how that goes.
--Mike
------------------------------
Message: 3
Date: Fri, 16 Jul 2004 14:46:40 -0500
From: Eric Anderson <anderson@centtech.com>
Subject: Re: nfsd problems with FreeBSD 5.2.1
To: Mike Thomas <mwt@cems.umn.edu>
Cc: current@freebsd.org
Message-ID: <40F830A0.5000507@centtech.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Mike Thomas wrote:
[..snip stuff that is now null..]
>
>> What about network interface errors?
>
>
> To be honest, i'm not sure how to check for these, in linux/solaris,
> ifconfig itself prints out the errors, this isn't the case (at least
> with ifconfig -a) on FreeBSD, as far as I can tell.
netstat -i
>> If you watch an iostat during the busy time, is your disk being slammed?
>
>
> iostat seems to never go over 30k/sec average,
Ok, that's obviously pretty low.. How about transactions per second (tps)?
>> If you are using uw-imap, how big are the mailboxes?
>>
> See, this is the thing that I think may be causing the problems. We
> are using uw-imap, and the mailboxes vary anywhere from 100k to 600mb
> (some people are irresponsible mail users!) The thing is though, even
> in times of high load like someone opening or accessing a mailbox of
> this size, it shouldn't be causing the box to go down to its knees,
> should it?
I don't think it should cause this, but uw-imap's single mailbox storage
isn't exactly efficient for large mailboxes.. although I use it
internally and we have some large mailboxes too, on a much less 'beefy'
server with no problems (it is running FreeBSD 4.X)..
> I've recompiled the machine with 5.2.1-release-p9 and disabled
> hyperthreading, we'll see how that goes.
Keep us posted - if nothing but for the archives..
Out of curiousity - did this machine run smoothly at some point before?
If so, is the only that changed an upgrade to a more recent -current?
Just for a reference point - I'm using -current as of May 25th on some
machines and it is (so far) very stable and solid.. YMMV
Eric
--
------------------------------------------------------------------
Eric Anderson Sr. Systems Administrator Centaur Technology
Talk sense to a fool and he calls you foolish.
------------------------------------------------------------------
------------------------------
Message: 4
Date: Fri, 16 Jul 2004 21:39:16 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: One more .....
To: "Marcel Moolenaar" <marcel@xcllnt.net>
Cc: freebsd-current@freebsd.org
Message-ID: <0c0801c46b6c$94f54b00$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Marcel Moolenaar" <marcel@xcllnt.net>
> On Fri, Jul 16, 2004 at 07:30:31PM +0200, Willem Jan Withagen wrote:
> >
> > panic: process 82471(sh):2 holds Giant but isn't blocked on a lock
> >
> > cpuid = 1;
> > KDB: enter: panic
> >
> > Is there any purpose in reporting these crashes this way???
>
> You might want to make sure your debugger backend is DDB and not
> GDB.
This is what I have:
# Debugging for use in -current
options KDB # Enable kernel debugger support.
options KDB_TRACE
options DDB # Support DDB.
options GDB # Support remote GDB.
options INVARIANTS # Enable calls of extra sanity checkin
g
options INVARIANT_SUPPORT # Extra sanity checks of internal stru
ct
ures, required by INVARIANTS
options WITNESS # Enable checks to detect deadlocks an
d
cycles
options WITNESS_SKIPSPIN # Don't run witness on spinlocks for s
pe
ed
Next to having an SMP/Opteron system.
--WjW
------------------------------
Message: 5
Date: Fri, 16 Jul 2004 21:57:36 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: gdb crashes while trying to debug a core.....
To: <current@FreeBSD.ORG>
Message-ID: <0c4c01c46b6f$2475d360$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
> gdb /tmp/bin/rex rex.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...Segmentation fault (core
dumped)
Fortunatly gdb6 from ports does still work.....
> gdb6 /usr/obj/home2/src/gnu/usr.bin/gdb/gdb/gdb gdb.core
GNU gdb 20040511 [GDB v6.x for FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd5.2"...
Core was generated by `gdb'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.2...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libreadline.so.4...done.
Loaded symbols for /lib/libreadline.so.4
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x000000000044f9c3 in gdbarch_info_fill (gdbarch=0x832010,
info=0x7fffffffe240) at /home2/src/contrib/gdb/gdb/arch-utils.c:728
728 info->osabi = gdbarch_lookup_osabi (info->abfd);
(gdb) bt
#0 0x000000000044f9c3 in gdbarch_info_fill (gdbarch=0x832010,
info=0x7fffffffe240) at /home2/src/contrib/gdb/gdb/arch-utils.c:728
#1 0x00000000004491a4 in find_arch_by_info (old_gdbarch=0x832010, info=
{bfd_arch_info = 0x65edc0, byte_order = 2, abfd = 0x838600, tdep_info =
0x0, osabi = GDB_OSABI_UNINITIALIZED})
at /home2/src/contrib/gdb/gdb/gdbarch.c:5720
#2 0x000000000044955a in deprecated_current_gdbarch_select_hack (
new_gdbarch=0x832010) at /home2/src/contrib/gdb/gdb/gdbarch.c:5855
#3 0x000000000044f5ba in initialize_current_architecture ()
at /home2/src/contrib/gdb/gdb/arch-utils.c:591
#4 0x000000000044f5d5 in initialize_current_architecture ()
at /home2/src/contrib/gdb/gdb/arch-utils.c:597
#5 0x000000000044da88 in exec_file_command (
args=0x9 <Address 0x9 out of bounds>, from_tty=32767)
at /home2/src/contrib/gdb/gdb/exec.c:302
#6 0x00000000004980b8 in quit_cover (s=0x7fffffffe560)
at /home2/src/contrib/gdb/gdb/top.c:590
#7 0x0000000000498011 in catch_errors (func=0x839880,
func_args=0x7fffffffe510, errstring=0x7fffffffe510 "\214\200I", mask=0)
at /home2/src/contrib/gdb/gdb/top.c:540
#8 0x0000000000497d92 in catcher (func=0x497fe8 <catch_errors+76>,
func_uiout=0x839880, func_args=0x7fffffffe510, func_val=0x7fffffffe530,
func_caught=0x7fffffffe52c,
errstring=0x6057a7 " not a command, just a help topic.", gdberrmsg=0x0,
mask=6) at /home2/src/contrib/gdb/gdb/top.c:459
#9 0x000000000049806e in catch_command_errors (
command=0x49808c <catch_command_errors+56>, arg=0x7fffffffe560 "��D",
from_tty=0, mask=6313895) at /home2/src/contrib/gdb/gdb/top.c:570
#10 0x000000000049810e in do_restore_instream_cleanup (stream=0x44d8f0)
at /home2/src/contrib/gdb/gdb/top.c:636
#11 0x00007fffffffec4c in ?? ()
#12 0x0000000000000001 in ?? ()
#13 0x0000000000000000 in ?? ()
#14 0x00007fffffffe5a0 in ?? ()
#15 0x0000000100000006 in ?? ()
#16 0x00007fffffffec4c in ?? ()
#17 0x000000000044d8f0 in exec_file_attach (
filename=0x8b4cc78948fffe39 <Address 0x8b4cc78948fffe39 out of bounds>,
from_tty=-1578631073) at /home2/src/contrib/gdb/gdb/exec.c:197
Previous frame inner to this frame (corrupt stack?)
I'll leave the dumped gdb.core for the time being, in case Marcel wants to hav
e
a look at it.
--WjW
------------------------------
Message: 6
Date: Fri, 16 Jul 2004 16:05:34 -0400
From: Chuck Swiger <cswiger@mac.com>
Subject: Re: nfsd problems with FreeBSD 5.2.1
To: Mike Thomas <mwt@cems.umn.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <40F8350E.70106@mac.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Mike Thomas wrote:
[ ... ]
> The machine functions as a nis client for accounts with home directories
> nfs mounted from a Solaris 9 machine. It's primary function is as a mail
> server, and what it is nfs sharing out is the spool folder. (/var/mail,
> in this case).
Setting up a FreeBSD system to act as an NFS server to Solaris clients sounds
backwards to me. If there is any one specific task that Solaris stands out
for, it's probably filesharing. I'm not a fan of Solaris for Intel hardware,
but this might be one of the few cases where it would be the better choice.
[ ... ]
> I have recompiled every single ounce of software that operates on
> /var/mail to only use fcntl locking (procmail/postfix/uw-imap (there's a
> patch by redhat to do that)) so that it is nfs friendly.
Ooh! Are you sure about that? I don't trust rpc.lockd very far on any
platform, and the FreeBSD manpage for fcntl makes interesting reading:
This interface follows the completely stupid semantics of System V and
IEEE Std 1003.1-1988 (``POSIX.1'') that require that all locks associate
d
with a file for a given process are removed when any file descriptor for
that file is closed by that process. This semantic means that applica-
tions must be aware of any files that a subroutine library may access.
For example if an application for updating the password file locks the
password file database while making the update, and then calls
getpwnam(3) to retrieve a record, the lock will be lost because
getpwnam(3) opens, reads, and closes the password database. The databas
e
close will release all locks that the process has associated with the
database, even if the library routine never requested a lock on the data
-
base. Another minor semantic problem with this interface is that locks
are not inherited by a child process created using the fork(2) function.
The flock(2) interface has much more rational last close semantics and
allows locks to be inherited by child processes. Flock(2) is recommende
d
for applications that want to ensure the integrity of their locks when
using library routines or wish to pass locks to their children.
Programs which depend upon filesystem locks tend to say "don't use me over
NFS" resulting from hard-learned experience. Explicit file-based locks
("create foo.lock containing the PID of the locking process") do much better
over NFS.
I also saw a comment that you are using mbox-style mailboxes which may be
larger than half a gigabyte in size. Expect this to hurt until you do
something else. Using maildir rather than mbox-style mailboxes would probably
improve the situation dramaticly.
--
-Chuck
------------------------------
Message: 7
Date: Fri, 16 Jul 2004 13:08:48 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: Call for PRs: nullfs
To: Mark Linimon <linimon@lonesome.com>
Cc: freebsd-current@freebsd.org
Message-ID: <40F835D0.8070609@elischer.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Mark Linimon wrote:
>Although there has been much discussion of the bugginess of nullfs
>on the mailing lists in the past, there are actually only a few PRs
>about it. Perhaps it's time to figure out what errors still exist
>as we contemplate 5-STABLE.
>
>I have taken the liberty of going through the PR database to ensure
>that any PR involving the operation of nullfs or mount_null (other
>than simply referring to them in documentation, etc.) have the 'nullfs'
>string in the Synopsis. From my count, these are the following:
>
> kern/28206 (5.0-CURRENT)
> kern/28566 (4.3)
> kern/51583 (confirmed still a problem in -STABLE, -CURRENT)
> kern/59945 (4.9)
> bin/59569 (5.1)
> kern/63662 (fixed in -CURRENT, not yet backported)
>
>If anyone has others with either 4.10, -STABLE, or -CURRENT, I would
>like to ask that they submit them (with the 'nullfs' keyword in the
>Synopsis) so that we can figure out where we are.
>
>Thanks.
>
>mcl
>
>_______________________________________________
>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"
>
>
I'm using nullfs for jails on -4.8(ish) without problems so far..
I'm only using a subset of functionality..
e.g.. files looked at in the jail are never looked at by
another jail or by the base system.
------------------------------
Message: 8
Date: Fri, 16 Jul 2004 13:10:58 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: One more .....
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: freebsd-current@freebsd.org
Message-ID: <20040716201058.GD7534@ns1.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Fri, Jul 16, 2004 at 09:39:16PM +0200, Willem Jan Withagen wrote:
> From: "Marcel Moolenaar" <marcel@xcllnt.net>
> > On Fri, Jul 16, 2004 at 07:30:31PM +0200, Willem Jan Withagen wrote:
> > >
> > > panic: process 82471(sh):2 holds Giant but isn't blocked on a lock
> > >
> > > cpuid = 1;
> > > KDB: enter: panic
> > >
> > > Is there any purpose in reporting these crashes this way???
> >
> > You might want to make sure your debugger backend is DDB and not
> > GDB.
>
> This is what I have:
> # Debugging for use in -current
> options KDB # Enable kernel debugger support.
> options KDB_TRACE
> options DDB # Support DDB.
> options GDB # Support remote GDB.
> options INVARIANTS # Enable calls of extra sanity check
ing
> options INVARIANT_SUPPORT # Extra sanity checks of internal st
ruct
> ures, required by INVARIANTS
> options WITNESS # Enable checks to detect deadlocks
and
> cycles
> options WITNESS_SKIPSPIN # Don't run witness on spinlocks for
spe
> ed
>
> Next to having an SMP/Opteron system.
That's all good, and normally this gives you DDB as the default
debugger backend. Typically if you only see "KDB: enter: panic",
then KDB is using the GDB backend.
Hmmm... It may be a good idea to tell people that. Somthing like:
KDB: entering ddb: panic
or KDB: entering gdb: bootflags requested debugger
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 9
Date: Fri, 16 Jul 2004 13:22:40 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: gdb crashes while trying to debug a core.....
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID: <20040716202240.GE7534@ns1.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Fri, Jul 16, 2004 at 09:57:36PM +0200, Willem Jan Withagen wrote:
>
> I'll leave the dumped gdb.core for the time being, in case Marcel wants to h
ave
> a look at it.
Yes, please. For me to reproduce this, I need rex.core (or any core
file that triggers the bug), as well as gdb.core, the gdb binary
itself and a timestamp of the source from which gdb(1) was built.
As a bonus, it helps to know CFLAGS if non-standard.
If you could make that available to me for download, then I'll put
it under http://people.freebsd.org/~marcel.
A PR would be the icing on the cake.
Thanks.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 10
Date: Sat, 17 Jul 2004 00:46:29 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: gdb crashes while trying to debug a core.....
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: current@freebsd.org
Message-ID: <20040716204629.GB30770@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r
Marcel,
I have one more question on new gdb. I can't open kernel crashdump with
it. It says that '-k' option is unknown. If I try without options
it says that type of vmcore.0 file is unknown.
I have to use gdb5 for kernel post mortem analysis. :(
May be I'm just doing something wrong, but manpage is not updated,
it still remembers the '-k' flag.
On Fri, Jul 16, 2004 at 01:22:40PM -0700, Marcel Moolenaar wrote:
M> Yes, please. For me to reproduce this, I need rex.core (or any core
M> file that triggers the bug), as well as gdb.core, the gdb binary
M> itself and a timestamp of the source from which gdb(1) was built.
M> As a bonus, it helps to know CFLAGS if non-standard.
M>
M> If you could make that available to me for download, then I'll put
M> it under http://people.freebsd.org/~marcel.
--
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
------------------------------
Message: 11
Date: Fri, 16 Jul 2004 16:11:27 -0500
From: Eric Anderson <anderson@centtech.com>
Subject: Re: nfsd problems with FreeBSD 5.2.1
To: Chuck Swiger <cswiger@mac.com>
Cc: freebsd-current@freebsd.org
Message-ID: <40F8447F.7070503@centtech.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Chuck Swiger wrote:
> Mike Thomas wrote:
> [ ... ]
>
>> The machine functions as a nis client for accounts with home
>> directories nfs mounted from a Solaris 9 machine. It's primary
>> function is as a mail server, and what it is nfs sharing out is the
>> spool folder. (/var/mail, in this case).
>
>
> Setting up a FreeBSD system to act as an NFS server to Solaris clients
> sounds backwards to me. If there is any one specific task that
> Solaris stands out for, it's probably filesharing. I'm not a fan of
> Solaris for Intel hardware, but this might be one of the few cases
> where it would be the better choice.
Maybe on newer solaris boxes it's different, but I've killed many a
solaris nfs server by slamming them hard with clients (I'm talking 800
high end machines as clients by the way).. I actually prefer FreeBSD NFS
servers over solaris. Granted, I have to do some major tweaking to make
it run how I want, but the BSD boxes have always been faster for me than
the solaris boxes.. This could get religious, so I'll just stop here.. :)
Eric
--
------------------------------------------------------------------
Eric Anderson Sr. Systems Administrator Centaur Technology
Talk sense to a fool and he calls you foolish.
------------------------------------------------------------------
------------------------------
Message: 12
Date: Fri, 16 Jul 2004 23:23:55 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: gdb crashes while trying to debug a core.....
To: "Marcel Moolenaar" <marcel@xcllnt.net>
Cc: current@freebsd.org
Message-ID: <0c5401c46b7b$33b13f20$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Marcel Moolenaar" <marcel@xcllnt.net>
> On Fri, Jul 16, 2004 at 09:57:36PM +0200, Willem Jan Withagen wrote:
> >
> > I'll leave the dumped gdb.core for the time being, in case Marcel wants to
have
> > a look at it.
>
> Yes, please. For me to reproduce this, I need rex.core (or any core
> file that triggers the bug), as well as gdb.core, the gdb binary
> itself and a timestamp of the source from which gdb(1) was built.
> As a bonus, it helps to know CFLAGS if non-standard.
>
> If you could make that available to me for download, then I'll put
> it under http://people.freebsd.org/~marcel.
Look in http://withagen.dyndns.org/FreeBSD/cores
CFLAGS = -g -pipe
-r-xr-xr-x 1 root wheel 2905992 Jul 2 12:08 /usr/bin/gdb
Usually supped shortly before buildworld/installworld
Note that this is all on -current/AMD64:
FreeBSD opteron.digiware.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #70: Fri Jul 16 07
:5
6:03 CEST 2004 root@opteron.digiware.nl:/usr/obj/home2/src/sys/OPTERON.amd
64
amd64
--WjW
------------------------------
Message: 13
Date: Fri, 16 Jul 2004 23:26:44 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: gdb crashes while trying to debug a core.....
To: "Gleb Smirnoff" <glebius@freebsd.org>, "Marcel Moolenaar"
<marcel@xcllnt.net>
Cc: current@freebsd.org
Message-ID: <0c7b01c46b7b$97f7b7c0$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="koi8-r"
> I have one more question on new gdb. I can't open kernel crashdump with
> it. It says that '-k' option is unknown. If I try without options
> it says that type of vmcore.0 file is unknown.
>
> I have to use gdb5 for kernel post mortem analysis. :(
>
> May be I'm just doing something wrong, but manpage is not updated,
> it still remembers the '-k' flag.
That's one I can answer:
install gdb6 from the ports.
It gets named gdb6, and knows how to debug kernels....
--WjW
------------------------------
Message: 14
Date: Fri, 16 Jul 2004 15:12:25 -0700
From: "Grover Lines" <grover@ceribus.net>
Subject: buildworld failure
To: <freebsd-current@freebsd.org>
Message-ID: <20040716221229.0257243D1D@mx1.FreeBSD.org>
Content-Type: text/plain; charset="us-ascii"
===> usr.bin/hexdump
cc -Os -pipe -march=athlon-xp -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/usr.bin/hexdump/conv.c
cc -Os -pipe -march=athlon-xp -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/usr.bin/hexdump/display.c
cc -Os -pipe -march=athlon-xp -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/usr.bin/hexdump/hexdump.c
cc -Os -pipe -march=athlon-xp -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/usr.bin/hexdump/hexsyntax.c
cc -Os -pipe -march=athlon-xp -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/usr.bin/hexdump/odsyntax.c
/usr/src/usr.bin/hexdump/odsyntax.c: In function `odoffset':
/usr/src/usr.bin/hexdump/odsyntax.c:249: warning: dereferencing type-punned
pointer will break strict-aliasing rules
*** Error code 1
Stop in /usr/src/usr.bin/hexdump.
*** Error code 1
Stop in /usr/src/usr.bin.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
--
Grover Lines
------------------------------
Message: 15
Date: Fri, 16 Jul 2004 18:29:01 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: edquota -t broken?
To: freebsd-stable@freebsd.org
Cc: current@freebsd.org
Message-ID: <1090016941.32571.22.camel@lanshark.dmv.com>
Content-Type: text/plain
Having never had to concern myself with changing the grace period on
quota filesystems I never came across this issue before. Using the -t
flag to edquota to change the grace period on the file system in
question has utterly no effect. Whether I take someone who was
overquota, raise their quota and lower it, or cause a new user to go
overquota, the grace period always starts counting down from 7 days.
This occurs on 4.7 FreeBSD as well as 5.2.1-P8. The odd thing is that I
can go into /usr/src/ufs/ufs/quota.h and change the #DEFINE MAX_DQ_TIME
to equal 30 days instead of 7 days and then recompiling quota.c edquota.
c and so on.
When I invoke edquota -t -f /usr/home for example it *does* display:
Time units may be: days, hours, minutes, or seconds
Grace period before enforcing soft limits for users:
/usr/home: block grace period: 30 days, file grace period: 0 days
But this has utterly no effect on the quota reporting. Just to check if
maybe it was the quota program misreporting it, I wrote a quick c
program to check the value of dqb_btime from the structure defined in
quota.h:
struct dqblk {
u_int32_t dqb_bhardlimit; /* absolute limit on disk blks
alloc */
u_int32_t dqb_bsoftlimit; /* preferred limit on disk blks
*/
u_int32_t dqb_curblocks; /* current block count */
u_int32_t dqb_ihardlimit; /* maximum # allocated inodes +
1 */
u_int32_t dqb_isoftlimit; /* preferred inode limit */
u_int32_t dqb_curinodes; /* current # allocated inodes */
int32_t dqb_btime; /* time limit for excessive disk
use */
int32_t dqb_itime; /* time limit for excessive
files */
};
After checking the value of that from a freshly overquota user and
subtracting the current unix time, I was left with 7 days.
Any ideas on this one?
Sven
------------------------------
Message: 16
Date: Fri, 16 Jul 2004 15:50:03 -0700
From: Nate Lawson <nate@root.org>
Subject: ATA DVD playback hanging in physrd
To: current@freebsd.org
Message-ID: <40F85B9B.7030509@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
While playing back a DVD on my Thinkpad, it hangs at some point (2-5 minutes
after beginning playback). The player is hung in "physrd" and the drive stops
spinning. This hang happens when the drive is in PIO4 or DMA mode.
However, starting another process (i.e. cat /dev/acd0) spins up the drive and
it works (and the other process begins running again). What's interesting is
that I can quickly trigger this hang by starting IO on a completely different
channel (i.e. dd if=/dev/ad0 of=/dev/null bs=1m). This indicates that it may
be a driver issue since the DVD drive that hangs is on a different channel and
irq than the hard drive.
Devices:
atapci0: <Intel ICH3 UDMA100 controller> port
0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
[...]
ad0: 19077MB <IC25N020ATMR04-0> [41344/15/63] at ata0-master UDMA100
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: DVDROM <MATSHITADVD-ROM SR-8175> at ata1-master PIO4
The same behavior also happens on my DVD/CDRW drive.
ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: CDRW <UJDA720 DVD/CDRW> at ata1-master PIO4
-Nate
------------------------------
Message: 17
Date: Fri, 16 Jul 2004 16:15:56 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: ATA DVD playback hanging in physrd
To: Nate Lawson <nate@root.org>
Cc: current@freebsd.org
Message-ID: <20040716231556.7D2225D08@ptavv.es.net>
> Date: Fri, 16 Jul 2004 15:50:03 -0700
> From: Nate Lawson <nate@root.org>
> Sender: owner-freebsd-current@freebsd.org
>
> While playing back a DVD on my Thinkpad, it hangs at some point (2-5
> minutes after beginning playback). The player is hung in "physrd" and
> the drive stops spinning. This hang happens when the drive is in PIO4
> or DMA mode.
>
> However, starting another process (i.e. cat /dev/acd0) spins up the
> drive and it works (and the other process begins running again).
> What's interesting is that I can quickly trigger this hang by starting
> IO on a completely different channel (i.e. dd if=/dev/ad0 of=/dev/null
> bs=1m). This indicates that it may be a driver issue since the DVD
> drive that hangs is on a different channel and irq than the hard
> drive.
>
> Devices:
> atapci0: <Intel ICH3 UDMA100 controller> port
> 0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> [...]
> ad0: 19077MB <IC25N020ATMR04-0> [41344/15/63] at ata0-master UDMA100
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: DVDROM <MATSHITADVD-ROM SR-8175> at ata1-master PIO4
>
> The same behavior also happens on my DVD/CDRW drive.
> ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
> ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: CDRW <UJDA720 DVD/CDRW> at ata1-master PIO4
I have been seeing the same thing on my ThinkPad for a couple of
weeks. It may have been there for longer as I had not heavily used the
DVD for a while. There have been similar reports from others, but this
is the most exact match to what I have been seeing. Mine is a Toshiba
DVD/CDRW (DW-28E) at ata1-master UDMA33.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net Phone: +1 510 486-8634
------------------------------
Message: 18
Date: Fri, 16 Jul 2004 16:59:56 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: gdb crashes while trying to debug a core.....
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040716235956.GA8770@ns1.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Sat, Jul 17, 2004 at 12:46:29AM +0400, Gleb Smirnoff wrote:
> Marcel,
>
> I have one more question on new gdb. I can't open kernel crashdump with
> it. It says that '-k' option is unknown. If I try without options
> it says that type of vmcore.0 file is unknown.
The support hasn't been ported yet.
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 19
Date: Fri, 16 Jul 2004 18:37:19 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: gdb crashes while trying to debug a core.....
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID: <20040717013719.GA5500@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii
On Fri, Jul 16, 2004 at 11:23:55PM +0200, Willem Jan Withagen wrote:
> >
> > If you could make that available to me for download, then I'll put
> > it under http://people.freebsd.org/~marcel.
>
> Look in http://withagen.dyndns.org/FreeBSD/cores
Thanks,
PR bin/69164 -- http://people.freebsd.org/~marcel/PR/69164
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
------------------------------
Message: 20
Date: Fri, 16 Jul 2004 20:29:20 -0600
From: Brad Davis <so14k@so14k.com>
Subject: Re: acpi_video without suspending
To: freebsd-current@freebsd.org
Cc: Eric Anderson <anderson@centtech.com>
Message-ID: <200407162029.20862.so14k@so14k.com>
Content-Type: text/plain; charset="iso-8859-1"
On Friday 16 July 2004 6:56 am, Eric Anderson wrote:
> Brad Davis wrote:
> >Hi,
> >
> >I have a Dell Inspirion 5150 running current from a few weeks ago and I'd
> >like to set it up so when I close the lid it doesn't go into suspend but
> >just turns off the display. I have set
> >
> >hw.acpi.lid_switch_state=S0
> >
> >Which effectively stops the machine from suspending. But since the display
> >doesn't go off its putting out quite a bit of heat into a very small
> >inclosed space.
>
> You could use devd, like this:
>
> Put this in /etc/devd.conf (or change as necessary):
> notify 10 {
> match "system" "ACPI";
> match "subsystem" "Lid";
> action "/etc/rc.lid $notify";
> };
>
>
> and have /etc/rc.lid contain:
> sync && sync && sync
>
> if [ $1 = 0x00 ]; then
> logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
> ( sleep 2 ; ataidle -s 0 0) &
> sysctl hw.acpi.video.lcd0.active=0
> else
> logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
> sysctl hw.acpi.video.lcd0.active=1
> fi
>
> Make sure your lid state is '1' on bootup.. You can just force it to 1
> if you need to in sysctl.conf or something..
>
> Eric
Hi Eric,
I have done this, but nothing happens. I don't get any entries into syslog
after running devd -dD I get this:
hole# devd -dD
Parsing /etc/devd.conf
ethernet-nic-regex=(an|ar|ath|aue|awi|bfe|bge|cm|cnw|cs|cue|dc|de|ed|el|em|ep|
ex|fe|fxp|gem|gx|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl|rue|sf|sis|sk|sn|
snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl)[0-9]+
scsi-controller-regex=(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir|isp|mly|mpt|ncv|
nsp|stg|sym|wds)[0-9]+
Parsing files in /etc/devd
Parsing files in /usr/local/etc/devd
How would I enable devd on boot? I didn't see anything in the /etc/rc*
scripts. I also don't see anything when I unplug the power to my laptop or
close the lid from the debug output of devd.
Regards,
Brad Davis
--
Q: Why do mountain climbers rope themselves together?
A: To prevent the sensible ones from going home.
------------------------------
Message: 21
Date: Fri, 16 Jul 2004 21:57:05 -0500
From: Eric Anderson <anderson@centtech.com>
Subject: Re: acpi_video without suspending
To: Brad Davis <so14k@so14k.com>
Cc: freebsd-current@freebsd.org
Message-ID: <40F89581.9050704@centtech.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Brad Davis wrote:
>On Friday 16 July 2004 6:56 am, Eric Anderson wrote:
>
>
>>Brad Davis wrote:
>>
>>
>>>Hi,
>>>
>>>I have a Dell Inspirion 5150 running current from a few weeks ago and I'd
>>>like to set it up so when I close the lid it doesn't go into suspend but
>>>just turns off the display. I have set
>>>
>>>hw.acpi.lid_switch_state=S0
>>>
>>>Which effectively stops the machine from suspending. But since the display
>>>doesn't go off its putting out quite a bit of heat into a very small
>>>inclosed space.
>>>
>>>
>>You could use devd, like this:
>>
>>Put this in /etc/devd.conf (or change as necessary):
>>notify 10 {
>> match "system" "ACPI";
>> match "subsystem" "Lid";
>> action "/etc/rc.lid $notify";
>>};
>>
>>
>>and have /etc/rc.lid contain:
>>sync && sync && sync
>>
>>if [ $1 = 0x00 ]; then
>> logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
>> ( sleep 2 ; ataidle -s 0 0) &
>> sysctl hw.acpi.video.lcd0.active=0
>>else
>> logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
>> sysctl hw.acpi.video.lcd0.active=1
>>fi
>>
>>Make sure your lid state is '1' on bootup.. You can just force it to 1
>>if you need to in sysctl.conf or something..
>>
>>Eric
>>
>>
>
>Hi Eric,
>
>I have done this, but nothing happens. I don't get any entries into syslog
>after running devd -dD I get this:
>
>hole# devd -dD
>Parsing /etc/devd.conf
>ethernet-nic-regex=(an|ar|ath|aue|awi|bfe|bge|cm|cnw|cs|cue|dc|de|ed|el|em|ep
|
>ex|fe|fxp|gem|gx|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl|rue|sf|sis|sk|sn|
>snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl)[0-9]+
>scsi-controller-regex=(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir|isp|mly|mpt|ncv
|
>nsp|stg|sym|wds)[0-9]+
>Parsing files in /etc/devd
>Parsing files in /usr/local/etc/devd
>
>How would I enable devd on boot? I didn't see anything in the /etc/rc*
>scripts. I also don't see anything when I unplug the power to my laptop or
>close the lid from the debug output of devd.
>
>
Woops - forgot that step.. try adding this to /etc/rc.conf:
devd_enable="YES"
Does that help?
Eric
--
------------------------------------------------------------------
Eric Anderson Sr. Systems Administrator Centaur Technology
Talk sense to a fool and he calls you foolish.
------------------------------------------------------------------
------------------------------
Message: 22
Date: Fri, 16 Jul 2004 21:12:36 -0600
From: Brad Davis <so14k@so14k.com>
Subject: Re: acpi_video without suspending
To: freebsd-current@freebsd.org
Cc: Eric Anderson <anderson@centtech.com>
Message-ID: <200407162112.36694.so14k@so14k.com>
Content-Type: text/plain; charset="iso-8859-1"
On Friday 16 July 2004 8:57 pm, Eric Anderson wrote:
> Brad Davis wrote:
> >On Friday 16 July 2004 6:56 am, Eric Anderson wrote:
> >>Brad Davis wrote:
> >>>Hi,
> >>>
> >>>I have a Dell Inspirion 5150 running current from a few weeks ago and
> >>> I'd like to set it up so when I close the lid it doesn't go into
> >>> suspend but just turns off the display. I have set
> >>>
> >>>hw.acpi.lid_switch_state=S0
> >>>
> >>>Which effectively stops the machine from suspending. But since the
> >>> display doesn't go off its putting out quite a bit of heat into a very
> >>> small inclosed space.
> >>
> >>You could use devd, like this:
> >>
> >>Put this in /etc/devd.conf (or change as necessary):
> >>notify 10 {
> >> match "system" "ACPI";
> >> match "subsystem" "Lid";
> >> action "/etc/rc.lid $notify";
> >>};
> >>
> >>
> >>and have /etc/rc.lid contain:
> >>sync && sync && sync
> >>
> >>if [ $1 = 0x00 ]; then
> >> logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
> >> ( sleep 2 ; ataidle -s 0 0) &
> >> sysctl hw.acpi.video.lcd0.active=0
> >>else
> >> logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
> >> sysctl hw.acpi.video.lcd0.active=1
> >>fi
> >>
> >>Make sure your lid state is '1' on bootup.. You can just force it to 1
> >>if you need to in sysctl.conf or something..
> >>
> >>Eric
> >
> >Hi Eric,
> >
> >I have done this, but nothing happens. I don't get any entries into syslog
> >after running devd -dD I get this:
> >
> >hole# devd -dD
> >Parsing /etc/devd.conf
> >ethernet-nic-regex=(an|ar|ath|aue|awi|bfe|bge|cm|cnw|cs|cue|dc|de|ed|el|em
> >|ep|
> > ex|fe|fxp|gem|gx|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl|rue|sf|sis|sk|sn
> >| snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl)[0-9]+
> >scsi-controller-regex=(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir|isp|mly|mpt|
> >ncv| nsp|stg|sym|wds)[0-9]+
> >Parsing files in /etc/devd
> >Parsing files in /usr/local/etc/devd
> >
> >How would I enable devd on boot? I didn't see anything in the /etc/rc*
> >scripts. I also don't see anything when I unplug the power to my laptop or
> >close the lid from the debug output of devd.
>
> Woops - forgot that step.. try adding this to /etc/rc.conf:
>
> devd_enable="YES"
>
> Does that help?
That works, not sure why it didn't show up in my grep. But my monitior doesn't
shut off when I close the lid and nothing happens when I unplug the power
cable. Nothing in the logs or anything that I can tell that devd is actually
doing something.
Regards,
Brad Davis
------------------------------
Message: 23
Date: Fri, 16 Jul 2004 23:15:49 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: green@freebsd.org
Cc: current@freebsd.org
Message-ID: <20040716.231549.58438445.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <20040715180854.GZ1626@green.homeunix.org>
Brian Fundakowski Feldman <green@freebsd.org> writes:
: This is what I have so far, but I'm not happy with it because it
: seems like it would be so much nicer to increment a count on the
: ithread's intrhand and drain any current interrupt out of the
: ithread, but possibly making each interrupt a lot more expensive.
I don't like this. And I don't understand the problem at all. If the
device isn't there, we already handle it correctly. I think that it
is a lot of code to handle an extremely rare case. I don't like
taking out an sx lock on every single interrupt.
Please do not commit this. Thanks.
Warner
------------------------------
Message: 24
Date: Fri, 16 Jul 2004 23:28:44 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: green@freebsd.org
Cc: current@freebsd.org
Message-ID: <20040716.232844.15672191.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <20040715180854.GZ1626@green.homeunix.org>
Brian Fundakowski Feldman <green@freebsd.org> writes:
: Devices that attach to a pccbb end up getting screwed if they share
: interrupt handlers with anything else and one comes in at such time
: that the interrupt handler has been deallocated but not torn down.
How do they get screwed by this case? I considered these cases. What
scenario, exactly, does this cause problems for.
: There is no interrupt protection for the pccbb interrupt handler,
There doesn't need to be one because we preclude calling it when
things are in a bad state. Is there some case that we've not taken
care of?
: and the cleanest method I can think of is add a "don't run" count to
: the real ithread interrupt handler (parent); however, this is a fair
: bit of infrastructure if it's not something very useful, and in SMP,
: concurrent accesses of the local interrupt handler list in pccbb do
: need to be protected, not just preventing interrupt handlers.
I don't think this sort of insfrastructure is useful. I don't
understand when the case you are trying to protect against can happen,
so I'm having trouble seeing why the code is necessary.
: This is what I have so far, but I'm not happy with it because it
: seems like it would be so much nicer to increment a count on the
: ithread's intrhand and drain any current interrupt out of the
: ithread, but possibly making each interrupt a lot more expensive.
Like I said in another note, I don't like this because I don't want to
take out a lock on every interrupt to guard against such a rare case
as you've discovered (I'm assuming it is rare becuase I've never seen
it in 5 years of maintaining the code).
..
: if (sc->flags & CBB_CARD_OK) {
..
What I want to know is why the above check doesn't guard against this
problem. If the card is detached because you ejected it, the isr
already guards against calling the hanlders for this card.
Warner
------------------------------
Message: 25
Date: Fri, 16 Jul 2004 23:29:58 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: green@freebsd.org
Cc: current@freebsd.org
Message-ID: <20040716.232958.16681208.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <20040715180854.GZ1626@green.homeunix.org>
Brian Fundakowski Feldman <green@freebsd.org> writes:
: if (sc->flags & CBB_CARD_OK) {
: + int needgiant = 0;
: +
: + sx_slock(&sc->intrsx);
: STAILQ_FOREACH(ih, &sc->intr_handlers, entries) {
: - if ((ih->flags & INTR_MPSAFE) == 0)
: - mtx_lock(&Giant);
: - (*ih->intr)(ih->arg);
: - if ((ih->flags & INTR_MPSAFE) == 0)
: - mtx_unlock(&Giant);
: + if ((ih->flags & INTR_MPSAFE) == 0) {
: + needgiant = 1;
: + break;
: + }
: + }
: + if (!needgiant) {
: + STAILQ_FOREACH(ih, &sc->intr_handlers, entries)
: + (*ih->intr)(ih->arg);
: + sx_sunlock(&sc->intrsx);
: + return;
: }
: + sx_sunlock(&sc->intrsx);
: + mtx_lock(&Giant);
: + sx_slock(&sc->intrsx);
: + STAILQ_FOREACH(ih, &sc->intr_handlers, entries)
: + (*ih->intr)(ih->arg);
: + sx_sunlock(&sc->intrsx);
: + mtx_unlock(&Giant);
: }
: }
I also don't like this patch because it takes out GIANT for the
duration of ALL handlers, not just the ones that need that. Why is
that necesary?
Warner
------------------------------
Message: 26
Date: Sat, 17 Jul 2004 01:40:14 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: pccbb crashes when detaching (unsafe interrupt handler)
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: current@freebsd.org
Message-ID: <20040717054014.GP1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Fri, Jul 16, 2004 at 11:28:44PM -0600, M. Warner Losh wrote:
> In message: <20040715180854.GZ1626@green.homeunix.org>
> Brian Fundakowski Feldman <green@freebsd.org> writes:
> : Devices that attach to a pccbb end up getting screwed if they share
> : interrupt handlers with anything else and one comes in at such time
> : that the interrupt handler has been deallocated but not torn down.
>
> How do they get screwed by this case? I considered these cases. What
> scenario, exactly, does this cause problems for.
>
> : There is no interrupt protection for the pccbb interrupt handler,
>
> There doesn't need to be one because we preclude calling it when
> things are in a bad state. Is there some case that we've not taken
> care of?
>
> : and the cleanest method I can think of is add a "don't run" count to
> : the real ithread interrupt handler (parent); however, this is a fair
> : bit of infrastructure if it's not something very useful, and in SMP,
> : concurrent accesses of the local interrupt handler list in pccbb do
> : need to be protected, not just preventing interrupt handlers.
>
> I don't think this sort of insfrastructure is useful. I don't
> understand when the case you are trying to protect against can happen,
> so I'm having trouble seeing why the code is necessary.
>
> : This is what I have so far, but I'm not happy with it because it
> : seems like it would be so much nicer to increment a count on the
> : ithread's intrhand and drain any current interrupt out of the
> : ithread, but possibly making each interrupt a lot more expensive.
>
> Like I said in another note, I don't like this because I don't want to
> take out a lock on every interrupt to guard against such a rare case
> as you've discovered (I'm assuming it is rare becuase I've never seen
> it in 5 years of maintaining the code).
>
> ...
> : if (sc->flags & CBB_CARD_OK) {
> ...
>
> What I want to know is why the above check doesn't guard against this
> problem. If the card is detached because you ejected it, the isr
> already guards against calling the hanlders for this card.
Do you want to see the driver? This is a simple problem. The removal
from the interrupt handler list in pccbb is not even remotely safe with
regard to SMP _or_to_interrupts_. I am literally receiving crashes
with the function 0xdeadc0de() being called from the interrupts. Do you
not believe me? It's extremely easy to test. I just play something on the
sound card while I kldunload, or eject, my cardbus wireless card.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 27
Date: Sat, 17 Jul 2004 00:27:29 -0700
From: Mayo <mayo@mayo.sk>
Subject: Re: ATA DVD playback hanging in physrd
To: Nate Lawson <nate@root.org>
Cc: current@freebsd.org
Message-ID: <1090049248.19391.47.camel@einstein.local.nfy>
Content-Type: text/plain; charset="us-ascii"
On Fri, 2004-07-16 at 15:50, Nate Lawson wrote:
> While playing back a DVD on my Thinkpad, it hangs at some point (2-5 minutes
> after beginning playback). The player is hung in "physrd" and the drive sto
ps
> spinning. This hang happens when the drive is in PIO4 or DMA mode.
>
> However, starting another process (i.e. cat /dev/acd0) spins up the drive an
d
> it works (and the other process begins running again). What's interesting i
s
> that I can quickly trigger this hang by starting IO on a completely differen
t
> channel (i.e. dd if=/dev/ad0 of=/dev/null bs=1m). This indicates that it ma
y
> be a driver issue since the DVD drive that hangs is on a different channel a
nd
> irq than the hard drive.
>
> Devices:
> atapci0: <Intel ICH3 UDMA100 controller> port
> 0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> [...]
> ad0: 19077MB <IC25N020ATMR04-0> [41344/15/63] at ata0-master UDMA100
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: DVDROM <MATSHITADVD-ROM SR-8175> at ata1-master PIO4
>
> The same behavior also happens on my DVD/CDRW drive.
> ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
> ata1-slave: FAILURE - ATAPI_IDENTIFY no interrupt
> ata1-master: FAILURE - ATAPI_RESET no interrupt
> acd0: CDRW <UJDA720 DVD/CDRW> at ata1-master PIO4
Similar issue has been mentioned few days ago in the "DVD/CD reading
issues with -CURRENT from 2004-06-27" thread. I have the same problem on
my workstation (LG DVD drive), though I don't have very current -CURRENT
at the moment.
Reseting the drive, as it was suggested in the thread, seems to help it.
mayo
-------------- 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/20040717/
b168a58d/attachment-0001.bin
------------------------------
Message: 28
Date: Sat, 17 Jul 2004 05:09:28 -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: <20040717090928.4B1607303F@freebsd-current.sentex.ca>
TB --- 2004-07-17 08:00:00 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-17 08:00:00 - starting CURRENT tinderbox run for alpha/alpha
TB --- 2004-07-17 08:00:00 - checking out the source tree
TB --- 2004-07-17 08:00:00 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha
TB --- 2004-07-17 08:00:00 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-07-17 08:04:49 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-07-17 08:04:49 - cd /home/tinderbox/sandbox/CURRENT/alpha/alpha/sr
c
TB --- 2004-07-17 08:04:49 - /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
[...]
===> usr.bin/hexdump
cc -O2 -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -c /tinderbox/CURRENT/alpha/alpha/src/usr.bin/hex
dump/conv.c
cc -O2 -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -c /tinderbox/CURRENT/alpha/alpha/src/usr.bin/hex
dump/display.c
cc -O2 -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -c /tinderbox/CURRENT/alpha/alpha/src/usr.bin/hex
dump/hexdump.c
cc -O2 -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -c /tinderbox/CURRENT/alpha/alpha/src/usr.bin/hex
dump/hexsyntax.c
cc -O2 -pipe -mcpu=ev4 -mtune=ev5 -mieee -Wsystem-headers -Werror -Wall -Wno-f
ormat-y2k -Wno-uninitialized -c /tinderbox/CURRENT/alpha/alpha/src/usr.bin/hex
dump/odsyntax.c
/tinderbox/CURRENT/alpha/alpha/src/usr.bin/hexdump/odsyntax.c: In function `od
offset':
/tinderbox/CURRENT/alpha/alpha/src/usr.bin/hexdump/odsyntax.c:249: warning: de
referencing type-punned pointer will break strict-aliasing rules
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src/usr.bin/hexdump.
*** Error code 1
Stop in /tinderbox/CURRENT/alpha/alpha/src/usr.bin.
*** 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-07-17 09:09:28 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-07-17 09:09:28 - ERROR: failed to build world
TB --- 2004-07-17 09:09:28 - tinderbox aborted
------------------------------
Message: 29
Date: Sat, 17 Jul 2004 06:07:24 -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: <20040717100724.E18557303F@freebsd-current.sentex.ca>
TB --- 2004-07-17 09:09:28 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-17 09:09:28 - starting CURRENT tinderbox run for amd64/amd64
TB --- 2004-07-17 09:09:28 - checking out the source tree
TB --- 2004-07-17 09:09:28 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64
TB --- 2004-07-17 09:09:28 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-07-17 09:14:37 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-07-17 09:14:37 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64/sr
c
TB --- 2004-07-17 09:14:37 - /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
[...]
===> usr.bin/hexdump
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/conv.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/display.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/hexdump.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/hexsyntax.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/odsyntax.c
/tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/odsyntax.c: In function `od
offset':
/tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump/odsyntax.c:249: warning: de
referencing type-punned pointer will break strict-aliasing rules
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src/usr.bin/hexdump.
*** Error code 1
Stop in /tinderbox/CURRENT/amd64/amd64/src/usr.bin.
*** 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-07-17 10:07:24 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-07-17 10:07:24 - ERROR: failed to build world
TB --- 2004-07-17 10:07:24 - tinderbox aborted
------------------------------
Message: 30
Date: Sat, 17 Jul 2004 07:02:29 -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: <20040717110229.47F627303F@freebsd-current.sentex.ca>
TB --- 2004-07-17 10:07:25 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-17 10:07:25 - starting CURRENT tinderbox run for i386/i386
TB --- 2004-07-17 10:07:25 - checking out the source tree
TB --- 2004-07-17 10:07:25 - cd /home/tinderbox/sandbox/CURRENT/i386/i386
TB --- 2004-07-17 10:07:25 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A
src
TB --- 2004-07-17 10:12:34 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-07-17 10:12:34 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src
TB --- 2004-07-17 10:12:34 - /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
[...]
===> usr.bin/hexdump
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/conv.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/display.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/hexdump.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/hexsyntax.c
cc -O2 -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialize
d -c /tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/odsyntax.c
/tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/odsyntax.c: In function `odof
fset':
/tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump/odsyntax.c:249: warning: dere
ferencing type-punned pointer will break strict-aliasing rules
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src/usr.bin/hexdump.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src/usr.bin.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src.
*** Error code 1
Stop in /tinderbox/CURRENT/i386/i386/src.
TB --- 2004-07-17 11:02:29 - WARNING: /usr/bin/make returned exit code 1
TB --- 2004-07-17 11:02:29 - ERROR: failed to build world
TB --- 2004-07-17 11:02:29 - tinderbox aborted
------------------------------
Message: 31
Date: Sat, 17 Jul 2004 20:28:12 +0900
From: Seigo Tanimura <tanimura@tanimura.dyndns.org>
Subject: Re: Kernel Build FAILURE -sound
To: John Merryweather Cooper <johnmary@adelphia.net>
Cc: Seigo Tanimura <tanimura@tanimura.dyndns.org>
Message-ID: <200407171128.i6HBSCGU004076@urban.tanimura.dyndns.org>
Content-Type: text/plain; charset=US-ASCII
On Fri, 16 Jul 2004 04:09:30 -0700,
John Merryweather Cooper <johnmary@adelphia.net> said:
johnmary> [1 <text/plain (quoted-printable)>]
johnmary> On Fri, 2004-07-16 at 03:02, Grover Lines wrote:
>> install -o root -g wheel -m 555 sound.ko /boot/kernel
>> install: sound.ko: No such file or directory
>> *** Error code 71
>>
>> Stop in /usr/src/sys/modules/sound/sound.
>> *** Error code 1
>>
>> Stop in /usr/src/sys/modules/sound.
>> *** Error code 1
>>
>> Stop in /usr/src/sys/modules.
>> *** Error code 1
johnmary> It's documented in UPDATING that s|pcm|sound|g, e.g.,
johnmary> - device pcm
johnmary> + device sound
johnmary> However, the changeover for the modules leaves something to be desir
ed.
johnmary> For example, my system should use:
johnmary> device snd_via8233
johnmary> but the build has no idea about this module.
Doublequote a device name with numeric characters, eg.
device "snd_via8233"
johnmary> jmc
johnmary> [2 This is a digitally signed message part <application/pgp-signatur
e (7bit)>]
--
Seigo Tanimura <tanimura@tanimura.dyndns.org> <tanimura@FreeBSD.org>
------------------------------
Message: 32
Date: Sat, 17 Jul 2004 14:30:02 +0300 (EEST)
From: Vaidas Damosevicius <vd@vmunix.lt>
Subject: Re: install crashes on ThinkPad T41
To: Dan Langille <dan@langille.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040717113002.7D4534796B@mail.if.lt>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Thu, 15 Jul 2004, Dan Langille wrote:
> Gidday,
>
> I've tried several -current snapshots on this IBM ThinkPad T41
> (2004.05.24, 2004.06.11, 2004.07.07, and 2004.07.14). All fail, but
> at different steps. I'll report upon 2004.07.14 but will provide
> information for the others if requested.
>
>
> 5.2.1-RELEASE is installed on this laptop. It runs fine. I have
> attached the output of /var/run/dmesg.boot from that.
>
> I have also included the output of dmidecode.
>
> 2004.07.14 crashes during probing. Details of the traceback are at:
> http://www.langille.org/IBM-ThinkPad-T41-current-2004.07.14-trace.jpg
>
> Anything else I can do to help, please let me know. If anyone wants
> a login to the box to diagnose the issue, please ask. I need to get
> a USB-Serial adaptor.
>
> Attachments:
> I:\dmesg.boot
> I:\dmidecode
> --
> Dan Langille : http://www.langille.org/
>
>
Hello,
Well, I had the same problem on Sony VAIO TR2A, ASUS S200N, IBM
ThinkPad T41 and solution, which helped me a lot - custom kernel without
WITNESS'es. I made my own distribution with custom kernel without these
options and everything gone well.
vd
------------------------------
Message: 33
Date: Fri, 16 Jul 2004 19:25:09 +0200
From: Harald Schmalzbauer <h@schmalzbauer.de>
Subject: kernel build error in cam_periph_mapmem
To: freebsd-current@freebsd.org
Message-ID: <200407161925.14816@harryhomeworkstation>
Content-Type: text/plain; charset="iso-8859-15"
Dear hackers,
for several cvsups my kernel build fails with the following:
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -std=c99 -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 -mno-align-long-strings -mpreferred-stack-boundary=2
-ffreestanding -Werror /usr/src/sys/cam/cam_periph.c
/usr/src/sys/cam/cam_periph.c: In function `cam_periph_mapmem':
/usr/src/sys/cam/cam_periph.c:624: warning: implicit declaration of function
`_mtx_assert'
/usr/src/sys/cam/cam_periph.c:624: error: `MA_OWNED' undeclared (first use in
this function)
/usr/src/sys/cam/cam_periph.c:624: error: (Each undeclared identifier is
reported only once
/usr/src/sys/cam/cam_periph.c:624: error: for each function it appears in.)
/usr/src/sys/cam/cam_periph.c:659: warning: redundant redeclaration of
`_mtx_assert' in same scope
/usr/src/sys/cam/cam_periph.c:624: warning: previous declaration of
`_mtx_assert'
/usr/src/sys/cam/cam_periph.c: In function `cam_periph_unmapmem':
/usr/src/sys/cam/cam_periph.c:684: error: `MA_OWNED' undeclared (first use in
this function)
/usr/src/sys/cam/cam_periph.c:706: warning: redundant redeclaration of
`_mtx_assert' in same scope
/usr/src/sys/cam/cam_periph.c:684: warning: previous declaration of
`_mtx_assert'
/usr/src/sys/cam/cam_periph.c:723: warning: redundant redeclaration of
`_mtx_assert' in same scope
/usr/src/sys/cam/cam_periph.c:684: warning: previous declaration of
`_mtx_assert'
*** Error code 1
Stop in /usr/obj/usr/src/sys/CALE.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
Nothing unusual in my custom kernel, see attached.
Best regards,
-Hary
-------------- next part --------------
########################################
## Kernel for D815UFVW ##
########################################
## DEBUGS!
#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
options KDB # Enable kernel debugger support.
options DDB # Support DDB.
options GDB # Support remote GDB.
options INVARIANTS # Enable calls of extra sanity checkin
g
#options INVARIANT_SUPPORT # Extra sanity checks of internal str
uctures, required by INVARIANTS
#options WITNESS # Enable checks to detect deadlocks a
nd cycles
#options WITNESS_SKIPSPIN # Don't run witness on spinlocks for
speed
## Generic Config
#-------------------
machine i386
cpu I686_CPU
options PQ_CACHESIZE=256 # color for 512k/16k cache
ident CALE
#options SCHED_4BSD #4BSD scheduler
options SCHED_ULE
options PROCFS #Process filesystem (requires PSEUDOFS)
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4
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 CLK_USE_I8254_CALIBRATION
options HZ=4000
options PERFMON
#options MAC
#options MAC_BIBA
#options MAC_BSDEXTENDED
#options MAC_DEBUG
#options MAC_IFOFF
#options MAC_LOMAC
#options MAC_MLS
#options MAC_NONE
#options MAC_PARTITION
#options MAC_PORTACL
#options MAC_SEEOTHERUIDS
#options MAC_TEST
## Buses
#------------------
#options SMP
device apic
#options NO_MIXED_MODE
device acpi
device npx
device isa
device pci
#device agp
## ISA-Controller
#----------------
device atkbdc # AT keyboard controller
device sio # 8250, 16[45]50 based serial ports
device pmtimer
device fdc
#device ppc
#device ppbus # Parallel port bus (required)
#device lpt # Printer
#device ppi # Parallel port interface device
#device vpo # Requires scbus and da
## PCI-Controller
#------------------
device ata
device uhci # UHCI PCI->USB interface
#device ohci # OHCI PCI->USB interface
## Devices with their options
#----------------------------
#+++++ IDE ++++++
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID #Static device numbering
options FFS #Berkeley Fast Filesystem
options UDF
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big directories
options SOFTUPDATES #Enable FFS soft updates support
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
options GEOM_BDE
options GEOM_GPT
options UFS_EXTATTR
options UFS_EXTATTR_AUTOSTART
options QUOTA #enable disk quotas
#options SUIDDIR
#+++++ SCSI +++++
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device cd
device pass # Passthrough device (direct SCSI access)
device atapicam
#+++++ Eingabe +++++
device atkbd # AT keyboard
options ATKBD_DFLT_KEYMAP
makeoptions ATKBD_DFLT_KEYMAP=german.iso
device psm # PS/2 mouse
#+++++ Ausgabe ++++++
device vga # VGA video card driver
options VESA
device splash # Splash screen and screen saver support
device sc
options MAXCONS=12
options SC_DISABLE_REBOOT
options SC_PIXEL_MODE
options SC_HISTORY_SIZE=1000
options SC_DFLT_FONT
makeoptions SC_DFLT_FONT=iso15
device sound
device snd_ich
#+++++ USB +++++
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device uscanner
#+++++ Netzwerk +++++
device miibus # MII bus support
device fxp
options DEVICE_POLLING
options INET #InterNETworking
options INET6 #InterNETworking
options NFSCLIENT #Network Filesystem Client
options NFSSERVER #Network Filesystem Server
options RANDOM_IP_ID
options TCP_DROP_SYNFIN
options ZERO_COPY_SOCKETS
#+++++ Diverses +++++
device smbus # Bus support, required for smb below.
device smb
device ichsmb
## Pseudo Devices
#----------------
options PSEUDOFS #Pseudo-filesystem framework
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device bpf # Berkeley packet filter
-------------- 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/20040716/
a4acc0c6/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 68, Issue 38
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[34m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m