Package: suck
Version: 4.3.2-15
Severity: normal
Dear Maintainer,
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00007ffff7a7c03f in __GI__IO_fputs (str=0xff00000000000000 <error:
Cannot access memory at address 0xff00000000000000>, fp=0x6294b0) at
iofputs.c:33
#2 0x0000000000403c15 in vprint_phrases (fpout=0x6294b0, argstr=0x414ada
"%v1%: %v2%\n", vargs=0x7fffffffcfa0) at both.c:903
#3 0x000000000040279a in do_debug_vl (fmt=0x414ada "%v1%: %v2%\n",
args=0x7fffffffcfa0) at both.c:335
#4 0x0000000000402f5e in error_log (mode=2, fmt=0x414ada "%v1%: %v2%\n")
at both.c:630
#5 0x0000000000402806 in MyPerror (message=0x415878
"/var/lib/news/history") at both.c:355
#6 0x0000000000413cc4 in chkhistory (master=0x7fffffffe180) at
chkhistory.c:34
#7 0x0000000000404e8b in main (argc=12, argv=0x7fffffffe518) at suck.c:542
(gdb)
The underlying issue is due to a va_list being used a second time.
diff --git a/both.c b/both.c
index d318a16..c4da5a5 100644
--- a/both.c
+++ b/both.c
@@ -627,7 +627,10 @@ void error_log(int mode, const char *fmt, ...) {
}
vprint_phrases(fptr, fmt, args);
if(debug == TRUE) {
+ va_list args;
+ va_start(args, fmt); /* set up args */
do_debug_vl(fmt, args);
+ va_end(args); /* so we can return
normally */
}
if(fptr != stderr) {
fclose(fptr);
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500,
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-66-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages suck depends on:
ii debconf [debconf-2.0] 1.5.58ubuntu1
ii libc6 2.23-0ubuntu5
ii libssl1.0.0 1.0.2g-1ubuntu4.6
Versions of packages suck recommends:
ii perl 5.22.1-9
Versions of packages suck suggests:
ii leafnode [news-transport-system] 1.11.10-3
pn news-reader <none>
-- no debconf information