All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Sparse <linux-sparse@vger.kernel.org>
Subject: Sparse just seg faulted on me!
Date: Wed, 14 Feb 2007 09:04:48 +0000	[thread overview]
Message-ID: <9C17AC42-0C51-44D9-B126-1FB781DE0ECA@cam.ac.uk> (raw)

I typoed (see CTL_UNNUMBRED should be CTL_UNNUMBERED) and got an  
error which is fine but then sparse seg faulted!  I think that is a  
bug...

$ make CHECKFLAGS="-D__CHECK_ENDIAN__" C=2 modules
[snip]
  CHECK   fs/ntfs/sysctl.c
fs/ntfs/sysctl.c:38:15: error: undefined identifier 'CTL_UNNUMBRED'
/bin/sh: line 1: 26154 Segmentation fault      sparse - 
D__CHECK_ENDIAN__ -Wp,-MD,fs/ntfs/.sysctl.o.d -nostdinc -isystem /usr/ 
lib/gcc/i586-suse-linux/4.1.0/include -D__KERNEL__ -Iinclude -include  
include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno- 
trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float - 
mregparm=3 -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium4 - 
ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 - 
DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fno- 
omit-frame-pointer -fno-optimize-sibling-calls -g -fno-stack- 
protector -Wdeclaration-after-statement -Wno-pointer-sign - 
DNTFS_VERSION=\"2.3\" -DDEBUG -DNTFS_RW -DMODULE -D"KBUILD_STR(s)=#s"  
-D"KBUILD_BASENAME=KBUILD_STR(sysctl)" -D"KBUILD_MODNAME=KBUILD_STR 
(ntfs)" fs/ntfs/sysctl.c
make[2]: *** [fs/ntfs/sysctl.o] Error 139
make[1]: *** [fs/ntfs] Error 2
make: *** [fs] Error 2

This is the code snippet should allow you to reproduce it:

#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/sysctl.h>

extern int debug_msgs;

/* Definition of the ntfs sysctl. */
static ctl_table ntfs_sysctls[] = {
         {
                 .ctl_name = CTL_UNNUMBRED,      /* No binary ID. */
                 .procname = "ntfs-debug",       /* Text ID. */
                 .data = &debug_msgs,            /* Data pointer and  
size. */
                 .maxlen = sizeof(debug_msgs),
                 .mode = 0644,                   /* Mode. */
                 .proc_handler = &proc_dointvec, /* Proc handler. */
         },
         {}
};

Fixing the typo allows it to complete:

   CHECK   fs/ntfs/sysctl.c
   CC [M]  fs/ntfs/sysctl.o

Best regards,

	Anton
-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/

             reply	other threads:[~2007-02-14  9:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14  9:04 Anton Altaparmakov [this message]
2007-02-14 17:29 ` [PATCH] Re: Sparse just seg faulted on me! Christopher Li
2007-02-14 18:24   ` Linus Torvalds
2007-02-14 19:54     ` Christopher Li
2007-02-14 20:18       ` Christopher Li
2007-02-23  2:25         ` Josh Triplett
2007-02-14 20:48       ` Linus Torvalds
2007-02-14 20:36         ` Christopher Li
2007-02-23  2:42   ` Josh Triplett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9C17AC42-0C51-44D9-B126-1FB781DE0ECA@cam.ac.uk \
    --to=aia21@cam.ac.uk \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.