Aliasing bug in FICL (may break loader with gcc4.4)

2010-02-15 Thread Julian Stecklina
Hello, while porting FICL, I noticed an aliasing bug which manifests (at least) with gcc 4.4.2 and 4.4.3 when strict-aliasing is enabled. The root cause is #define LVALUEtoCELL(v) (*(CELL *)v) in sys/boot/ficl/ficl.h. CELL is a union: typedef union _cell { FICL_INT i; FICL_UNS u

Re: vfs.usermount=1, bug?

2004-02-07 Thread Joe Marcus Clarke
On Sat, 2004-02-07 at 15:18, Didier Wiroth wrote: Hi, using freebsd5.2-release I've set vfs.usermount=1 in sysctl.conf. Normal user get permission denied when trying to mount an ntfs permission (slice ars01), until root has mount and umount it at least once. See the following

Daily lockups on 5.2-BETA (maybe pst driver bug?)

2003-12-02 Thread Attila Nagy
Hello, I'm seeing daily lockups on an up to date -CURRENT machine. I've had the debugger already compiled in, but it didn't save a crashdump. The machine is mostly idle, it has only some IMAP mailboxes under cyrus. All I could save from the console is the following: pst: timeout mfa=0x002a5850

Re: Daily lockups on 5.2-BETA (maybe pst driver bug?)

2003-12-02 Thread Doug White
On Tue, 2 Dec 2003, Attila Nagy wrote: I'm seeing daily lockups on an up to date -CURRENT machine. I've had the debugger already compiled in, but it didn't save a crashdump. The machine is mostly idle, it has only some IMAP mailboxes under cyrus. It appears you have the hardware watchdog

Re: Daily lockups on 5.2-BETA (maybe pst driver bug?)

2003-12-02 Thread Attila Nagy
Doug White wrote: It appears you have the hardware watchdog enabled. Any reason you need that? It might be malfunctioning on your system. It's FreeBSD's WATCHDOG, and all I compiled that in is why I needed the machine to go. But it doesn't :-O It freezes without the watchdog completely. Also

bug in CD9660 path handling in libstand (effects boot code)

2003-12-01 Thread Matthew Dillon
This fixes a bug where an attempt to load a file path which contains an intermediate path element which is a file on the CD rather then a directory results in the file being accessed like a directory... which can lockup the boot code. The fix is simple. Check to see

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-26 Thread Maxime Henrion
Terry Lambert wrote: Stefan Farfeleder wrote: On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote: From: Jacques A. Vidrine [EMAIL PROTECTED] The application is broken. You must only check errno if you get an error indication from the library call. errno is only

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-26 Thread boyd, rounin
Wrong, strtol() can set errno in two cases, when the value is outside the range of representable values or when no conversion could be performed. well 'natch. it's trying to do math.h style hacks and overloads errno. iirc those sorts of things stem from V6/V7 on the PDP/11 when you may have

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-26 Thread Terry Lambert
Maxime Henrion wrote: Terry Lambert wrote: Wrong, counter-example: strtol(). Wrong; the standard specifies that the errno shall only be checked when the return value is -1. The exception in the strtol() case is only for presetting errno to 0 before you make the call, and making a

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-25 Thread boyd, rounin
From: Stefan Farfeleder [EMAIL PROTECTED] errno is meaningful for syscalls after an error (the original message). The fact that other functions also dink with errno is not relevant to that statement. I read boyd's statement as a contradiction to Jacques' one (only after syscall error

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-25 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], boyd, rounin write s: From: Stefan Farfeleder [EMAIL PROTECTED] errno is meaningful for syscalls after an error (the original message). The fact that other functions also dink with errno is not relevant to that statement. I read boyd's statement as a

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-25 Thread Enache Adrian
of the use of errno, that's unfortunate :-) The problem is that the emulated/wrapped close from libc_r does not behave like the real one. libc_r is leaking some of its guts (the tricks it's doing with O_NONBLOCK, etc) in the interface. This is technically a bug. The fix was trivial. Regards, Adi

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-25 Thread Daniel Eischen
. This is technically a bug. The fix was trivial. I don't see a bug. You don't check errno unless the return is -1. If the return is -1, then it must be because ret = __sys_close(fd) failed in which case errno will be set appropriately. Even so, there are other things to worry about aside from the fcntl

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-25 Thread Jacques A. Vidrine
) in the interface. This is technically a bug. The fix was trivial. Hello Enache, My point was that this is not technically a bug. According to IEEE Std 1003.1-2001 aka the Single Unix Specification Version 3 (``SUSv3'') aka POSIX, an application must not examine and interpret `errno' unless the library

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-25 Thread Terry Lambert
Stefan Farfeleder wrote: On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote: From: Jacques A. Vidrine [EMAIL PROTECTED] The application is broken. You must only check errno if you get an error indication from the library call. errno is only meaningful after a syscall error.

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-24 Thread Jacques A. Vidrine
On Sun, Nov 23, 2003 at 04:14:08PM +0200, Enache Adrian wrote: $ cc close.c -o close ./close 0 0 $ cc close.c -lc_r -o close ./close 0 25 $ cat close.c #include errno.h main() { int fd = open(/dev/null, 1); printf(%d\n, errno); close(fd);

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-24 Thread boyd, rounin
From: Jacques A. Vidrine [EMAIL PROTECTED] The application is broken. You must only check errno if you get an error indication from the library call. errno is only meaningful after a syscall error. it is also well known that stdio uses isatty(3) (or equivelant) that may set errno to ENOTTY.

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-24 Thread Stefan Farfeleder
On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote: From: Jacques A. Vidrine [EMAIL PROTECTED] The application is broken. You must only check errno if you get an error indication from the library call. errno is only meaningful after a syscall error. Wrong, counter-example:

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-24 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Stefan Farfeleder [EMAIL PROTECTED] writes: : On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote: : From: Jacques A. Vidrine [EMAIL PROTECTED] : The application is broken. You must only check errno if you get an : error indication from the

Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-24 Thread Stefan Farfeleder
On Mon, Nov 24, 2003 at 03:33:49PM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Stefan Farfeleder [EMAIL PROTECTED] writes: : On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote: : From: Jacques A. Vidrine [EMAIL PROTECTED] : The application is broken.

[PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

2003-11-23 Thread Enache Adrian
$ cc close.c -o close ./close 0 0 $ cc close.c -lc_r -o close ./close 0 25 $ cat close.c #include errno.h main() { int fd = open(/dev/null, 1); printf(%d\n, errno); close(fd); printf(%d\n, errno); } This confuses rather badly applications which assume errno is

Re: ppp RADIUS accounting bug

2003-11-19 Thread Boris Kovalenko
parameter, so if a have dowloaded 4.5G (for example) what number will send to radius? Regards, Boris Barney Wolff wrote: On Wed, Nov 19, 2003 at 09:00:01AM +0500, Boris Kovalenko wrote: I found a serious bug in RADIUS accounting code. The problem is that OctetsIn and OctetsOut are defined

Re: ppp RADIUS accounting bug

2003-11-19 Thread Michael Bretterklieber
Hi, On Wed, 19 Nov 2003, Boris Kovalenko wrote: Hello! Yes, unsigned, so we have 4G limit, which may simple be overflowed by (for example) PPPoE connection. Yes, RADIUS standard defines new attributes for big words, but current PPP does not supports it (it, so our knowledge about RFC is

Re: ppp RADIUS accounting bug

2003-11-19 Thread Boris Kovalenko
Hello! Standard PPP does not support UPDATE packets, and of course (as my RADIUS knowledge) the counters should not be resetted, because RADIUS updates the same record. Regards, Boris Michael Bretterklieber wrote: Hi, On Wed, 19 Nov 2003, Boris Kovalenko wrote: Hello! Yes,

Re: ppp RADIUS accounting bug

2003-11-19 Thread Michael Bretterklieber
Hi Boris, On Wed, 19 Nov 2003, Boris Kovalenko wrote: Hello! Standard PPP does not support UPDATE packets, and of course (as my but a patch could be written :-) RADIUS knowledge) the counters should not be resetted, because RADIUS updates the same record. The RFC says: 5.4.

Re: ppp RADIUS accounting bug

2003-11-19 Thread Boris Kovalenko
The RFC says: 5.4. Acct-Output-Octets blabla can only be present in Accounting-Request records where the Acct-Status-Type is set to Stop. It looks like, that these counters must not present in accounting updates. You are right, but your words - but a patch could be written :-).

Re: ppp RADIUS accounting bug

2003-11-19 Thread Michael Bretterklieber
Hi, On Wed, 19 Nov 2003, Boris Kovalenko wrote: The RFC says: 5.4. Acct-Output-Octets blabla can only be present in Accounting-Request records where the Acct-Status-Type is set to Stop. It looks like, that these counters must not present in accounting updates. You

Re: ppp RADIUS accounting bug

2003-11-19 Thread Boris Kovalenko
Hello! So sending interim update packets won't help. Like I said :) looking for someone who supervises my patch and commit it if no problems will be founded. this can be a problem :-) This is the problem now :) I'm wondering if I only one useing ppp with RADIUS accounting with FreeBSD.

Re: ppp RADIUS accounting bug

2003-11-19 Thread Barney Wolff
On Wed, Nov 19, 2003 at 09:00:01AM +0500, Boris Kovalenko wrote: I found a serious bug in RADIUS accounting code. The problem is that OctetsIn and OctetsOut are defined as unsingned long long, but the RADIUS supports only INT32 values, so, when we're doing rad_put_int(r-cx.rad

ppp RADIUS accounting bug

2003-11-18 Thread Boris Kovalenko
Hello! I found a serious bug in RADIUS accounting code. The problem is that OctetsIn and OctetsOut are defined as unsingned long long, but the RADIUS supports only INT32 values, so, when we're doing rad_put_int(r-cx.rad, RAD_ACCT_OUTPUT_OCTETS, stats-OctetsOut) in radius.c for OctetsOut

ifconfig bug

2003-11-15 Thread Lars Eggert
Hi, shouldn't this work? # ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \ ether 00:07:e9:0a:26:52 ifconfig: ether: bad value This is with today's -current, but this may have been around longer - I hadn't tried it before today. Using two commands to set MAC and IP addresses

Re: ifconfig bug

2003-11-15 Thread Stefan Farfeleder
On Sat, Nov 15, 2003 at 11:54:20AM -0800, Lars Eggert wrote: shouldn't this work? # ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \ ether 00:07:e9:0a:26:52 ifconfig: ether: bad value This is with today's -current, but this may have been around longer - I hadn't tried it

Re: ifconfig bug

2003-11-15 Thread Lars Eggert
Bruce M Simpson wrote: On Sat, Nov 15, 2003 at 11:54:20AM -0800, Lars Eggert wrote: shouldn't this work? # ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \ ether 00:07:e9:0a:26:52 ifconfig: ether: bad value This is with today's -current, but this may have been around longer - I

Re: xscreensaver bug?

2003-11-15 Thread Terry Lambert
Eugene M. Kim wrote: Validating a root password is possible with other means in many cases, if not always. OpenSSH sshd is a good example. Even with PermitRootLogin set to no, the attacker can differentiate whether the password has been accepted or not. That's because the software in

Re: ifconfig bug

2003-11-15 Thread Bruce M Simpson
On Sat, Nov 15, 2003 at 11:54:20AM -0800, Lars Eggert wrote: shouldn't this work? # ifconfig em0 inet 128.9.168.58 netmask 255.255.240.0 \ ether 00:07:e9:0a:26:52 ifconfig: ether: bad value This is with today's -current, but this may have been around longer - I hadn't tried it

Re: xscreensaver bug?

2003-11-14 Thread Terry Lambert
Craig Boston wrote: Absolutely worst case, the root user could log in remotely, gdb your screen saver, type foobar as the password, and then hack the authentication function return value to say yes, that's the correct password for [EMAIL PROTECTED], and get in without needing to have

Re: xscreensaver bug?

2003-11-14 Thread Terry Lambert
Eugene M. Kim wrote: Terry Lambert wrote: I'm new in FreeBSD. I found that after I lock screen with xscreensaver, I can unlock it with the root's password as well as my normal user's password. I don't think it is a good thing. Is it a bug? It is intentional, although you can eliminate

Re: xscreensaver bug?

2003-11-14 Thread Eugene M. Kim
Terry Lambert wrote: Eugene M. Kim wrote: Terry Lambert wrote: I'm new in FreeBSD. I found that after I lock screen with xscreensaver, I can unlock it with the root's password as well as my normal user's password. I don't think it is a good thing. Is it a bug? It is intentional, although you

Re: xscreensaver bug?

2003-11-13 Thread Terry Lambert
[EMAIL PROTECTED] wrote: I'm new in FreeBSD. I found that after I lock screen with xscreensaver, I can unlock it with the root's password as well as my normal user's password. I don't think it is a good thing. Is it a bug? It is intentional, although you can eliminate it with a recompile

Re: xscreensaver bug?

2003-11-13 Thread Craig Boston
Absolutely worst case, the root user could log in remotely, gdb your screen saver, type foobar as the password, and then hack the authentication function return value to say yes, that's the correct password for [EMAIL PROTECTED], and get in without needing to have xscreensaver accept the root

Re: xscreensaver bug?

2003-11-13 Thread Eugene M. Kim
Terry Lambert wrote: [EMAIL PROTECTED] wrote: I'm new in FreeBSD. I found that after I lock screen with xscreensaver, I can unlock it with the root's password as well as my normal user's password. I don't think it is a good thing. Is it a bug? It is intentional, although you can eliminate

xscreensaver bug?

2003-11-12 Thread jqdkf
Hi, I'm new in FreeBSD. I found that after I lock screen with xscreensaver, I can unlock it with the root's password as well as my normal user's password. I don't think it is a good thing. Is it a bug? Regards, -- Zeng Nan Simple is Beautiful

Re: xscreensaver bug?

2003-11-12 Thread Morten Rodal
[EMAIL PROTECTED] wrote: Hi, I'm new in FreeBSD. I found that after I lock screen with xscreensaver, I can unlock it with the root's password as well as my normal user's password. I don't think it is a good thing. Is it a bug? It is not a bug, but rather a feature of xscreensaver. It has

[Fwd: [Bug optimization/11741] internal compiler error at gcse.c:5318]

2003-11-08 Thread Jens Rehsack
Maybe at a good time the next snapshot should be imported into freebsd to get this fix, too :-) Some ports (eg. mysql40, apache) are switchable to high optimization where a bug in gcse could cause invalid code which will be removed with the patch for this bug. Original Message

Re: [Fwd: [Bug optimization/11741] internal compiler error at gcse.c:5318]

2003-11-08 Thread Alexander Kabaev
On Sat, 08 Nov 2003 17:08:10 + Jens Rehsack [EMAIL PROTECTED] wrote: Maybe at a good time the next snapshot should be imported into freebsd to get this fix, too :-) Some ports (eg. mysql40, apache) are switchable to high optimization where a bug in gcse could cause invalid code which

Small bug with pppctl

2003-11-07 Thread vze2ztys
Hello, I noticed that using pppctl interactively doesn't work quite right, at least for certain commands that produce a lot of output. I cut and pasted a few invocations to show what works and what doesn't quite work: $ pppctl /var/ppp/ppp PPP ON bogushost2 show route Destination

Bug: nmount(2) lacks parameter checking.

2003-11-04 Thread Peter Edwards
Hi, Looking over the code for nmount(), I think I noticed a few bugs. (tried send-pr, but the lack of a web-front-end at freebsd.org, and a decent mail system locally means that's not a runner) nmount() calls vfs_nmount() pretty much directly after copying in the io vector from userland.

Re: possible NIS/ACL bug?

2003-11-03 Thread Robert Watson
. So I assume this is an NIS/ACL bug of some kind? Both my uid and gid as well as both the gid's above (nes and loki) are mapped via NIS. If anyone needs me to do anything else, let me know. I don't feel nearly competent enough to start debugging the source for get/setfacl to try to grok any

Re: possible NIS/ACL bug?

2003-11-03 Thread Mark Nipper
On 03 Nov 2003, Robert Watson wrote: revision 1.11 date: 2003/07/24 23:33:25; author: rwatson; state: Exp; lines: +3 -2 Print group name in getfacl output when calculating an effective permission set based on a more restrictive mask. Duh. I need to add cvsweb to my list of

possible NIS/ACL bug?

2003-11-02 Thread Mark Nipper
I think I might have found a bug in ACL's under UFS2 with 5.1-RELEASE-p10. I have been using ACL's successfully for awhile now, but I'd never played with default ACL's for directories and files you create underneath said directories until I came across the daemon news article at: --- http

Re: possible NIS/ACL bug?

2003-11-02 Thread Mark Nipper
. Of course, looking at the example right after I sent the message, I see that the file inherited default UID's from the directory, not GID's, but blah, I assume it should still work the same either way? Or maybe it's a feature and not a bug. :) -- Mark Nipper

Re: bug in NSS ?

2003-10-21 Thread
my /usr/local/lib/sasl2/Sendmail.conf: pwcheck_method: auxprop auxprop_plugin: sasldb Is the Sendmail.conf file the same as the FreeBSD file on the Solaris 8 system? yes of course. On Solaris8 box and FreeBSD box i have a identical configuration. Does sasldblistusers2 on the

Re: bug in NSS ?

2003-10-20 Thread Scot W. Hetzel
From:[EMAIL PROTECTED] I have a problem with nss_ldap on FreeBSD. After tranfer users from /etc/passwd to ldap directories my users cannot send a mail via /usr/bin/mail | /usr/sbin/sendmail program: : Any ideas ? What are the contents of the /usr/local/lib/sasl*/Sendmail.conf file? Is

Re: bug in NSS ?

2003-10-20 Thread Alex Deiter
I have a problem with nss_ldap on FreeBSD. After tranfer users from /etc/passwd to ldap directories my users cannot send a mail via /usr/bin/mail | /usr/sbin/sendmail program: What are the contents of the /usr/local/lib/sasl*/Sendmail.conf file? Is pwcheck_method set to saslauthd, or sasldb?

Re: bug in NSS ?

2003-10-20 Thread Scot W. Hetzel
From: Alex Deiter [EMAIL PROTECTED] I have a problem with nss_ldap on FreeBSD. After tranfer users from /etc/passwd to ldap directories my users cannot send a mail via /usr/bin/mail | /usr/sbin/sendmail program: What are the contents of the /usr/local/lib/sasl*/Sendmail.conf file? Is

Re: bug in NSS ?

2003-10-20 Thread Scot W. Hetzel
From: Scot W. Hetzel [EMAIL PROTECTED] From: Alex Deiter [EMAIL PROTECTED] I have a problem with nss_ldap on FreeBSD. After tranfer users from /etc/passwd to ldap directories my users cannot send a mail via /usr/bin/mail | /usr/sbin/sendmail program: What are the contents of the

Bug in make release regarding install.cfg

2003-09-14 Thread Maxim Sobolev
Folks, I've noted that the following inconsistency exists in make release. If there is a install.cfg file in /usr/src/release when executing make release (the file which if exists is placed into the root of mfs and customises behaviour of sysinstall), /usr/src/release/install.cfg takes

Re: GCC tickling obscure hardware bug or...?

2003-09-13 Thread Anthony Ginepro
and then setting them back again). My hunch is that some hardware bug is being tickled by gcc somehow. I don't think it's the standard broken hardware thing because I've not received any signal 11/7/4 errors at all and the system runs wonderfully. So far it's been up for over 24 hours

GCC tickling obscure hardware bug or...?

2003-09-12 Thread Scott Reese
the problem (actually, I've had greater success leaving my CFLAGS set to -O2 -pipe and occasionally bringing them back to -O -pipe when I run into an ICE and then setting them back again). My hunch is that some hardware bug is being tickled by gcc somehow. I don't think it's the standard broken

Re: GCC tickling obscure hardware bug or...?

2003-09-12 Thread culverk
the CFLAGS from -O to -O2 or vice-versa works around the problem (actually, I've had greater success leaving my CFLAGS set to -O2 -pipe and occasionally bringing them back to -O -pipe when I run into an ICE and then setting them back again). My hunch is that some hardware bug is being tickled

Re: GCC tickling obscure hardware bug or...?

2003-09-12 Thread Jens Rehsack
that toggling the CFLAGS from -O to -O2 or vice-versa works around the problem (actually, I've had greater success leaving my CFLAGS set to -O2 -pipe and occasionally bringing them back to -O -pipe when I run into an ICE and then setting them back again). My hunch is that some hardware bug is being

Re: GCC tickling obscure hardware bug or...?

2003-09-12 Thread Scott Reese
them back again). My hunch is that some hardware bug is being tickled by gcc somehow. I don't think it's the standard broken hardware thing because I've not received any signal 11/7/4 errors at all and the system runs wonderfully. So far it's been up for over 24 hours, compiling ports

dhclient bug

2003-09-09 Thread Tobias Roth
after the timeout, not 2. can someone verify this? is it a bug that must be fixed from the freebsd side or should a bug report to the isc-dhcp people? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe

Re: dhclient bug

2003-09-09 Thread Martin Blapp
Hi, with a missing dhcpserver or non-existent interface, this works. however, it does not when i unplug the ethernet cable. in that case, i get back true after the timeout, not 2. can someone verify this? is it a bug that must be fixed from the freebsd side or should a bug report to the isc

Re: patch for ATAng bug

2003-09-08 Thread Soren Schmidt
It seems David Gilbert wrote: I submitted kern/56572 a few minutes ago. It patches ata-disk.c to reject a disk that has zero blocks. This is a good thing ... malicious or broken disks (compact flash, whatever) shouldn't crash machines. But in this case, the detected ad3 doesn't exist.

Re: patch for ATAng bug

2003-09-08 Thread David Gilbert
Soren == Soren Schmidt [EMAIL PROTECTED] writes: Soren It seems David Gilbert wrote: I submitted kern/56572 a few minutes ago. It patches ata-disk.c to reject a disk that has zero blocks. This is a good thing ... malicious or broken disks (compact flash, whatever) shouldn't crash

Re: patch for ATAng bug

2003-09-08 Thread Soren Schmidt
It seems David Gilbert wrote: Soren Uhm, I'm working on finding the real problem, and I'd like that Soren to be the solution. However the above may be a good workaround Soren for those bitten by this... Well... is it not possible for malicious hardware to claim to have zero blocks (by

cosmetic bug in newsyslog ?

2003-09-07 Thread Putinas
Hi all, maybe not really proper mailling list, I just cvsuped 4.9 prerelease and funny thing with syslog this is newsyslog.conf /var/log/httpd-referer.log 644 20*$M1D0 BZ /var/run/httpd.pid 30 this is newsyslog -v output /var/log/httpd-referer.log 20Z: -- will

patch for ATAng bug

2003-09-07 Thread David Gilbert
I submitted kern/56572 a few minutes ago. It patches ata-disk.c to reject a disk that has zero blocks. This is a good thing ... malicious or broken disks (compact flash, whatever) shouldn't crash machines. But in this case, the detected ad3 doesn't exist. The machine is a laptop with a drive

Bug in nss compat code?

2003-08-14 Thread James F. Hranicky
-src/obj/private/freebsd-src/src/sys/CISEKERN i386 1) getnetgrent still seems to ignore the NIS netgroup maps and only uses /etc/netgroup. A '+' as the only entry in /etc/netgroup does not force an NIS netgroup map lookup. This bug has been reported in the 4.x tree as well. 2

Counterstrike server root hole bug

2003-08-14 Thread SKU
Greetings, I have not seen anyone discussing this issue and was wonering if anyone had seen the nasty current counterstrike hack that is making it's way around the net?

acpica/acfreebsd.h bug with boot code (stand.h)

2003-08-11 Thread Andrey Chernov
/usr/src/sys/contrib/dev/acpica/acfreebsd.h includes ctype.h which is incompatible with its redefinition in /usr/include/stand.h As result we got: === i386/libi386 cc -O -pipe -march=pentium3 -ffreestanding -DCOMPORT=0x3f8 -DCOMSPEED=9600 -DTERM_EMU -I/usr/src/sys/boot/i386/libi386/../../common

Re: acpica/acfreebsd.h bug with boot code (stand.h)

2003-08-10 Thread Daniel C. Sobral
Andrey Chernov wrote: /usr/src/sys/contrib/dev/acpica/acfreebsd.h includes ctype.h which is incompatible with its redefinition in /usr/include/stand.h As result we got: === i386/libi386 cc -O -pipe -march=pentium3 -ffreestanding -DCOMPORT=0x3f8 -DCOMSPEED=9600 -DTERM_EMU

Bug in GEOM or in gstat?

2003-08-04 Thread Lukas Ertl
Hi there, when running gstat I'm seeing things like this: dT: 0.509 flag_I 50us sizeof 240 i -1 L(q) ops/sr/s kBps ms/rw/s kBps ms/w %busy Name 1189149 21136.2 39785 20.6 87.8| da0 1226218 8891 14.2 8785 24.6

Re: Bug in GEOM or in gstat?

2003-08-04 Thread Poul-Henning Kamp
Hi Lucas, Which versions ? 5.0, 5.1 or -current ? Does the large numbers persist when the system is idle, or do they fall back to zero ? Poul-Henning In message [EMAIL PROTECTED], Lukas Ertl writes: Hi there, when running gstat I'm seeing things like this: dT: 0.509 flag_I 50us

Re: Bug in GEOM or in gstat?

2003-08-04 Thread Lukas Ertl
On Mon, 4 Aug 2003, Poul-Henning Kamp wrote: Hi Lucas, Which versions ? 5.0, 5.1 or -current ? CURRENT from this morning CEST. Does the large numbers persist when the system is idle, or do they fall back to zero ? This is a snapshot from an idle system: dT: 0.510 flag_I 50us

Re: Bug in GEOM or in gstat?

2003-08-04 Thread Lukas Ertl
On Mon, 4 Aug 2003, Lukas Ertl wrote: This is a snapshot from an idle system: dT: 0.510 flag_I 50us sizeof 240 i -1 0 0 0 00.0 0 00.00.0| da0s1f 4294967293 4 0 00.0 4 63 10.6 561.0| da0s1g 0 0 0

Re: Revised version (was Re: Serious 'tr' bug, patch for reviewincluded)

2003-08-03 Thread Andrey Chernov
On Fri, Aug 01, 2003 at 06:37:03 +0400, Andrey Chernov wrote: On Fri, Aug 01, 2003 at 04:44:08 +0400, Andrey Chernov wrote: This patch address two problems. Revides patch version with accurate skipping. Surprisingly, the code is reduced. If you ever plan, don't try this patch, use

vinum bug? (Re: Yet another crash in FreeBSD 5.1)

2003-08-02 Thread Kris Kennaway
On Sat, Aug 02, 2003 at 10:11:24AM +0200, Eivind Olsen wrote: db trace g_dev_strategy(c2156024,c2153800,0,cfb528d0,c2099eca) at g_dev_strategy+0x29 launch_requests(c299bf00,0,1,,47) at launch_requests+0x448 vinumstart(c5ada2d0,0,c22ab000,cfb5294c,c02e5bc6) at vinumstart+0x2b2

Re: vinum bug? (Re: Yet another crash in FreeBSD 5.1)

2003-08-02 Thread Bernd Walter
vinumstart(c5ada2d0,0,c22ab000,cfb5294c,c02e5bc6) at vinumstart+0x2b2 vinumstrategy(c5ada2d0,0,c09719b0,40,0) at vinumstrategy+0xa6 Looks like a problem in vinum. The other backtrace was the same, right? Please take a look at an older thread named (IIRC) vinum or geom bug? Greg asked for special

Re: vinum bug? (Re: Yet another crash in FreeBSD 5.1)

2003-08-02 Thread Eivind Olsen
[Sending to [EMAIL PROTECTED], and Kris copied in Greg so I'll also do that] --On 2. august 2003 02:00 -0700 Kris Kennaway [EMAIL PROTECTED] wrote: db trace g_dev_strategy(c2156024,c2153800,0,cfb528d0,c2099eca) at g_dev_strategy+0x29 launch_requests(c299bf00,0,1,,47) at

Re: vinum bug? (Re: Yet another crash in FreeBSD 5.1)

2003-08-02 Thread Eivind Olsen
--On 2. august 2003 11:16 +0200 Bernd Walter [EMAIL PROTECTED] wrote: Looks like a problem in vinum. The other backtrace was the same, right? Please take a look at an older thread named (IIRC) vinum or geom bug? Greg asked for special debug output, but it never happened again for me. A real

Re: Serious 'tr' bug, patch for review included

2003-08-01 Thread Tim Robbins
On Fri, Aug 01, 2003 at 06:12:13AM +0400, Andrey Chernov wrote: On Fri, Aug 01, 2003 at 12:02:04 +1000, Tim Robbins wrote: 8 bits by casting to char. Using charcoll() to sort char arrays may work on little endian machines, but may not on big endian machines. s-set is array of ints, not

[BUG REPORT] Off by one error in initializing unit number forPCCARD NICs in both recent 4.8-STABLE and 5.1-RELEASE

2003-08-01 Thread John Merryweather Cooper
Because of the nature of this bug, I have no network access on my FreeBSD machine and so I'm filing this off my wife's laptop. I can't send-pr in any other manner. Would someone please post this SYSTEM IBM 380XD Thinkpad Laptop running either a recent (post-May) 4.8-STABLE or 5.1-RELEASE (off

[Bug c++/11735] [3.3 Regression] internal compiler error:Segmentation fault

2003-07-31 Thread Kai Mosebach
Here about the latest bug, i was telling about ... Regards Kai -Ursprüngliche Nachricht- Von: pinskia at physics dot uc dot edu [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 31. Juli 2003 01:45 An: [EMAIL PROTECTED] Betreff: [Bug c++/11735] [3.3 Regression] internal compiler error

Serious 'tr' bug, patch for review included

2003-07-31 Thread Andrey Chernov
This patch address two problems. 1st one is relatively minor: according our own manpage, upper and lower classes must be sorted, but currently not. 2nd one is serious: tr '[:lower:]' '[:upper:]' (and vice versa) currently works only if upper and lower classes have exact the same number

Re: Serious 'tr' bug, patch for review included

2003-07-31 Thread Tim Robbins
On Fri, Aug 01, 2003 at 04:44:08AM +0400, Andrey Chernov wrote: @@ -208,10 +210,18 @@ if ((func)(cnt)) *p++ = cnt; *p = OOBCH; + n = p - cp-set; s-cnt = 0; - s-state = SET; s-set = cp-set; + if (strcmp(s-str, upper) ==

Re: Serious 'tr' bug, patch for review included

2003-07-31 Thread Andrey Chernov
On Fri, Aug 01, 2003 at 12:02:04 +1000, Tim Robbins wrote: 8 bits by casting to char. Using charcoll() to sort char arrays may work on little endian machines, but may not on big endian machines. s-set is array of ints, not array of chars. In any case thanx for looking. Also, watch out for

Revised version (was Re: Serious 'tr' bug, patch for reviewincluded)

2003-07-31 Thread Andrey Chernov
On Fri, Aug 01, 2003 at 04:44:08 +0400, Andrey Chernov wrote: This patch address two problems. Revides patch version with accurate skipping. Surprisingly, the code is reduced. Only in .: CVS diff -u ./extern.h /usr/src/usr.bin/tr/extern.h --- ./extern.h Fri Jun 14 19:56:52 2002 +++

bug in big pipe code causing performance problems

2003-07-30 Thread Pierre Beyssac
Hello, If no one objects to it, I'd like to commit the following ASAP. It fixes an obvious bug in the big pipe code, a discrepancy between how free space is calculated in write vs poll. The bug affects stable as well. The bug's implications are less obvious: it make write(2) on a non-blocking

Re: bug in big pipe code causing performance problems

2003-07-30 Thread Pierre Beyssac
On Wed, Jul 30, 2003 at 11:32:49PM +0200, Pierre Beyssac wrote: - if (space 0 (wpipe-pipe_buffer.cnt PIPE_SIZE)) { + if (space 0 + wpipe-pipe_buffer.cnt wpipe-pipe_buffer.size) { PS : not-so-obvious after all since the above is equivalent to (space

Re: bug in big pipe code causing performance problems

2003-07-30 Thread Mike Silbersack
On Wed, 30 Jul 2003, Pierre Beyssac wrote: On Wed, Jul 30, 2003 at 11:32:49PM +0200, Pierre Beyssac wrote: - if (space 0 (wpipe-pipe_buffer.cnt PIPE_SIZE)) { + if (space 0 +wpipe-pipe_buffer.cnt wpipe-pipe_buffer.size) { PS : not-so-obvious

Re: possible unionfs bug

2003-07-23 Thread David Schultz
On Sun, Jul 20, 2003, Divacky Roman wrote: Hi, I might be wrong but this: free(mp-mnt_data, M_UNIONFSMNT); /* XXX */ mp-mnt_data = 0; seems to me wrong and might cause crashes etc. am I correct or wrong? its from union_vfsops.c:384 What's wrong with

possible unionfs bug

2003-07-20 Thread Divacky Roman
Hi, I might be wrong but this: free(mp-mnt_data, M_UNIONFSMNT); /* XXX */ mp-mnt_data = 0; seems to me wrong and might cause crashes etc. am I correct or wrong? its from union_vfsops.c:384 thnx Roman Divacky ___

Re: possible unionfs bug

2003-07-20 Thread Pawel Jakub Dawidek
On Sun, Jul 20, 2003 at 03:02:21PM +0200, Divacky Roman wrote: + I might be wrong but this: + + free(mp-mnt_data, M_UNIONFSMNT); /* XXX */ + mp-mnt_data = 0; + + seems to me wrong and might cause crashes etc. + am I correct or wrong? Could you describe scenario when

Re: HPT372 bug summary [was: RE: escalation stage 2]

2003-07-18 Thread Terry Lambert
Harald Schmalzbauer wrote: Please forget that. It was because for convinience reasons I had turned the 80-pin ATA cables upside down. So the black was at the controller and the blue at the drive. I can't imagine that this makes any technical difference (as long as no slave drive is connected

Re: HPT372 bug summary [was: RE: escalation stage 2]

2003-07-18 Thread Soeren Schmidt
It seems Harald Schmalzbauer wrote: I also think the RAID configuration is stored on the disks since when I create a non-DOS compatible slice (starting at 0 not 63) the RAID configuration vanishes. Yes the Highpoint BIOS uses sector 9 to hold the RAID config, so if you use that for other

Re: HPT372 bug summary [was: RE: escalation stage 2]

2003-07-18 Thread Marcin Dalecki
Harald Schmalzbauer wrote: Harald Schmalzbauer wrote: Ok, like I thought, the disk was not defect. There seems to be a bug in ata regarding HPT372 First: Wiht BIOS version 2.342 the secondary master disk id is incorrectly detected (something liek X X X X X X X X X X X X X X X instead

RE: HPT372 bug summary [was: RE: escalation stage 2]

2003-07-18 Thread Harald Schmalzbauer
Soeren Schmidt wrote: which is named FreeBSD) And that's why FreeBSD panics until I delete the mirror relationship. Well Highpoints way of dealing with broken arrays and lost disks are less than optimal, I've tried to do my best in the ATA driver to fool the HPT system, but its not

Re: FW: escalation stage 2 [was:RE: Big and ugly bug in 5.1-release]

2003-07-17 Thread Andre Guibert de Bruet
Harald, When in doubt, install freebsd 5.x on a different drive running off of a different controller, mount the slices from one of the disks in the RAID array and copy your data to a safe and trusted location. Regards, Andre Guibert de Bruet | Enterprise Software Consultant Silicon

<    2   3   4   5   6   7   8   9   10   11   >