Re: 12 trap in rfork+0x22

1999-07-03 Thread Bruce Evans
db p %eax c015ff46 --- why this? eax == 0x8 in show reg %eax seems to be an undetected syntax error. '%' seems to be an alias for '.'. The %eax register is given by $eax. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: PLIP is still broken :(

1999-07-19 Thread Bruce Evans
You misunderstood what Bruce wrote. PLIP has always been broken. It used to be possible to hack around the brokenness by setting the interrupt mask to net instead of tty. With newbus, this hack is no longer possible (it was never correct anyway; it broke printing). Or by statically configuring

Re: VIA Appolo IDE controller handling in new ata driver

1999-07-21 Thread Bruce Evans
Currently VIA Apollo IDE controller in the new ata driver handled as "Generic UDMA" controller, but AFAIK this controller was designed to be fully compatible with the Intel PIIX4 chip. To test if I'm right I made No, they are quite different. See the old driver for 500 lines of differences.

Re: Anyone using the none-GPL FPU emulator in -current?

1999-07-22 Thread Bruce Evans
It seems the non-GPL floating point emulator is completely broken in 4.0-current. While it still boots the kernel and brings up the system, it seems to cause every floating-point using userlevel program to coredump (i.e. ping). ping uses sqrt(), so it was broken by not preserving FreeBSD

Re: Still kernel compilation failures

1999-07-23 Thread Bruce Evans
-O works because optimisation removes an unused reference to a nonexistent variable. The variable once existed and was used. It still exists under a different name. So you're saying that both the compiler and the code are broken? Only the code. Bruce To Unsubscribe: send mail to [EMAIL

Re: PLIP is still broken :(

1999-07-24 Thread Bruce Evans
Possible quick fix (hack): change all the spltty()'s in lpt.c to splnet()'s. lpt isn't a tty driver; it just abuses spltty(). Abusing splnet() instead should work OK for lpt and fix if_plip. This seems good until the intr stuff handle dynamic update of a interrupt spl. Is there some work in

Re: PLIP is still broken :(

1999-07-25 Thread Bruce Evans
Otherwise, the generic code is missing mainly update of the interrupt masks when an interrupt is unregistered. For the low level side, we could consider something like the following code. But this shall be called by the nexus layer and then needs generic newbus support (as you said above, didn't

Re: Panic plus advice needed

1999-08-03 Thread Bruce Evans
One reason adding -g doesn't work at times is if the kernel is recompiled by a person with a different length username. vers.c is produced with a string which is a different length which screws up the offsets. Maybe newvers.sh should pad usernames to the legal max? Maybe we should

Re: problem with vnconfig -s labels ...

1999-08-20 Thread Bruce Evans
Hmmm, I know this is your code, but are you sure? 8-). My understanding of dkmodslice() and friends is that they manipulate dev_t entries, but don't actually initialise them. Since the subr_diskslice code takes a dev_t dkmodslice() once just manipulated bits in dev_t scalars. Now that dev_t is

Re: Sync(8) doesn't have any effect on softupdates-enabled filesystem

1999-08-22 Thread Bruce Evans
So what do we do when we halt or reboot ? We unmount the file system. dounmount() calls VFS_SYNC() with the MNT_WAIT flag, and then (for ffs) ffs_unmount() calls ffs_flushfiles() or softdep_flushfiles(). I'm not sure why the latter is necessary. I don't understand this problem. sync()

Re: whither readline.h?

1999-08-24 Thread Bruce Evans
It is probably because /usr/src/gnu/lib/libreadline/Makefile use bsd.subdir.mk and not bsd.lib.mk. Their distribute targets are different. I don't know if you can just slot bsd.lib.mk in there because the libreadline have some subdirs that have to be handled. I think using bsd.subdir.mk is an

early panics broken

1999-08-30 Thread Bruce Evans
panic() no longer works when called early. E.g., after booting with -d, typing `panicnewline' at the debugger prompt produces no output and hangs. This may be because panic() now depends on uninitialized event handlers. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: HEADS UP

1999-08-30 Thread Bruce Evans
How about struct timeval instead? Timevals shouldn't be used in new interfaces. Use timespecs, which are both Standard and more future proof. Firstly we are talking about time deltas, and on the sysctl side of things it's very hard to set 'timevals (as you'd need to set two different

Re: make -j 4 buildworld race problem

1999-08-31 Thread Bruce Evans
"make buildworld" completes without a problem. "make -j 4 buildworld" gives: libncurses now has lots of internal utilities. Apparently the dependencies for them are incomplete. The utilities are are also built at the wrong time and break cross compiling. See the old curses (libmytinfo part)

Re: new ncurses lib changed tgetstr() API

1999-09-01 Thread Bruce Evans
After the import of ncurses 5.0 (beta?), I noticed strange behavior of clear on my xterm. I tracked it down to an API change of tgetstr(), here is the new code: char *tgetstr(NCURSES_CONST char *id, char **area GCC_UNUSED) It is definitely bug on ncurses side and must be fixed *there*

Re: early panics broken

1999-09-04 Thread Bruce Evans
panic() no longer works when called early. E.g., after booting with -d, typing `panicnewline' at the debugger prompt produces no output and hangs. This may be because panic() now depends on uninitialized event handlers. This is because no shutdown_final event handlers have been

Re: (P)review: sigset_t for more than 32 signals

1999-09-07 Thread Bruce Evans
This is a particularly safe implementation typedef, since I don't anticipate uint64_t ever being used in a future specification as a different data type. I don't know about ANSI. It's in C9x. But not in signal.h. The n869 draft has it in stdint.h and inttypes.h only. Bruce To

Re: profiling on kernels

1999-09-12 Thread Bruce Evans
Could someone please look into compiling kernels with profiling? [this is done by config -p on the kernel config file] It works for me. `config -pp' is broken in -current (due to an incomplete upgrade to egcs). `config -p' is broken in RELENG_3 (due to an incomplete upgrade to elf). Also,

Re: more

1999-09-13 Thread Bruce Evans
I think that the originator's request is valid, especially since some of the original BSD documentation in /usr/share/doc/* has rotted since it was originally imported. We have been maintaining those documents more as a "historical" perspective than as accurate documentation on the current

Re: 2xPIIIx450 results NFS results

1999-09-20 Thread Bruce Evans
I remember this one too. I think the problem is that we fail to service the RTC intr for some reason. This patch was only a workaround, and received a verbal broadside from Bruce if I remember right. Maybe it should be added under a sysctl until a better solution is know. ---

Re: Boot problems with new -current

1999-09-26 Thread Bruce Evans
On Sun, 26 Sep 1999, Cejka Rudolf wrote: Ok: Just run "disklabel -r -e ad0", clear word "badsect" in "Flags:" line and booting of new kernels is back... I think phk set to switch back to the wd driver to run disklabel, but that shouldn't be necessary -- a new label can certainly be written

Re: Now that sigcontext is gone ...

1999-09-30 Thread Bruce Evans
I'm trying to digest the recent signal changes and get a handle on what I need to do to make Modula-3 work. There is code in the runtime Sigcontext will have to come back, since it is a standard BSD interface. Recent signal changes break even its source-level compatibility. Previous signal

Re: BEWARE: CAM changes broke AHC!

1999-10-01 Thread Bruce Evans
I am particularly suspicious about this: @@ -284,26 +283,14 @@ return (error); /* error code from tsleep */ } - if ((softc-flags DA_FLAG_OPEN) == 0) { - if (cam_periph_acquire(periph) != CAM_REQ_CMP) - return(ENXIO);

Re: my make world is broken !

1999-10-04 Thread Bruce Evans
3: *always* build (or try to) and install a new kernel before a make world as that's a lot easier to back out of. This badly bites the bum of anyone who uses KLD's regularly. 4: Don't use modules in -current unless you know what you are doing. This normally means not using modules in

Re: make install trick

1999-10-06 Thread Bruce Evans
/dev/da0s1a on / (local, synchronous, writes: sync 32 async 15100) ^^^ Though I'm still waiting for an explanation of WHY exactly I have async writes on a sync partition. Nobody yet has said anything but 'that's interesting...'. A direction to look would

Re: installworld broken from R/O /usr/obj

1999-10-09 Thread Bruce Evans
W`hile installworld is being discussed, I wanted to get this out there: Since rev 1.13 of usr.bin/make/arch.c, I've been seing a problem with ELF archive libraries being rebuilt unnecessarily. I believe that this problem can be traced to the RANLIBMAG string being set to "/". There's a PR

Re: Signal breakage?

1999-10-10 Thread Bruce Evans
On line 72 of signal.h, there is a reference to 'union sigval', which is declared in sys/signal.h, but inside #ifndef _POSIX_SOURCE. The X build heavily uses _POSIX_SOURCE, so this breaks. Should line 72 of signal.h not move a little further down into the #ifndef _POSIX_SOURCE block below

Re: kernel broken? (pcm)

1999-10-11 Thread Bruce Evans
Such an errors results from (uncommented) kernel option ^^^ #makeoptions CONF_CFLAGS=-fno-builtin We have enough breakages with the _documented_ kernel options that we don't

Re: CMAP2 busy ?

1999-10-28 Thread Bruce Evans
On Thu, 28 Oct 1999, Luoqi Chen wrote: ... panic: pmap_zero_page: CMAP2 busy It looked like an interrupt hit when the cpu was in an idle loop replenishing zero filled pages, and the interrupt handler somehow also tried to zero some pages itself. In vm_page_zero_idle(), pmap_zero_page

bogus libncp header installation

1999-10-28 Thread Bruce Evans
`make beforeinstall' in libncp corrupts the source tree (or fails with EROFS) in the SHARED=symlinks case. It installs headers in /usr/include/netncp - ../../sys/netncp. Headers that belong in netncp should just be in the source tree for netncp. Bruce To Unsubscribe: send mail to [EMAIL

Re: Deadlock in nbufkv

1999-10-29 Thread Bruce Evans
On Mon, 25 Oct 1999, Peter Jeremy wrote: I've recently upgraded a system from 3.2-RELEASE to -CURRENT as of 30-Sept (just before the signal changes). I now find that when I try to do a CVS checkout, the system hangs, with cvs in `nbufkv'. The CVSROOT is on a filesystem with standard 8K/1K

Re: named.conf oddity

1999-11-02 Thread Bruce Evans
It seems a recent update to lib/libc/net/inet_addr.c is the culprit here. Any IP address with a component of 34 will fail in inet_aton(). Here's a patch that should fix it up: Index: inet_addr.c === RCS file:

Re: CTM-deltas generation sptopped ?

1999-11-03 Thread Bruce Evans
On Wed, 3 Nov 1999 [EMAIL PROTECTED] wrote: There are no new CTM-deltas on 'ctm.freebsd.org' at least 22 hours. Is this known problem ? I've been waiting 41 hours now for cvs-cur.5804.gz. Also, ftp.freebsd.org has been hard to reach since freebsdcon (it usually refuses to

Re: YAJKHT (Yet a Junior kernel hacker task)

1999-11-03 Thread Bruce Evans
About the only place which is sacred is the gdb-stubs, please be aware that particular isolation requirements apply to that code which make it un-smart to rely on library functions. (that is why the gdb-stubs even come with their own strlen(3) strcat(3) The same applies to ddb and

Re: rm error code on FAT

1999-11-07 Thread Bruce Evans
On Mon, 8 Nov 1999, Maxim Sobolev wrote: Does anybody can explain why two absolutely identical attempts to remove unexistent files on UFS and FAT32 yields different error codes ("No such file or directory" and "Invalid argument" respectively)? This breaks "rm -f" behaviour, because instead

Re: doscmd broken on current? fixed

1999-11-08 Thread Bruce Evans
On Sun, 7 Nov 1999, John Hay wrote: Ok, with these patches doscmd is working for me again. I can boot dos and run the topspeed C compiler like I used to a few months ago. If nobody has any complaints I'll commit it. I'm just not 100% sure about the patch to doscmd.c and would like if

Re: Compaq RAID driver (ida) id0 vs ida0

1999-11-09 Thread Bruce Evans
On Mon, 8 Nov 1999, Jonathan Lemon wrote: In article local.mail.freebsd-current/[EMAIL PROTECTED] you write: Why is the /dev names ida0?? for the disk when the kernel are trying to mount rootdev to id0??? (Guess what... It is'nt compatibel ;) ``ida'' is the name of the controller.

Re: inconsistent and wrong locking in asleep()

1999-11-09 Thread Bruce Evans
Why trying to debug some locking code of my own I enabled SIMPLELOCK_DEBUG, only to find out that I was getting lots of `simple_unlock: lock not held' in lockmgr - acquire - apause. Looking closer at `apause' it seems rather clear that it can cause this. I proposed simple change is below.

Re: inconsistent and wrong locking in asleep()

1999-11-11 Thread Bruce Evans
On 9 Nov 1999, Assar Westerlund wrote: Bruce Evans [EMAIL PROTECTED] writes: That's a really old bug. I fixed it a year or two ago in my version, and optimised the !SMP case following a suggestion of tegge (waiting for the lock is useless in the !SMP case). Looks fine. Can you commit

shell pipeline bug

1999-11-12 Thread Bruce Evans
`man sh' now hangs when the pager is exited. This is caused by the recent change to sh/eval.c Simplified example: sh -c "jot 6000 | cat | head" hangs. This example is almost minimal. The size of the data written by the first command must be large enough to not fit in the pipe; the

Re: shell pipeline bug

1999-11-12 Thread Bruce Evans
On Fri, 12 Nov 1999, Martin Cracauer wrote: In [EMAIL PROTECTED], Bruce Evans wrote: `man sh' now hangs when the pager is exited. This is caused by the recent change to sh/eval.c My fix in 1.23 of eval.c was broken, but Steve repaired it in 1.24. Do you have 1.24? Yes, of course

Re: egcs -O breaks ping.c:in_cksum()

1999-11-15 Thread Bruce Evans
On Mon, 15 Nov 1999, Pierre Beyssac wrote: On Mon, Nov 15, 1999 at 01:35:15PM -0500, Garrett Wollman wrote: If, rather than casting pointers, the code used a union (containing one u_int16_t and one array[2] of u_int8_t), the compiler would have enough information to know about the

Re: egcs -O breaks ping.c:in_cksum()

1999-11-16 Thread Bruce Evans
On Tue, 16 Nov 1999, Pierre Beyssac wrote: On Tue, Nov 16, 1999 at 03:17:43PM +1100, Bruce Evans wrote: On Mon, 15 Nov 1999, Pierre Beyssac wrote: - volatile u_short answer = 0; + union { + u_int16_t us; + u_int8_t uc[2]; + } answer; This has indentation bugs

Re: sh bug

1999-11-17 Thread Bruce Evans
On Wed, 17 Nov 1999, Martin Cracauer wrote: I can now reproduce the problem. Please test the appended diff which should fix this problem while still working for the here-backquote-three-stage-pipeline case. My apology especially to Bruce, I managed to pass your test case by not

Re: init runs with console as control terminal?

1999-01-16 Thread Bruce Evans
On Thu, 18 Nov 1999, Peter Wemm wrote: Luoqi Chen wrote: Since sometime last month, rc5des failed to start from my rc.local. I did a little investigation and it turned out that rc5des was started but later terminated by a SIGHUP. During its brief lifetime, /dev/console was its control

Re: gdb trouble in 4.0-current

1999-11-22 Thread Bruce Evans
On Mon, 22 Nov 1999, Sheldon Hearn wrote: On Sat, 20 Nov 1999 20:24:47 EST, Wes Morgan wrote: (gdb) r Starting program: /usr/home/by-tor/mms-0.90/./mms warning: find_solib: Can't read pathname for load map: Bad address Segmentation fault (core dumped) You're not alone. The

Re: Netscape and -current

1999-11-23 Thread Bruce Evans
On Tue, 23 Nov 1999, Peter Wemm wrote: I'm pretty sure it's this commit to i386/machdep.c: === revision 1.377 date: 1999/11/21 14:46:43; author: pho; state: Exp; lines: +5 -5 Moved useracc() to top of sigreturn as to avoid panic caused by invalid arguments to rutine. Reviewed by:

Re: semi-HEADS-UP (dumpon now wants raw disk device)

1999-11-30 Thread Bruce Evans
On Tue, 30 Nov 1999, Thomas Stromberg wrote: [ache wrote]: " I see no needs of this change. I have -current dumpon/savecore work with old entrly like /dev/wd0... savecore understand both character and old block devices now. You must not have a very current -current :-). /dev/wd0 is a

Re: kernel: -mpreferred-stack-boundary=2 ??

1999-11-30 Thread Bruce Evans
On Tue, 30 Nov 1999, Marcel Moolenaar wrote: Matthew Dillon wrote: All I can say to that is "bleh". The real question is whether performance is actually improved significantly or not. If not, I'd sent a nasty email to the gcc folks :-) I guess only if you do have a PIII

Re: kernel: -mpreferred-stack-boundary=2 ??

1999-11-30 Thread Bruce Evans
On Wed, 1 Dec 1999, Dmitrij Tejblum wrote: Bruce Evans wrote: I would have expected the most generally efficient way to align doubles and the new PIII obkects to be aligning the stack only in functions that have such objects j on the stack. This requires at most one extra

Re: minor bug in ee?

1999-12-02 Thread Bruce Evans
On Thu, 2 Dec 1999 [EMAIL PROTECTED] wrote: I recently noticed that ^v (the scroll down a page command in ee) must be entered twice to scroll down once (i.e. if you hit ^v once it won't do anything, you must hit it again) on a 4.0-CURRENT system. As far as I can recall, this has been

Re: kernel: -mpreferred-stack-boundary=2 ??

1999-12-02 Thread Bruce Evans
On 2 Dec 1999, Ville-Pertti Keinonen wrote: ... Note that double-alignment vs. word-alignment can really have 30% performance impact, at least on an Athlon and one meaningless floating point microbenchmark (operations on small, fixed-sized matrices...maybe it isn't even *that* meaningless).

Re: kernel: -mpreferred-stack-boundary=2 ??

1999-12-02 Thread Bruce Evans
On 2 Dec 1999, Ville-Pertti Keinonen wrote: The times are for `time make depend; time make' after `make clean; sync; sleep 1' (2 times for each run). The stack may have been perfectly misaligned for the default gcc. It depends on the command line. It took me a while to figure out what

Re: wierd cpu usage numbers

2002-10-17 Thread Bruce Evans
On Thu, 17 Oct 2002, Kenneth Culver wrote: This is a result of what's explained there. Nope, I have all that stuff turned off, and ide write caching turned on. There's no way that's the reason. Ide write caching isn't even turned off by default as claimed in UPDATING. The entry 28-Feb-02

Re: RE: Dedicating an interrupt to a PC-Card slot

2002-10-17 Thread Bruce Evans
On Thu, 17 Oct 2002, Matthew Dillon wrote: :Doesn't sound like that fast an interrupt. The 16550 has a 16-byte :send and receive fifo. Set the rx interrupt @ 14, and the tx @ 2. :230400/8 = 28800 chars /s :28800 / 14 = 2057 interrupts / s. This should be well within reach :of a pentium-class

Re: 5.0 disklabel warnings against 4.7 disk

2002-10-26 Thread Bruce Evans
On Sat, 26 Oct 2002, John De Boskey wrote: I've (re)scanned my -current folder for issues related to the following but didn't see a good match. Pointing out my blindness is allowed if this was discussed... It's just another intentional incompatibility in GEOM. I have a system onto

Re: status of npx patch |= PCB_NPXINITDONE?

2002-10-27 Thread Bruce Evans
On Sat, 26 Oct 2002, Nate Lawson wrote: On Sun, 27 Oct 2002, Daniel Flickinger wrote: I placed your patch for npx in my kernel builds for 25 and 26 Oct ... I have not had xemacs under X lock-up since --and it was downright regular prior. Is this the reason? Will the

Re: Dynamic growth of the buffer and buffer page reclaim

2002-10-27 Thread Bruce Evans
On Mon, 28 Oct 2002, Seigo Tanimura wrote: On Thu, 24 Oct 2002 15:05:30 +1000 (EST), Bruce Evans [EMAIL PROTECTED] said: bde Almost exactly what we have. It turns out to be not very good, at least bde in its current implementation, since remapping is too expensive. Things bde work OK

Re: Lack of real long double support

2002-10-29 Thread Bruce Evans
On Mon, 28 Oct 2002, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Loren James Rittle [EMAIL PROTECTED] writes: This works. I'm not sure why this isn't the default. It looks like we have hacks in the local tree to do this, which is why I thought that it worked great by

Re: Lack of real long double support

2002-10-30 Thread Bruce Evans
On Wed, 30 Oct 2002, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bruce Evans [EMAIL PROTECTED] writes: : On Mon, 28 Oct 2002, M. Warner Losh wrote: : : In message: [EMAIL PROTECTED] : Loren James Rittle [EMAIL PROTECTED] writes: : : This works. I'm

Re: Lack of real long double support

2002-10-31 Thread Bruce Evans
On Wed, 30 Oct 2002, Terry Lambert wrote: This is the basis of Bruce's complaint: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1099099+0+archive/2002/freebsd-current/20021027.freebsd-current | gcc can't actually support the full range, since it doesn't control | the runtime environement

Re: Lack of real long double support

2002-10-31 Thread Bruce Evans
On Wed, 30 Oct 2002, M. Warner Losh wrote: The one issue that I've seen is long double a = 1.0L; long double b = 1.0L + LDBL_EPSION if (a == b) abort(); which is what I'm trying to fix. (note, 1.0L must be spelled oneld() and long double oneld() { return (1.0L);}) to avoid the

Re: Lack of real long double support

2002-10-31 Thread Bruce Evans
On Wed, 30 Oct 2002, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bruce Evans [EMAIL PROTECTED] writes: : The reasons are the same as they used to be: incomplete language support : and incomplete library support. Language support is being completed but : is far from here

Re: Lack of real long double support

2002-10-31 Thread Bruce Evans
On Thu, 31 Oct 2002, David Schultz wrote: Thus spake Bruce Evans [EMAIL PROTECTED]: $ cc -o z z.c $ ./z LDBL_EPSILON failed test 1 with prec 2 $ cc -O -o z z.c. $ ./z LDBL_EPSILON failed test 1 with prec 2 DBL_EPSILON failed test 2 with prec 3 %%% The full brokenness only

Re: Lack of real long double support

2002-10-31 Thread Bruce Evans
On Thu, 31 Oct 2002, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Terry Lambert [EMAIL PROTECTED] writes: : M. Warner Losh wrote: : : I await an explanation of how you can fit 2*DBL_MAX into a double, : : which has a range of DBL_MIN..DBL_MAX. : : Look at the code.

Re: Lack of real long double support

2002-10-31 Thread Bruce Evans
On Thu, 31 Oct 2002, Loren James Rittle wrote: In article [EMAIL PROTECTED], Bruce Evans[EMAIL PROTECTED] writes: When I run your program against gcc mainline (for 3.3 release) with the patch I have staged from RTH to correctly match our FP hardware default setup, I see: S rittle@latour

Re: GEOM gets whole disk geometry for slice (instead of slicegeometry)

2002-11-02 Thread Bruce Evans
On Sat, 2 Nov 2002, Andrey A. Chernov wrote: On Sun, Oct 27, 2002 at 03:37:47 +0300, Andrey A. Chernov wrote: I have disk shared between FreeBSD and M$ Win, two slices, and got incorrect disklabel with GEOM kernel. Namely cylinders and sectors/unit fields are from _whole_ disk, not from

Re: addition to cdefs

2002-11-13 Thread Bruce Evans
On Tue, 12 Nov 2002, Archie Cobbs wrote: Marc Recht [EMAIL PROTECTED] writes: I've had the attached patch in my tree for a while. I'll try and get it and the unistd.h patch committed today. static __inline void __fd_zero(fd_set *p, __size_t n) { n = _howmany(n,

Re: /dev/acd*t* no longer available in -current?

2002-11-14 Thread Bruce Evans
On Wed, 13 Nov 2002, Conrad Sabatier wrote: Please disregard. I discovered it was just that I was using single-digit track numbers (e.g., acd0t1), whereas leading-zero numbers were expected (e.g., acd0t01). Sorry 'bout that. :\ On 13-Nov-2002 Conrad Sabatier wrote: I've been using a

Re: Bug? vm.stats.sys.v_syscall not updated

2002-11-14 Thread Bruce Evans
On Thu, 14 Nov 2002, Borja Marcos wrote: There is a problem in -CURRENT. The vm.stats.sys.v_syscall from the system MIB is not updated. This variable was used at least by the systat command, and it happens to be used by an Orca (www.orcaware.com) data collector I am writing for FreeBSD.

Re: MORE: Re: Bug? vm.stats.sys.v_syscall not updated

2002-11-14 Thread Bruce Evans
On Thu, 14 Nov 2002, Borja Marcos wrote: Looking at the kernel sources, I see that in /usr/src/sys/i386/i386/trap.c, --- snip /* * note: PCPU_LAZY_INC() can only be used if we can afford * occassional inaccuracy in the count. */ PCPU_LAZY_INC(cnt.v_syscall);

Re: addition to cdefs

2002-11-15 Thread Bruce Evans
On Wed, 13 Nov 2002, Mike Barcroft wrote: Bruce Evans [EMAIL PROTECTED] writes: Both have large namespace pollution (p and n are in the application namespace). Both give huge code wih a copy of the function in every object file whose source file(s) include this header if inline functions

Re: /dev/acd*t* no longer available in -current?

2002-11-15 Thread Bruce Evans
On Fri, 15 Nov 2002, Sheldon Hearn wrote: On (2002/11/15 09:48), Soeren Schmidt wrote: Don't you think it makes more sense for the kernel to start off with more restrictive permissions, and have the administrator determine whether more restrictive permissions are appropriate?

Re: Kernel not booting....Immediate crash

2002-11-15 Thread Bruce Evans
On Sat, 9 Nov 2002, David Schultz wrote: Thus spake Mitsuru IWASAKI [EMAIL PROTECTED]: Hmmm, I didn't notice that there is a BIOS which requires memory area below 640K even when calling INT 15H/E820. We cannot trust that today's BOISes have INT 12H, so it's difficult to determine base

Re: machdep.c problem

2002-11-15 Thread Bruce Evans
On Sun, 10 Nov 2002, David Schultz wrote: Thus spake Mitsuru IWASAKI [EMAIL PROTECTED]: This approach is okay with me in the sense that it doesn't break anything that wasn't already broken, but as you say, I think we can do better. Below is a patch that merely extracts the basemem

Re: Sign fixes for disklabel(8)

2002-11-16 Thread Bruce Evans
On Sat, 16 Nov 2002, Tim Robbins wrote: On Fri, Nov 15, 2002 at 03:59:25PM -0800, Julian Elischer wrote: Here are the diffs to allow disklabel to correctly create partitions 1TB (up to 2TB is useful with UFS2) pending a different partitionning scheme. It also allows you to correctly make

Re: /dev/acd*t* no longer available in -current?

2002-11-16 Thread Bruce Evans
On Fri, 15 Nov 2002, Robert Watson wrote: So one thing we could start doing is have sysinstall's adduser stuff offer to place new users in the operator group, and set up the default permissions on removable devices such that the operator group has read/write access to them (or even just

Re: Sign fixes for disklabel(8)

2002-11-16 Thread Bruce Evans
On Sat, 16 Nov 2002, Julian Elischer wrote: On Fri, 15 Nov 2002, Nate Lawson wrote: In the overflow case, strtoul returns ULONG_MAX. Or if you're interested in catching invalid characters, use endptr. I'm not that interested in catching those cases.. they were not caught before and I'm

Re: SMP stability ? [was Re: more info from panic from running dneton SMP kernel]

2002-11-17 Thread Bruce Evans
On Sun, 17 Nov 2002, Robert Watson wrote: I've seen several reports that using a serial break to get into ddb is now quite a bit more reliable than a keyboard break. If you're not already This is a fact. In RELENG_4, the keyboard interrupt handler is a normal tty interrupt handler so it

Re: Device permissions with DEVFS

2002-11-18 Thread Bruce Evans
On Mon, 18 Nov 2002, Kris Kennaway wrote: Something that needs to be addressed before 5.0 is the insecure default permissions on many devices. For example, on my system, the following devices have insecure permissions on 5.0 (but not on 4.x with the default MAKEDEV settings): crw-r--r-- 1

Re: Device permissions with DEVFS

2002-11-18 Thread Bruce Evans
On Tue, 19 Nov 2002, Tim Robbins wrote: I'm glad you brought this up... I'd like to see /dev/devctl made mode 600 instead of 644 because it does not look very robust and because only one devctl can be open at a time. The two other security/reliability bugs I can see are that the async

Re: Device permissions with DEVFS

2002-11-19 Thread Bruce Evans
On Tue, 19 Nov 2002, Kris Kennaway wrote: On Tue, Nov 19, 2002 at 12:16:49AM -0800, Kip Macy wrote: Sorry, if I'm repeating something already said, but the tone of your mail would indicate that I'm not. This doesn't sound like an intrinsic limitation of devfs, just an issue with how it

Re: Bluetooth questions

2002-11-23 Thread Bruce Evans
On Fri, 22 Nov 2002, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Maksim Yevmenkin [EMAIL PROTECTED] writes: : : In message: [EMAIL PROTECTED] : Maksim Yevmenkin [EMAIL PROTECTED] writes: : : I see a lot of silo overflow errors under moderate load. : : As

Re: malloc(0) broken?

2002-11-23 Thread Bruce Evans
On Sat, 23 Nov 2002, David Schultz wrote: Thus spake Bruce Evans [EMAIL PROTECTED]: ... C90 has a bogus requirement that the pointer for malloc(0) be unique, whatever that means. C99 only requires that the objects pointed to by the results of malloc() be disjoint, and this is satisfied

Re: Bluetooth questions

2002-11-23 Thread Bruce Evans
On Sat, 23 Nov 2002, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bruce Evans [EMAIL PROTECTED] writes: : 56k is a silly speed to use. Why not use the normal speed of 57600 : bps or the faster speed of 115200 bps? I haven't got around to updating : the 57600

Re: buildworld fails on x86

2002-11-24 Thread Bruce Evans
On Mon, 25 Nov 2002, Dan Lukes wrote: The problem you hit is that the pthread stub functions as declared within src/lib/libc/gen/_pthread_stubs.c are optimized-out by -O3 causing undefined symbol errors later during build. I don't know if it is gcc's optimiser bug or there is something

Re: Polled mode with device.hints

2002-11-24 Thread Bruce Evans
On Sun, 24 Nov 2002, Marc Fonvieille wrote: Hello, I'm currently updating some part of the Handbook for 5.X, and I need to know how to put some ports like sio0 or ppc0 in polled mode. I did a search and tried some syntax like 0 for the irq etc. but no way to put something in polled mode or

Re: Polled mode with device.hints

2002-11-25 Thread Bruce Evans
On Mon, 25 Nov 2002, Marc Fonvieille wrote: [polled mode for sio0 and ppc0] But what about ppc0 ? I have to remove the IRQ line as well? (sorry I can't test now) I don't know exactly (I rarely use it). I also noted that lptcontrol(8) does not work under 4.X and 5.X. It seems that since

Re: MD broken in current

2002-11-26 Thread Bruce Evans
On 26 Nov 2002, Vladimir B. Grebenschikov wrote: # mdconfig -a -t vnode ./bootimg.bin mdconfig: ioctl(/dev/mdctl): Bad address This should be ... -t vnode -f ./bootimg.bin. The bug is just low quality option parsing. ./bootimg.bin is garbage when it is not preceded by -f, and garbage args

Re: MD broken in current

2002-11-26 Thread Bruce Evans
On Tue, 26 Nov 2002, Hiten Pandya wrote: There is also a problem, when the md(4) driver is passed a 0 byte file, i.e. mdconfig -a -t -vnode -f /tmp/mdimage.zero. It simply hangs the process in the `mddestroy' state, making it unkillable. David Wolfskill tested a patch, which I made. It

Re: ACLs on the boot partition?

2002-11-27 Thread Bruce Evans
On Tue, 26 Nov 2002, Robert Watson wrote: tunefs changes the flag for the next mount, so doesn't take immediate effect. Once you've tunefs'd a read-only file system, you need to unmount and remount it -- for the file system root, this generally means rebooting. Just to confirm: you're

Re: MD broken in current

2002-11-27 Thread Bruce Evans
On Wed, 27 Nov 2002, Ian Dowse wrote: In message [EMAIL PROTECTED], Bruce Evans writes: Better fix mddestroy(). I don't know why it hangs ... I guess it is because it is called before initialization is completed in mdinit(), and there aren't enough state checks in mddestroy(). I think

Re: ACLs on the boot partition?

2002-11-27 Thread Bruce Evans
On Wed, 27 Nov 2002, Robert Watson wrote: On Wed, 27 Nov 2002, Bruce Evans wrote: On Tue, 26 Nov 2002, Robert Watson wrote: tunefs changes the flag for the next mount, so doesn't take immediate effect. Once you've tunefs'd a read-only file system, you need to unmount and remount

Re: ACLs on the boot partition?

2002-11-27 Thread Bruce Evans
On Wed, 27 Nov 2002, Robert Watson wrote: On Thu, 28 Nov 2002, Bruce Evans wrote: On Tue, 26 Nov 2002, Robert Watson wrote: Er, what is the mount(..., MNT_RELOAD ...) in tunefs for then? The problem is that some flags can't be changed via MNT_RELOAD and require a from

Re: ext2fs and NFS exporting wackyness

2002-11-28 Thread Bruce Evans
On Thu, 28 Nov 2002, Emiel Kollof wrote: I'm having some odd trouble with exporting a ext2fs with NFS. ... Seems allright, no? Well, when I invoke or HUP mountd, the following happens: kernel: ext2fs doesn't support the old mount syscall mountd[344]: could not remount /storage: Operation

Re: Trivial patch: fdisk doesn't recognize my partitions

2002-11-28 Thread Bruce Evans
On Thu, 28 Nov 2002, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Riccardo Torrini write s: I have 4 primary partitions and I use a boot manager (magic.com) that install some black magic that hide unused partition, this permit to have multiple 'other-OS' partition that don't know

Re: deadlock on gohan11

2002-11-28 Thread Bruce Evans
On Thu, 28 Nov 2002, Kris Kennaway wrote: gohan11 deadlocked tonight..here is the ps trace from DDB. Can someone make sense of this? pid proc addruid ppid pgrp flag stat wmesgwchan cmd 94345 c4a40938 d8d220000 94336 51933 0004000 norm[LOCK Giant c044bcc0] sed

Re: Trashed Disk Labels

2002-11-29 Thread Bruce Evans
On Fri, 29 Nov 2002, Kirk McKusick wrote: I have had a report of a disk label getting trashed after booting up to a kernel with the new UFS2 superblock format. I have just checked in an update to ufs/ffs/ffs_vfsops.c (version 1.198) that explicitly checks to make sure that it will not trash

Re: suggested WARNS makefile magic

2002-11-29 Thread Bruce Evans
On Fri, 29 Nov 2002, Poul-Henning Kamp wrote: Right now, if I want to ensure that a particular program compiles with a WARNS level of no less than 3, I have to put this in the Makefile: WARNS?= 3 .if ${WARNS} 3 WARNS= 3 .endif Only in broken Makefiles. WARNS?=

Re: 5.0-DP2 questions

2002-11-29 Thread Bruce Evans
On Fri, 29 Nov 2002, David Syphers wrote: On Friday 29 November 2002 12:12 pm, Kris Kennaway wrote: On Fri, Nov 29, 2002 at 12:11:42PM -0500, Robert Ames wrote: 2. My machine is a Pentium 166 with only 16 MB of RAM. I'm trying to rebuild the kernel and so far the compile has been

  1   2   3   4   5   6   7   8   9   10   >