Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Peter Jeremy
On Tue, 2005-Feb-22 22:01:12 -0600, Seán C. Farley wrote: The latest PR on this (two PR's mentioned in it are closed): http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/19406 ... Here is a test program along with a patch to stop the leak: http://www.farley.org/freebsd/tmp/setenv.tar.bz2 The diff is

Promise FastTrak S150

2005-02-23 Thread Cristiano Deana
Hi, I have a HP Proliant ML110, with a controller Promise FastTrak S150 SX4. It's a raid sata controller. At boot system halt with fatal trap 12 and these errors: ata2-master: FAILURE - ATA_IDENTIFY timed out ata2-master: FAILURE - ATA_IDENTIFY timed out ata2-master: FAILURE - SETFEATURES SET

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Dag-Erling Smørgrav
Seán C. Farley [EMAIL PROTECTED] writes: While playing around with setenv(), I noticed that it can leak memory when a program overwrites a variable with a larger value. unsetenv() will just leak memory. All of this is documented in their man pages. The latest PR on this (two PR's mentioned

ARG_MAX increase

2005-02-23 Thread Marco van de Voort
I saw ARG_MAX was increased in 6.0. Recently I noticed that the lang/fpc-devel port currently hits the old limit in certain (though rare) cases), and this is annoying. (some testing revealed that half the increase of 6.0 to 131k params is also ok) Any chance ARG_MAX will be upped in -STABLE

Re: Advanced USB snooping

2005-02-23 Thread Peter B
Is it possible to program an ordinary (like Intel 82801CA/CAM (ICH3)) USB host controller into acting as an usb device instead? (just like scsi can). Idea: M$Win-Usb - FreeBSD-USB#1 .. software .. FreeBSD-USB#2 - Device No - this wonn't work. Host Controllers are dedicated host

Remote upgrade of 4.X-5.3-Stable

2005-02-23 Thread Dwayne MacKinnon
Hi all, I've been experimenting with upgrading 4.X to 5.3-STABLE. The challenge I've been given is that the box to be upgraded is physically inaccessible and so there's no console access. All I have to work with is ssh and scp. In our lab I built a box to 5.3-STABLE. I then used the /usr/obj

Re: Kernel monitor, the return

2005-02-23 Thread Andrey Simonenko
On Tue, Feb 22, 2005 at 03:34:41PM -0500, John Baldwin wrote: You don't need sched_lock to check PS_INMEM, proc lock is sufficient (PS_INMEM is magic this way). I suggested the author of the original letter to get lock on sched_lock, because statclock() modifies ru_idrss and ru_isrss values

Re: [PATCH] Dangerous jail()-ioctl interactions.

2005-02-23 Thread Xin LI
On Mon, Feb 21, 2005 at 10:16:56PM +, Wojciech A. Koszek wrote: Hello hackers, I would like to let you know I've been doing [partial] audit of ioctl() code. There are some places, which may interest you. These are: sys/cam/cam_xpt.c sys/contrib/ipfilter/netinet/ip_fil.c

Remote upgrade of 4.X-5.3-Stable

2005-02-23 Thread Wouter van Rooij
You did a make buildworld? You just have to boot in single user mode and run mergemaster -p and mergemaster. I hope this helped you Wouter van Rooij ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: Kernel monitor, the return

2005-02-23 Thread John Baldwin
On Wednesday 23 February 2005 09:00 am, Andrey Simonenko wrote: On Tue, Feb 22, 2005 at 03:34:41PM -0500, John Baldwin wrote: You don't need sched_lock to check PS_INMEM, proc lock is sufficient (PS_INMEM is magic this way). I suggested the author of the original letter to get lock on

Re: ARG_MAX increase

2005-02-23 Thread Garance A Drosihn
At 10:46 AM +0100 2/23/05, Marco van de Voort wrote: I saw ARG_MAX was increased in 6.0. Recently I noticed that the lang/fpc-devel port currently hits the old limit in certain (though rare) cases), and this is annoying. (some testing revealed that half the increase of 6.0 to 131k params is also

Re: Freebsd problem: Upgrading 5.3-relase to 5.3-release-p5-How

2005-02-23 Thread Amandeep Pannu
Hi all, Seems like a dumb question but how do i upgrade FreeBSD 5.3-Release to FreeBSD 5.3-Release-p5. I am very new to this stuff. Not even know if I am posting in the right mailing list. Thanks in advance A ___ freebsd-hackers@freebsd.org mailing

Re: Freebsd problem: Upgrading 5.3-relase to 5.3-release-p5-How

2005-02-23 Thread c0ldbyte
Check out the handbook on freebsd.org and lookup 'CVSup' reading that should in hand help you to upgrade/update your system. as well as reading the section on upgrading kernel/world. On Wed, 23 Feb 2005, Amandeep Pannu wrote: Hi all, Seems like a dumb question but how do i upgrade FreeBSD

smartmontools vs HP Smart Array 642 controller

2005-02-23 Thread Brian Reichert
As per the combo in the subject: Does anyone have any experience with smartctl and a HP Smart Array 642 controller? When I boot with HP's provided CD, the utility tells me that the device is SMART enabled. When I run smartctl version 5.32 under 5.3-STABLE (circa yesterdays's CVSup), hoever, I

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Seán C . Farley
On Wed, 23 Feb 2005, Dag-Erling Smørgrav wrote: Seán C. Farley [EMAIL PROTECTED] writes: While playing around with setenv(), I noticed that it can leak memory when a program overwrites a variable with a larger value. unsetenv() will just leak memory. All of this is documented in their man pages.

gcc question

2005-02-23 Thread Kathy Quinlan
Hi all, I have some code that I build for two targets, one an Atmel uC and the other FreeBSD. What is the best way to redefine getchar and putchar (in uC they use the serial port, in FreeBSD stdin stdout) Or would I be better #ifdef the commands and making getchar only used in uC and my

Re: gcc question

2005-02-23 Thread Daniel O'Connor
On Thu, 24 Feb 2005 15:00, Kathy Quinlan wrote: I have some code that I build for two targets, one an Atmel uC and the other FreeBSD. What is the best way to redefine getchar and putchar (in uC they use the serial port, in FreeBSD stdin stdout) Or would I be better #ifdef the commands and

sleep select system call not work correctly when linking with multithread libray--FreeBSD 4.5

2005-02-23 Thread River
Does anyone know why sleep select can not work correctly in FreeBSD 4.5 when the system time is set backward for a long time,i.e several hours. The behavior is: sleep or select will be blocked for a long time much longer than expected. Through testing, we found that these two system calls

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Dag-Erling Smørgrav
Seán C. Farley [EMAIL PROTECTED] writes: How does this version look? Needlessly complicated. I'd just copy the entire environment into malloc()ed space the first time setenv() or putenv() is called. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___

Re: gcc question

2005-02-23 Thread Kathy Quinlan
Daniel O'Connor wrote: On Thu, 24 Feb 2005 15:00, Kathy Quinlan wrote: I have some code that I build for two targets, one an Atmel uC and the other FreeBSD. What is the best way to redefine getchar and putchar (in uC they use the serial port, in FreeBSD stdin stdout) Or would I be better #ifdef