Re: synchronous freebsd print



Sanjeev,

Wed, Feb 27, 2008 at 03:00:46AM -0800, Sanjeev Kumar.S wrote:
and Yes in the kernel code I have a "\n" at the end
of my print, still the print is not complete and
the line next to it that causes the crash does
not give the result I want. Is this a common
scenario or am I doing something wrong.

If you're not defining PRINTF_BUFR_SIZE, then, judging by the
/sys/kern/subr_prf.c, output will be unbuffered in any case. However,
kernel printf is not protected by locks, so it can be interrupted
by another thread, if I am correct.

May be ddb(4) will become your friend?
--
Eygene
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Lockup debugging
    ... I can crash the machine when it's running with ScrollLock, ... The debugger cannot break in. ... > locks up. ...
    (microsoft.public.development.device.drivers)
  • Re: Lockup debugging
    ... if crash on control + scroll lock doesn't work, either you have not set the ... > I've got a dual Xeon W2k3 box that locks up intermittently. ... > or crash it when it stops responding. ... > - I use WinDbg to debug or crash the box ...
    (microsoft.public.development.device.drivers)
  • Re: Crash : where to find the right log file
    ... > A friend of mine as problems with his Mandriva 10.1 crashing at startup. ... > The study of syslo, bootlog and dmesg doesn't help, the crash seems to ... > Can I find more usefull logs? ...
    (comp.os.linux.hardware)
  • Re: one for the ages
    ... >>> is the marketing director for a popular Colorado ski area. ... My friend had on a jacket with the ski area logos ... >>> My pal is a good dude so he let the guy go but he told me he ... it's almost never "one crash". ...
    (rec.skiing.alpine)
  • Re: NForce2 pseudoscience stability testing (2.6.0-test11)
    ... Josh McKinney writes: ... it did crash but it actually didn't crash very often. ... it locks up shortly after. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)