Open
Bug 1349866
Opened 7 years ago
Updated 2 years ago
gnu gcc sanitizer detects undefined behaviour
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: vitti570, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20170310133403 Steps to reproduce: I compiled firefox with gnu gcc option -fsanitize=undefined then run it Actual results: /home/vitti/rpmbuild/SOURCES/firefox-52.0/xpcom/components/nsComponentManager.cpp:313:9: runtime error: load of address 0x2b63240186f8 with insufficient space for an object of type 'const struct Module *' 0x2b63240186f8: note: pointer points here 00 00 00 00 a0 72 02 24 63 2b 00 00 a0 bf 02 24 63 2b 00 00 c0 eb 02 24 63 2b 00 00 c0 da 04 24 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/dom/workers/Workers.h:115:14: runtime error: load of value 4294967295, which is not a valid value for type 'JSGCParamKey' /home/vitti/rpmbuild/SOURCES/firefox-52.0/dom/workers/Workers.h:169:19: runtime error: load of value 4294967295, which is not a valid value for type 'JSGCParamKey' /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/harfbuzz/src/hb-font.cc:586:72: runtime error: index 6 out of bounds for type '<unknown> *[1]' /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:704:24: runtime error: load of misaligned address 0x2b633ab0c01c for type '__m64', which requires 8 byte alignment 0x2b633ab0c01c: note: pointer points here 00 00 45 29 96 b5 5d ef be f7 fb de f3 9c 00 00 00 00 fb de f3 9c c3 18 41 08 45 29 8e 73 00 00 ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:704:24: runtime error: load of misaligned address 0x2b633ab5ac74 for type '__m64', which requires 8 byte alignment 0x2b633ab5ac74: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:722:21: runtime error: store to misaligned address 0x2b633ab5ac74 for type 'long long int', which requires 8 byte alignment 0x2b633ab5ac74: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:68:41: runtime error: load of misaligned address 0x7ffeefd91d3e for type 'const uint32_t', which requires 4 byte alignment 0x7ffeefd91d3e: note: pointer points here 10 00 00 00 00 00 60 ef a0 30 00 00 30 a0 f0 60 00 00 00 60 f0 30 00 00 00 00 00 00 30 f0 60 00 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:68:41: runtime error: load of misaligned address 0x7ffeefd91d42 for type 'const uint32_t', which requires 4 byte alignment 0x7ffeefd91d42: note: pointer points here 00 00 60 ef a0 30 00 00 30 a0 f0 60 00 00 00 60 f0 30 00 00 00 00 00 00 30 f0 60 00 10 ef 30 00 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:68:41: runtime error: load of misaligned address 0x7ffeefd91d46 for type 'const uint32_t', which requires 4 byte alignment 0x7ffeefd91d46: note: pointer points here a0 30 00 00 30 a0 f0 60 00 00 00 60 f0 30 00 00 00 00 00 00 30 f0 60 00 10 ef 30 00 00 00 d0 cf ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:704:24: runtime error: load of misaligned address 0x2b633abb80bc for type '__m64', which requires 8 byte alignment 0x2b633abb80bc: note: pointer points here 34 34 34 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:722:21: runtime error: store to misaligned address 0x2b633abb80bc for type 'long long int', which requires 8 byte alignment 0x2b633abb80bc: note: pointer points here 34 34 34 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:704:24: runtime error: load of misaligned address 0x2b633ab0c93e for type '__m64', which requires 8 byte alignment 0x2b633ab0c93e: note: pointer points here 7d ef 9a d6 00 00 00 00 00 00 79 ce ae 73 d7 bd 71 8c 1c e7 2c 63 00 00 00 00 79 ce ae 73 d7 bd ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/nsprpub/pr/src/misc/praton.c:192:26: runtime error: left shift of 192 by 24 places cannot be represented in type 'int' /home/vitti/rpmbuild/SOURCES/firefox-52.0/image/decoders/nsIconDecoder.cpp:97:22: runtime error: load of misaligned address 0x2b633c6a5002 for type 'const uint32_t', which requires 4 byte alignment 0x2b633c6a5002: note: pointer points here e5 e5 10 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 24 26 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:68:41: runtime error: load of misaligned address 0x7ffeefd98167 for type 'const uint32_t', which requires 4 byte alignment 0x7ffeefd98167: note: pointer points here ef cf 40 00 00 c0 ff ff ff ef 20 00 ff ff ff ff ff 70 00 ff ff ff ff ff 60 00 80 ff ff ff d0 10 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:91:19: runtime error: load of misaligned address 0x7ffeefd9816b for type 'const uint16_t', which requires 2 byte alignment 0x7ffeefd9816b: note: pointer points here 00 c0 ff ff ff ef 20 00 ff ff ff ff ff 70 00 ff ff ff ff ff 60 00 80 ff ff ff d0 10 00 00 50 80 ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:704:24: runtime error: load of misaligned address 0x2b6340d61494 for type '__m64', which requires 8 byte alignment 0x2b6340d61494: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/vitti/1tb/vitti/local/gcc-6.3.0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include/emmintrin.h:722:21: runtime error: store to misaligned address 0x2b6340d61494 for type 'long long int', which requires 8 byte alignment 0x2b6340d61494: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:68:41: runtime error: load of misaligned address 0x7ffeefd92f82 for type 'const uint32_t', which requires 4 byte alignment 0x7ffeefd92f82: note: pointer points here 00 00 00 00 00 00 00 00 00 00 00 60 ff ff 9f 00 00 00 00 00 00 00 00 00 00 00 00 00 60 ff ff ff ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:68:41: runtime error: load of misaligned address 0x7ffeefd92f86 for type 'const uint32_t', which requires 4 byte alignment 0x7ffeefd92f86: note: pointer points here 00 00 00 00 00 00 00 60 ff ff 9f 00 00 00 00 00 00 00 00 00 00 00 00 00 60 ff ff ff ff 9f 00 00 ^ /home/vitti/rpmbuild/SOURCES/firefox-52.0/gfx/skia/skia/src/core/../opts/Sk4px_SSE2.h:91:19: runtime error: load of misaligned address 0x7ffeefd93de3 for type 'const uint16_t', which requires 2 byte alignment 0x7ffeefd93de3: note: pointer points here 9f 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 ff ff ff ff ff ff ff ff ff ff ff ff a0 00 00 00 00 Expected results: No sanitizer messages should appear.
Updated•7 years ago
|
Component: Untriaged → Build Config
Product: Firefox → Core
Firefox built with gnu gcc sanitizer for undefined behavior detection. Trunk version 56.0a1
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•