Kernel panic -- Memory modified after free

2012-07-08 Thread Justin Hibbits
I upgraded my kernel yesterday, after testing alc@'s patch for mmu_oea (PowerPC 32-bit, AIM), and now I'm seeing the kernel panic in the subject. Unfortunately, I didn't keep my knonw-good working kernel from prior to testing alc@'s patch, so the most recent kernel I have that works is from over a

Re: panic after starting X with r238120

2012-07-08 Thread Jean-Sébastien Pédron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08.07.2012 05:14, Steve Wills wrote: > For what it's worth, I discovered that twm and xterm don't trigger > the issue, but konsole and other kde things do, which is what led > me to discover that setting kern.ipc.shm_use_phys back to default > fixed

Re: Occassional "permission denied" in the middle of a large transfer over NFS

2012-07-08 Thread Vincent Hoffman
On 08/07/2012 00:26, Rick Macklem wrote: > Vincent Hoffman wrote: >> >> Hi Rick, >> >> I'm afraid this didnt make any real difference for me. >> Since I couldnt test it on the live system I tried it on a test vm. >> on the vm (nfs server) I set a looping mount/umount >> while true ; do mount /dev/m

sleeping thread panic?

2012-07-08 Thread Michael Butler
Sorry, no symbols but this happened twice last night while being the target of a dump over NFS .. root@mail:/var/crash # less info.0 Dump header from device /dev/ada0s1 Architecture: i386 Architecture Version: 2 Dump Length: 252809216B (241 MB) Blocksize: 512 Dumptime: Sun Jul 8 00:21:2

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread David Schultz
On Tue, May 29, 2012, Peter Jeremy wrote: > On 2012-May-28 15:54:06 -0700, Steve Kargl > wrote: > >Given that cephes was written years before C99 was even > >conceived, I suspect all functions are sub-standard. > > Well, most of cephes was written before C99. The C99 parts of > cephes were writ

Re: panic after starting X with r238120

2012-07-08 Thread Konstantin Belousov
On Sun, Jul 08, 2012 at 10:16:44AM +0200, Jean-S?bastien P?dron wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08.07.2012 05:14, Steve Wills wrote: > > For what it's worth, I discovered that twm and xterm don't trigger > > the issue, but konsole and other kde things do, which is w

Re: sleeping thread panic?

2012-07-08 Thread Konstantin Belousov
On Sun, Jul 08, 2012 at 08:46:32AM -0400, Michael Butler wrote: > Sorry, no symbols but this happened twice last night while being the > target of a dump over NFS .. > > root@mail:/var/crash # less info.0 > Dump header from device /dev/ada0s1 > Architecture: i386 > Architecture Version: 2 >

Re: sleeping thread panic?

2012-07-08 Thread Michael Butler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/08/12 09:34, Konstantin Belousov wrote: > On Sun, Jul 08, 2012 at 08:46:32AM -0400, Michael Butler wrote: >> Sorry, no symbols but this happened twice last night while being the >> target of a dump over NFS .. >> >> root@mail:/var/crash # less in

Re: sleeping thread panic?

2012-07-08 Thread Konstantin Belousov
On Sun, Jul 08, 2012 at 09:46:09AM -0400, Michael Butler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 07/08/12 09:34, Konstantin Belousov wrote: > > On Sun, Jul 08, 2012 at 08:46:32AM -0400, Michael Butler wrote: > >> Sorry, no symbols but this happened twice last night while be

XSAVEOPT

2012-07-08 Thread Konstantin Belousov
Please find at http://people.freebsd.org/~kib/misc/xsaveopt.1.patch a patch to finally add suport for using XSAVEOPT for our amd64 context switch code. See Intel SDM for description of the XSAVEOPT instruction. Summary is that the instruction allows to not write parts of the FPU state which was no

Re: sleeping thread panic?

2012-07-08 Thread Michael Butler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/08/12 10:31, Konstantin Belousov wrote: > Catch it next time ? This should be quite reproducable, if real. > > Actually, try this. > > diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c > index 9485fdd..de33afc 100644 > --- a/sys/vm/vm_page

Re: sleeping thread panic?

2012-07-08 Thread Michael Butler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/08/12 11:18, Michael Butler wrote: > On 07/08/12 10:31, Konstantin Belousov wrote: >> Catch it next time ? This should be quite reproducable, if real. > >> Actually, try this. > >> diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c >> index

Re: sleeping thread panic?

2012-07-08 Thread Konstantin Belousov
On Sun, Jul 08, 2012 at 12:57:39PM -0400, Michael Butler wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 07/08/12 11:18, Michael Butler wrote: > > On 07/08/12 10:31, Konstantin Belousov wrote: > >> Catch it next time ? This should be quite reproducable, if real. > > > >> Actually,

Re: Occassional "permission denied" in the middle of a large transfer over NFS

2012-07-08 Thread Vincent Hoffman
On 07/07/2012 13:26, Vincent Hoffman wrote: > On 01/07/2012 12:18, Rick Macklem wrote: >> Vincent Hoffman wrote: >>> On 01/07/2012 01:53, Rick Macklem wrote: To modify mountd to use the kernel changes is more work than I have time for, in part because mountd.c is a very ugly old piece of

Re: sleeping thread panic?

2012-07-08 Thread Alan Cox
On 07/08/2012 11:59, Konstantin Belousov wrote: On Sun, Jul 08, 2012 at 12:57:39PM -0400, Michael Butler wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/08/12 11:18, Michael Butler wrote: On 07/08/12 10:31, Konstantin Belousov wrote: Catch it next time ? This should be quite reprod

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 6:40 AM, David Schultz wrote: > On Tue, May 29, 2012, Peter Jeremy wrote: >> On 2012-May-28 15:54:06 -0700, Steve Kargl >> wrote: >>> Given that cephes was written years before C99 was even >>> conceived, I suspect all functions are sub-standard. >> >> Well, most of cephes w

Re: panic after starting X with r238120

2012-07-08 Thread Alan Cox
On Sun, Jul 8, 2012 at 3:16 AM, Jean-Sébastien Pédron wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08.07.2012 05:14, Steve Wills wrote: > > For what it's worth, I discovered that twm and xterm don't trigger > > the issue, but konsole and other kde things do, which is what led >

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Stephen Montgomery-Smith
Here is a technical question. I know that people always talk about ulp's in the context of how good a function implementation is. I think the ulp is the number of base 2 digits at the end of the mantissa that we cannot rely on. So if one were to write a naive implementation of lexp(x) that u

Re: [CFT] Xorg 7.7 ready for testing!

2012-07-08 Thread Alexander Yerenkow
Hello All! I'm created unofficial pkg repo for patched xorg tree. I'm still experimenting with it, but I already have built all required packages for CURRENT i386. You can find it here: http://pkgng.gits.kiev.ua/packages/test10-32-kmsxorg/ If anyone want to test new xorg, you can install all req

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Steve Kargl
On Sun, Jul 08, 2012 at 11:51:56AM -0600, Warner Losh wrote: > > On Jul 8, 2012, at 6:40 AM, David Schultz wrote: > > > On Tue, May 29, 2012, Peter Jeremy wrote: > >> On 2012-May-28 15:54:06 -0700, Steve Kargl > >> wrote: > >>> Given that cephes was written years before C99 was even > >>> conce

Re: Occassional "permission denied" in the middle of a large transfer over NFS

2012-07-08 Thread Rick Macklem
Vincent Hoffman wrote: > On 07/07/2012 13:26, Vincent Hoffman wrote: > > On 01/07/2012 12:18, Rick Macklem wrote: > >> Vincent Hoffman wrote: > >>> On 01/07/2012 01:53, Rick Macklem wrote: > To modify mountd to use the kernel changes is more work than I > have > time for, in part bec

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread David Schultz
On Sun, Jul 08, 2012, Steve Kargl wrote: > > > The question remains of what to do about the missing functions. Bruce > > > and Steve have been working on expl and logl for years. If those ever > > > get in the tree, the remaining long double functions are easy. Those > > > functions are basicall

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Steve Kargl
On Sun, Jul 08, 2012 at 02:06:46PM -0500, Stephen Montgomery-Smith wrote: > Here is a technical question. I know that people always talk about > ulp's in the context of how good a function implementation is. I think > the ulp is the number of base 2 digits at the end of the mantissa that > we

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Stephen Montgomery-Smith
On 07/08/2012 06:58 PM, Steve Kargl wrote: On Sun, Jul 08, 2012 at 02:06:46PM -0500, Stephen Montgomery-Smith wrote: So do people really work hard to get that last drop of ulp out of their calculations? I know very few scientist who work hard to reduce the ULP. Most have little understandin

Re: Occassional "permission denied" in the middle of a large transfer over NFS

2012-07-08 Thread Rick Macklem
Vincent Hoffman: > On 08/07/2012 00:26, Rick Macklem wrote: > > Vincent Hoffman wrote: > >> > >> Hi Rick, > >> > >> I'm afraid this didnt make any real difference for me. > >> Since I couldnt test it on the live system I tried it on a test vm. > >> on the vm (nfs server) I set a looping mount/umoun

newbus' ivar's limitation..

2012-07-08 Thread Arnaud Lacombe
Hi folks, Ok, yet another Newbus' limitation. Assuming a device exports more than one interface, and one of its child has need to use more than one interface, each interfaces cannot register, concurrently, its own ivar. While I try to always have a single child per interface/resource, I need to ke

Re: panic after starting X with r238120

2012-07-08 Thread Steve Wills
On 07/08/12 13:56, Alan Cox wrote: > > >> In r237513 on 6/23 I made a mistake that was corrected in r238124 on 7/5. >> I can vaguely see a connection between kern.ipc.shm_use_phys and the >> problem fixed in r238124. So, I'd like to know if this problem still >> exists. Wait, however, until you

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Steve Kargl
On Sun, Jul 08, 2012 at 07:29:30PM -0500, Stephen Montgomery-Smith wrote: > On 07/08/2012 06:58 PM, Steve Kargl wrote: > >On Sun, Jul 08, 2012 at 02:06:46PM -0500, Stephen Montgomery-Smith wrote: > > >>So do people really work hard to get that last drop of ulp out of their > >>calculations? > > >

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: > Ok, yet another Newbus' limitation. Assuming a device exports more > than one interface, and one of its child has need to use more than one > interface, each interfaces cannot register, concurrently, its own > ivar. While I try to always have a s

Build error on CURRENT

2012-07-08 Thread Matthew Fleming
I'm getting a compile error during buildworld here: ===> libexec/atrun (all) cc -g -DATJOB_DIR=\"/var/at/jobs/\" -DLFILE=\"/var/at/jobs/.lockfile\" -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\" -DVERSION=\"2.9\" -DDAEMON_UID=1 -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' -DDEFAULT_AT_QUEUE

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 8:01 PM, Steve Kargl wrote: > Not to mention, I've seen way too many examples of 'x - y' > where cancellation of significant digits causes > problems. Throw in rather poor estimates of function > results with real poor ULP and you have problems. Are these problems significantl

Re: Java and NIO?

2012-07-08 Thread George Neville-Neil
On Jul 5, 2012, at 10:38 , George Neville-Neil wrote: > > On Jul 4, 2012, at 15:49 , Greg Lewis wrote: > >> On Tue, Jul 03, 2012 at 11:38:23AM -0700, Waitman Gobble wrote: >>> g...@freebsd.org wrote .. Howdy, Can someone tell me if anyone is working on this Java NIO bug? >

Re: Java and NIO?

2012-07-08 Thread Doug Barton
On 07/08/2012 19:33, George Neville-Neil wrote: > A followup. zookeeper is now ported to Freebsd (/usr/ports/devel/zookeeper) George, did you see the PR and the followup from me regarding the port? -- This .signature sanitized for your protection _

Re: Java and NIO?

2012-07-08 Thread George Neville-Neil
On Jul 8, 2012, at 22:39 , Doug Barton wrote: > On 07/08/2012 19:33, George Neville-Neil wrote: >> A followup. zookeeper is now ported to Freebsd (/usr/ports/devel/zookeeper) > > George, did you see the PR and the followup from me regarding the port? > I got a mail from jgh@ but only today fi

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Steve Kargl
On Sun, Jul 08, 2012 at 08:13:21PM -0600, Warner Losh wrote: > > On Jul 8, 2012, at 8:01 PM, Steve Kargl wrote: > > Not to mention, I've seen way too many examples of 'x - y' > > where cancellation of significant digits causes > > problems. Throw in rather poor estimates of function > > results w

Re: newbus' ivar's limitation..

2012-07-08 Thread Arnaud Lacombe
Hi, On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: > > On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: >> Ok, yet another Newbus' limitation. Assuming a device exports more >> than one interface, and one of its child has need to use more than one >> interface, each interfaces cannot regist

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 9:26 PM, Arnaud Lacombe wrote: > Hi, > > On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: >> >> On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: >>> Ok, yet another Newbus' limitation. Assuming a device exports more >>> than one interface, and one of its child has need t

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Stephen Montgomery-Smith
On 07/08/2012 09:01 PM, Steve Kargl wrote: Have you read Goldberg's paper? I must admit that I had not. I found it at: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html Not to mention, I've seen way too many examples of 'x - y' where cancellation of significant digits causes p

Re: newbus' ivar's limitation..

2012-07-08 Thread Arnaud Lacombe
On Sun, Jul 8, 2012 at 11:31 PM, Warner Losh wrote: > > On Jul 8, 2012, at 9:26 PM, Arnaud Lacombe wrote: > >> Hi, >> >> On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: >>> >>> On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: Ok, yet another Newbus' limitation. Assuming a device exports

Re: newbus' ivar's limitation..

2012-07-08 Thread Arnaud Lacombe
Hi, On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: > > On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: >> Ok, yet another Newbus' limitation. Assuming a device exports more >> than one interface, and one of its child has need to use more than one >> interface, each interfaces cannot regist

Re: Java and NIO?

2012-07-08 Thread Doug Barton
On 07/08/2012 20:01, George Neville-Neil wrote: > > On Jul 8, 2012, at 22:39 , Doug Barton wrote: > >> On 07/08/2012 19:33, George Neville-Neil wrote: >>> A followup. zookeeper is now ported to Freebsd (/usr/ports/devel/zookeeper) >> >> George, did you see the PR and the followup from me regardi

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 9:46 PM, Arnaud Lacombe wrote: > On Sun, Jul 8, 2012 at 11:31 PM, Warner Losh wrote: >> >> On Jul 8, 2012, at 9:26 PM, Arnaud Lacombe wrote: >> >>> Hi, >>> >>> On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote:

Re: newbus' ivar's limitation..

2012-07-08 Thread Warner Losh
On Jul 8, 2012, at 9:59 PM, Arnaud Lacombe wrote: > Hi, > > On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wrote: >> >> On Jul 8, 2012, at 7:22 PM, Arnaud Lacombe wrote: >>> Ok, yet another Newbus' limitation. Assuming a device exports more >>> than one interface, and one of its child has need t

Re: Use of C99 extra long double math functions after r236148

2012-07-08 Thread Steve Kargl
On Sun, Jul 08, 2012 at 10:41:44PM -0500, Stephen Montgomery-Smith wrote: > On 07/08/2012 09:01 PM, Steve Kargl wrote: > > >Have you read Goldberg's paper? > > I must admit that I had not. I found it at: > > http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html Yes, it's easy to find.

Re: newbus' ivar's limitation..

2012-07-08 Thread Arnaud Lacombe
Hi, On Mon, Jul 9, 2012 at 12:37 AM, Warner Losh wrote: > > On Jul 8, 2012, at 9:46 PM, Arnaud Lacombe wrote: > >> On Sun, Jul 8, 2012 at 11:31 PM, Warner Losh wrote: >>> >>> On Jul 8, 2012, at 9:26 PM, Arnaud Lacombe wrote: >>> Hi, On Sun, Jul 8, 2012 at 10:07 PM, Warner Losh wr