Re: PRINTF_BUFR_SIZE (Re: 7.0 RC2 kernel panic with Kqemu/AMD64)

From: Kris Kennaway <kris_at_FreeBSD.org>
Date: Sun, 17 Feb 2008 17:50:40 +0100
Michiel Boland wrote:
> On Sun, 17 Feb 2008, Gary Jennejohn wrote:
> 
> [...]
>> I can't help with your problem, but I suggest that you add
>> options         PRINTF_BUFR_SIZE=128
>> to your kernel config file to avoid the above corrupted output.
> 
> Any reason why this PRINTF_BUFR_SIZE option isn't in GENERIC on all 
> platforms? At the moment it is set for sun4v only.
> 
> Cheers
> Michiel
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
> 

I think the fear is that it could cause a stack overflow because it 
allocates a character array (128-bytes in the above case) on the stack. 
  I would like to know how real this fear is though.  Clearly we do need 
a way to avoid interleaving console output by default.

Kris
Received on Sun Feb 17 2008 - 15:50:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:27 UTC