Thoughts on this pthreads bug: why release O_NONBLOCK in _exit?

2001-08-29 Thread Joel Ray Holveck
I've been studying a few things in pthreads to figure out a bug that's had me banging my head against a wall. I'd be interested in knowing what peoples' thoughts are. The basic scenario is that a fd loses its schedulability after the process calls daemon(). To review: The current pthreads impl

Re: OpenSSH + Kerberos 5 + PAM

2001-08-29 Thread Jim Bryant
David Terrell wrote: > On Tue, Aug 28, 2001 at 04:56:06PM -0700, Gordon Tetlow wrote: > >>I like Kerberos 5 and it's ability to use tickets so I don't have to type >>passwords whenever I login/su/need to authenticate myself. So it *really* >>annoys me that there is a pam_krb5 module that allows

Re: Loader problems

2001-08-29 Thread Bsdguru
In a message dated 8/29/01 7:34:47 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > the second > > > > partition seems fine. Backspacing over the characters and hitting return > > manually and the machine boots normally. Both partitions are using the > BTX > > loader v1.01 > >

Re: Loader problems

2001-08-29 Thread Mike Silbersack
On Wed, 29 Aug 2001 [EMAIL PROTECTED] wrote: > Fairly new. Other disks work ok, and we use this motherboard on lots of > systems. Its something with the setup...the 2 freebsds on a disk I think. > > Bryan If it's any consolation, my -current box started requiring me to hit enter to get past the

Re: Loader problems

2001-08-29 Thread Bsdguru
In a message dated 8/29/01 7:34:47 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > > I have a hard drive with 2 versions of freebsd (4.1 and 4.2) loaded on it. > > They boot and load ok, but when 4.1 is soft-rebooted, it stops at the boot: > > > prompt and 3 strange characters are d

Re: Proposed Utility - detach(1)

2001-08-29 Thread Igor Podlesny
> I would appreciate comments on the usefulness of a utility which would > allow one to detach a process from a TTY. I imagine the utility would > be very small and just call daemon(3) and execlp(3). 1) cd /usr/ports/sysutils/detach have fun... 2) the code itself is rather simple and I w

Fault type in the page fault handler

2001-08-29 Thread Murali Rangarajan
Hi, Is it possible to figure out the fault type(READ or WRITE fault) from inside the page fault handler in user space? I can get the faulting address fine but I have trouble figuring out the fault type. I looked at the i386/i386/machdep.c but couldn't find anything about the access/fault type.

Re: OpenSSH + Kerberos 5 + PAM

2001-08-29 Thread David Terrell
On Tue, Aug 28, 2001 at 04:56:06PM -0700, Gordon Tetlow wrote: > I like Kerberos 5 and it's ability to use tickets so I don't have to type > passwords whenever I login/su/need to authenticate myself. So it *really* > annoys me that there is a pam_krb5 module that allows you to authenticate > again

Re: FW: Interesting Router Question

2001-08-29 Thread Joshua Goodall
On Wed, 29 Aug 2001, Mike Silbersack wrote: > As to what type of flood that is - you can't tell with that version of > freebsd. It could've been a UDP or TCP flood (ACK or SYN). It actually > couldn't have been a icmp flood, that version of freebsd didn't limit icmp > responses. (Even though t

Re: PLEASE REVIEW: loader fix for gzipped kernels

2001-08-29 Thread John Polstra
In article <[EMAIL PROTECTED]>, Matt Dillon <[EMAIL PROTECTED]> wrote: >I'll give it a quick test after you commit it (I can combine the >test with some other work I'm doing). Thanks. I've committed it, and it should hit the mirrors within the next hour. I tested it with both gzipped a

Re: PLEASE REVIEW: loader fix for gzipped kernels

2001-08-29 Thread Matt Dillon
:In article <[EMAIL PROTECTED]>, :John Baldwin <[EMAIL PROTECTED]> wrote: :> :> Looks good to me, but I'm only somewhat familiar with libstand. :) : :Thanks for taking a look at it. Matt Dillon also reviewed it and gave :it a clean bill of health. He made a suggestion for making the code a :b

Re: libc_r, signals and modifying sigcontext

2001-08-29 Thread Daniel Eischen
On Thu, 30 Aug 2001, Fuyuhiko Maruyama wrote: > At Wed, 29 Aug 2001 14:31:25 -0400 (EDT), > Daniel Eischen wrote: > > > > On Thu, 30 Aug 2001, Fuyuhiko Maruyama wrote: > > > Hi all, > > > > > > [SNIP] > > > > > > How do you think to add sigreturn function into libc_r? > > > > Your implementati

Re: PLEASE REVIEW: loader fix for gzipped kernels

2001-08-29 Thread John Polstra
In article <[EMAIL PROTECTED]>, John Baldwin <[EMAIL PROTECTED]> wrote: > > Looks good to me, but I'm only somewhat familiar with libstand. :) Thanks for taking a look at it. Matt Dillon also reviewed it and gave it a clean bill of health. He made a suggestion for making the code a bit smalle

RE: PLEASE REVIEW: loader fix for gzipped kernels

2001-08-29 Thread John Baldwin
On 29-Aug-01 John Polstra wrote: > I would appreciate another pair of eyes on the attached patch before > I commit it. Looks good to me, but I'm only somewhat familiar with libstand. :) -- John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pg

Re: libc_r, signals and modifying sigcontext

2001-08-29 Thread Fuyuhiko Maruyama
At Wed, 29 Aug 2001 14:31:25 -0400 (EDT), Daniel Eischen wrote: > > On Thu, 30 Aug 2001, Fuyuhiko Maruyama wrote: > > Hi all, > > > > I'm also wondering how to use signals to handle runtime exceptions > > such as SIGFPE and SIGSEGV in pthread application. These signals are > > often used by imp

BSDCon 2002 - deadline extension for abstracts (fwd)

2001-08-29 Thread Robert Watson
This just popped up on the Darwin development list, but might also be of interest to FreeBSD developers interested in submitting a paper. Apparently I wasn't the only one who needed a deadline :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Project [EMAIL PROTECTED] NAI Lab

Re: PLEASE REVIEW: loader fix for gzipped kernels

2001-08-29 Thread Garrett Rooney
On Wed, Aug 29, 2001 at 11:27:20AM -0700, John Polstra wrote: > I would appreciate another pair of eyes on the attached patch before > I commit it. > > I have been working with gzipped kernels a lot lately, and have > noticed that when the loader tries to load certain kernels, it fails > with the

Re: libc_r, signals and modifying sigcontext

2001-08-29 Thread Daniel Eischen
On Thu, 30 Aug 2001, Fuyuhiko Maruyama wrote: > Hi all, > > I'm also wondering how to use signals to handle runtime exceptions > such as SIGFPE and SIGSEGV in pthread application. These signals are > often used by implementation of Java VM to handle Java's runtime > exceptions. Almost same sche

PLEASE REVIEW: loader fix for gzipped kernels

2001-08-29 Thread John Polstra
I would appreciate another pair of eyes on the attached patch before I commit it. I have been working with gzipped kernels a lot lately, and have noticed that when the loader tries to load certain kernels, it fails with the message "elf_loadexec: cannot seek". I tracked this down to a bug in "sr

Re: libc_r, signals and modifying sigcontext

2001-08-29 Thread Fuyuhiko Maruyama
I missed one thing to say, When I try to know what's happen in the libc_r, I use libc_r with DEBUG_SIGNAL defined. There seems to be something wrong with libc_r's signal handler when it cannot find the thread to handle signal, libc_r seems to refer some phantom thread that doesn't exist and it m

Loader problems

2001-08-29 Thread Bsdguru
I have a hard drive with 2 versions of freebsd (4.1 and 4.2) loaded on it. They boot and load ok, but when 4.1 is soft-rebooted, it stops at the boot: prompt and 3 strange characters are displayed (not alphanumeric)...the second partition seems fine. Backspacing over the characters and hitting

Re: libc_r, signals and modifying sigcontext

2001-08-29 Thread Fuyuhiko Maruyama
Hi all, I'm also wondering how to use signals to handle runtime exceptions such as SIGFPE and SIGSEGV in pthread application. These signals are often used by implementation of Java VM to handle Java's runtime exceptions. Almost same scheme works fine in non-pthread application but it doesn't in

Re: memory + apache

2001-08-29 Thread David Scheidt
On Tue, 28 Aug 2001, Dan wrote: : :i am seeing problems where apache is running into swap at times. :When all is said and done...i see alot of available memory from top :and alot still stuck in swap. Restarting apache at that point clears the :swap space right out and memory is used properly agai

Re: Problems with Squid on 4.4-RC

2001-08-29 Thread Adrian Chadd
> > I really did not have time to investigate this but > the same problem occured with version 2.3 of Squid. The port > worked but the "off the shelf" version did not. The problem > was corrected for 2.3 and 2.4 but it seems it persists in the > source code available from the development

Re: the sum of n processes's virtual memory more than 4G?

2001-08-29 Thread Terry Lambert
craig wrote: > > I know every process in FreeBSD have 4G(3G user) space. But the > sum of n(n<4096?) processes seems to have n*4G virtual memory. > Is it possible? The physical max memory for i386 is 4G. Can I > just make a swap file more than 4G such like 6G, 8G or more? Yes. Each process runs