bin/93841: seg fault with dmesg
Stephen Montgomery-Smith
stephen at cauchy.math.missouri.edu
Sat Feb 25 14:40:11 PST 2006
>Number: 93841
>Category: bin
>Synopsis: seg fault with dmesg
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 25 22:40:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Stephen Montgomery-Smith
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD cauchy 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sun Feb 5 02:37:31 CST 2006 stephen at cauchy:/usr/obj/usr/src/sys/cauchy i386
>Description:
My video card issues some really weird messages to the message buffer, e.g.
<
2>>
When the message buffer has such problems, dmesg will seg fault.
>How-To-Repeat:
I'm not sure how anyone else could mimic this problem.
>Fix:
--- dmesg.c-orig Sat Feb 25 16:26:18 2006
+++ dmesg.c Sat Feb 25 16:27:01 2006
@@ -177,7 +177,7 @@
nextp++;
/* Skip ^<[0-9]+> syslog sequences. */
- if (*p == '<') {
+ if (*p == '<' && *(p+1) != '\n') {
errno = 0;
pri = strtol(p + 1, &q, 10);
if (*q == '>' && pri >= 0 && pri < INT_MAX &&
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list