[LLVMbugs] [Bug 17402] New: crash with -fsanitize=undefined during Firefox build

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 29 01:57:32 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17402

            Bug ID: 17402
           Summary: crash with -fsanitize=undefined during Firefox build
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: octoploid at yandex.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

During a build of Firefox with -fsanitize=undefined I get:

clang++ -o nsEscape.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers
-include /home/markus/mozilla-central/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM
-DMOZILLA_INTE
RNAL_API -DIMPL_LIBXUL  -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT
-DOS_POSIX=1 -DOS_LINUX=1  -I/home/markus/mozilla-central/ipc/chromium/src
-I/home/markus/mozilla-cent
ral/ipc/glue -I../../ipc/ipdl/_ipdlheaders  -I..
-I/home/markus/mozilla-central/xpcom/io -I. -I../../dist/include 
-I/var/tmp/moz-build-dir/dist/include/nspr -I/var/tmp/moz-b
uild-dir/dist/include/nss      -fPIC  -Qunused-arguments  -DMOZILLA_CLIENT
-include ../../mozilla-config.h -MD -MP -MF .deps/nsEscape.o.pp
-Qunused-arguments  -Qunused-argume
nts -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type
-Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof
-Wno-c++0x-extensions -Wno-extended-offseto
f -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags
-fsanitize=undefined -fno-sanitize=vptr -march=native -fno-exceptions
-fno-strict-aliasing -fno-
rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG
-DTRIMMED -O3 -fomit-frame-pointer 
/home/markus/mozilla-central/xpcom/io/nsEscape.cpp
nsIOUtil.o
clang-3.4: error: unable to execute command: Segmentation fault
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (http://llvm.org/git/clang.git
5c805e92a5f70a913bc3bfcd15c44875974c2111) (http://llvm.org/git/llvm.git
3f4f420ab7acb10221ba971543a7eed5489fb626)
Target: x86_64-unknown-linux-gnu
Thread model: posix


Reduced:

markus at x4 io % cat test.ii
typedef enum {
  url_XPAlphas = 1
} nsEscapeMask;
int a;
int *b;
char d[] = "";
int *fn1(nsEscapeMask p1) {
  int *e = 0;
  if (p1 == 0)
    for (;; a++) {
      int c = *e++;
      if (p1)
        *b++ = 0;
      *b++ = d[c];
    }
  return 0;
}

markus at x4 io % clang++ -Wall -Wextra -c -fsanitize=undefined -std=gnu++0x -O3
test.ii
clang-3.4: error: unable to execute command: Segmentation fault
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (http://llvm.org/git/clang.git
5c805e92a5f70a913bc3bfcd15c44875974c2111) (http://llvm.org/git/llvm.git
3f4f420ab7acb10221ba971543a7eed5489fb626)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.4: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.4: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130929/87b09ee5/attachment.html>


More information about the llvm-bugs mailing list