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

Kris Kennaway kris at FreeBSD.org
Sun Feb 17 16:50:42 UTC 2008


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


More information about the freebsd-current mailing list