Your message dated Sun, 21 Oct 2007 11:17:03 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#447451: fixed in nfs-utils 1:1.1.1-2 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: nfs-kernel-server Version: 1:1.1.1-1 Severity: grave Tags: patch After upgrade, exportfs consistently segfaults on amd64, making the package unusable: Exporting directories for NFS kernel daemon...exportfs: /etc/init.d/nfs-kernel-s erver: line 60: 20695 Segmentation fault $PREFIX/sbin/exportfs -r Backtrace from a rebuild with debugging symbols: (gdb) bt #0 0x00002aaf70189a90 in strlen () from /lib/libc.so.6 #1 0x00002aaf7015819a in vfprintf () from /lib/libc.so.6 #2 0x00002aaf70159083 in ?? () from /lib/libc.so.6 #3 0x00002aaf701549be in vfprintf () from /lib/libc.so.6 #4 0x0000000000406fb6 in xlog_backend (kind=1024, fmt=0x4094c0 "%s [%d]: Neither 'subtree_check' or 'no_subtree_check' specified for export \"%s:%s\".\n Assuming default behaviour ('no_subtree_check').\n NOTE: this default has changed since nfs-utils version 1.0.x\n", args=0x7fff3adbc560) at xlog.c:175 #5 0x0000000000407216 in xlog (kind=16, fmt=0x4094c0 "%s [%d]: Neither 'subtree_check' or 'no_subtree_check' specified for export \"%s:%s\".\n Assuming default behaviour ('no_subtree_check').\n NOTE: this default has changed since nfs-utils version 1.0.x\n") at xlog.c:189 #6 0x00000000004052b5 in parseopts (cp=0x7fff3adbd6e8 "", ep=0x60c8e0, warn=1, had_subtree_opt_ptr=0x0) at exports.c:654 #7 0x00000000004063b8 in getexportent (fromkernel=<value optimized out>, fromexports=1) at exports.c:182 #8 0x0000000000403cdc in export_read (fname=<value optimized out>) at export.c:37 #9 0x0000000000402471 in main (argc=2, argv=0x7fff3adbda88) at exportfs.c:115 (gdb) The code in xlog_backend() appears to use the same va_list multiple times, which is forbidden by the C standard and breaks on amd64. The attached patch appears to fix the error. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/diff -u nfs-utils-1.1.1/debian/changelog nfs-utils-1.1.1/debian/changelog --- nfs-utils-1.1.1/debian/changelog +++ nfs-utils-1.1.1/debian/changelog @@ -1,3 +1,11 @@ +nfs-utils (1:1.1.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix misuse of va_list in logging code, that causes consistent segfaults + on amd64. + + -- Steve Langasek <[EMAIL PROTECTED]> Sun, 21 Oct 2007 03:26:47 -0700 + nfs-utils (1:1.1.1-1) unstable; urgency=low * New upstream release. only in patch2: unchanged: --- nfs-utils-1.1.1.orig/support/nfs/xlog.c +++ nfs-utils-1.1.1/support/nfs/xlog.c @@ -133,9 +133,13 @@ void xlog_backend(int kind, const char *fmt, va_list args) { + va_list args2; + if (!(kind & (L_ALL)) && !(logging && (kind & logmask))) return; + va_copy(args2, args); + if (log_syslog) { switch (kind) { case L_FATAL: @@ -172,10 +176,12 @@ fprintf(stderr, "%s: ", log_name); #endif - vfprintf(stderr, fmt, args); + vfprintf(stderr, fmt, args2); fprintf(stderr, "\n"); } + va_end(args2); + if (kind == L_FATAL) exit(1); }
--- End Message ---
--- Begin Message ---Source: nfs-utils Source-Version: 1:1.1.1-2 We believe that the bug you reported is fixed in the latest version of nfs-utils, which is due to be installed in the Debian FTP archive: nfs-common_1.1.1-2_i386.deb to pool/main/n/nfs-utils/nfs-common_1.1.1-2_i386.deb nfs-kernel-server_1.1.1-2_i386.deb to pool/main/n/nfs-utils/nfs-kernel-server_1.1.1-2_i386.deb nfs-utils_1.1.1-2.diff.gz to pool/main/n/nfs-utils/nfs-utils_1.1.1-2.diff.gz nfs-utils_1.1.1-2.dsc to pool/main/n/nfs-utils/nfs-utils_1.1.1-2.dsc A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Steinar H. Gunderson <[EMAIL PROTECTED]> (supplier of updated nfs-utils package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Sun, 21 Oct 2007 12:52:01 +0200 Source: nfs-utils Binary: nfs-kernel-server nfs-common Architecture: source i386 Version: 1:1.1.1-2 Distribution: unstable Urgency: low Maintainer: Anibal Monsalve Salazar <[EMAIL PROTECTED]> Changed-By: Steinar H. Gunderson <[EMAIL PROTECTED]> Description: nfs-common - NFS support files common to client and server nfs-kernel-server - support for NFS kernel server Closes: 447407 447451 Changes: nfs-utils (1:1.1.1-2) unstable; urgency=low . * 07-amd64-logging-segfault.patch: New patch from Steve Langasek, fixes segfault in logging code on amd64. (Closes: #447407, #447451) Files: 7584a3a49183000c121783b3ce5887f1 860 net standard nfs-utils_1.1.1-2.dsc bbe545cf33bf036998c145bf2caba901 30704 net standard nfs-utils_1.1.1-2.diff.gz c52181d5e5ba273a0837c0fdf7303448 309762 net optional nfs-kernel-server_1.1.1-2_i386.deb f44ade8a224171aefc908477881b40c5 388702 net standard nfs-common_1.1.1-2_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHGzLWXKRQ3lK3SH4RAoxyAKCAPQhQN6XYiYPlr5yFxGVnovJHQACfaLYC wkU/gB7m3qvLIzzmhhXkhqU= =IE15 -----END PGP SIGNATURE-----
--- End Message ---

