Project

General

Profile

Actions

Bug #2811

closed

va_arg twice in dntpd

Added by bycn82 about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/23/2015
Due date:
% Done:

0%

Estimated time:

Description

the function vlogline of below file
/usr.sbin/dntpd/log.c
it is possible to print the va into stderr and log into syslog ,below is the overview of the function.

function vlogline(){
if (log_stderr) {
print va into stderr
}

if(debug_opt == 0){
syslog
}
}

va_arg() will move the ap to next arg. somehow in my development environment, it dumpped when i trigger it manually,

core file and patch in the attachment.

dev01#dntpd
dntpd: NOTE: killing old daemon and starting a new one
Segmentation fault (core dumped)
dev01#


Files

dntpd.core (996 KB) dntpd.core bycn82, 04/23/2015 01:00 PM
dntpd.patch (1.07 KB) dntpd.patch bycn82, 04/23/2015 01:00 PM
dntpd.core (996 KB) dntpd.core the dump bycn82, 04/24/2015 12:25 AM
dntpd (85.3 KB) dntpd with debug info inside bycn82, 04/24/2015 12:25 AM
Actions

Also available in: Atom PDF