Sparse just seg faulted on me!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux