[DragonFlyBSD - Bug #2811] va_arg twice in dntpd

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Apr 24 00:30:10 PDT 2015


Issue #2811 has been updated by bycn82.


# date
Fri Apr 24 07:13:39 UTC 2015
# uname -a
DragonFly  4.1-DEVELOPMENT DragonFly e99935b-DEVELOPMENT #0: Wed Apr 15 04:26:41 UTC 2015     root@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64

info of my env

----------------------------------------
Bug #2811: va_arg twice in dntpd
http://bugs.dragonflybsd.org/issues/2811#change-12641

* Author: bycn82
* Status: Resolved
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
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.patch (1.07 KB)
dntpd.core (996 KB)
dntpd (85.3 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list