Closed Bug 1863131 Opened 2 years ago Closed 2 years ago

Perma [tier 2] /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:33: error: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' writing between 128 and

Categories

(Core :: CSS Parsing and Computation, defect, P5)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: anba)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=434967741&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/d9Xpwk82TTyOZXSOEiFKXw/runs/0/artifacts/public/logs/live_backing.log


[task 2023-11-04T09:47:19.274Z] 09:47:19     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libjpeg'
[task 2023-11-04T09:47:19.283Z] 09:47:19     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libjpeg'
[task 2023-11-04T09:47:19.283Z] 09:47:19     INFO -  media/libjpeg/jdmarker.o
[task 2023-11-04T09:47:19.283Z] 09:47:19     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/media/libjpeg'
[task 2023-11-04T09:47:19.401Z] 09:47:19     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/js/src'
[task 2023-11-04T09:47:19.404Z] 09:47:19     INFO -  /builds/worker/fetches/sccache/sccache /builds/worker/fetches/gcc/bin/g++ --sysroot /builds/worker/fetches/sysroot-x86_64-linux-gnu -isystem /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8 -isystem /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/c++/8 -isystem /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu -isystem /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include -o Unified_cpp_js_src2.o -c  -I/builds/worker/workspace/obj-build/dist/stl_wrappers -I/builds/worker/workspace/obj-build/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DWASM_SUPPORTS_HUGE_MEMORY -DJS_CACHEIR_SPEW -DJS_STRUCTURED_SPEW -DJS_HAS_CTYPES -DFFI_BUILDING -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/builds/worker/checkouts/gecko/js/src -I/builds/worker/workspace/obj-build/js/src -I/builds/worker/workspace/obj-build/js/src/ctypes/libffi/include -I/builds/worker/checkouts/gecko/js/src/ctypes/libffi/src/x86 -I/builds/worker/workspace/obj-build/dist/include -I/builds/worker/workspace/obj-build/dist/include/nspr -I/builds/worker/workspace/obj-build/dist/include/nss -DMOZILLA_CLIENT -include /builds/worker/workspace/obj-build/js/src/js-confdefs.h -D_GLIBCXX_USE_CXX11_ABI=0 -fno-sized-deallocation -fno-aligned-new -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4 -freorder-blocks -O3 -fno-omit-frame-pointer -funwind-tables -Werror -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wno-invalid-offsetof -Wc++2a-compat -Wcomma-subscript -Wvolatile -Wno-error=deprecated -Wno-error=deprecated-enum-enum-conversion -Wduplicated-cond -Wimplicit-fallthrough -Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wformat -Wformat-overflow=2 -Wno-psabi -Wno-error=builtin-macro-redefined -Werror=format -Wno-attributes -fno-strict-aliasing -ffp-contract=off  -MD -MP -MF .deps/Unified_cpp_js_src2.o.pp   Unified_cpp_js_src2.cpp
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  In file included from /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:13,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from Unified_cpp_js_src2.cpp:38:
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  /builds/worker/workspace/obj-build/dist/include/mozilla/intl/String.h: In static member function 'static mozilla::Result<mozilla::intl::String::AlreadyNormalized, mozilla::intl::ICUError> mozilla::intl::String::Normalize(mozilla::intl::String::NormalizationForm, mozilla::Span<const char16_t>, B&) [with B = js::intl::FormatBuffer<char16_t, 32>]':
[task 2023-11-04T09:47:19.410Z] 09:47:19  WARNING -  /builds/worker/workspace/obj-build/dist/include/mozilla/intl/String.h:160:49: warning: 'normalizer' may be used uninitialized in this function [-Wmaybe-uninitialized]
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -    160 |           return unorm2_normalizeSecondAndAppend(normalizer, target, spanLength,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -        |                                                 ^
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  In file included from /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/string.h:640,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/string.h:3,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/throw_gcc.h:16,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/stl_wrappers/cstdlib:82,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/stdlib.h:36,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/stdlib.h:3,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:57,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Casting.h:12,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/jstypes.h:24,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.h:10,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:7,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  In function 'void* memcpy(void*, const void*, size_t)',
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -      inlined from 'void mozilla::PodCopy(T*, const T*, size_t) [with T = unsigned char]' at /builds/worker/workspace/obj-build/dist/include/mozilla/PodOperations.h:109:11,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -      inlined from 'void CopyChars(DestChar*, const SrcChar*, size_t) [with DestChar = unsigned char; SrcChar = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:545:12,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -      inlined from 'void CopyChars(CharT*, const JSLinearString*, size_t, size_t) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:561:14,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -      inlined from 'JSLinearString* SubstringInlineString(JSContext*, JS::Handle<JSLinearString*>, JS::Handle<JSLinearString*>, size_t, size_t, size_t) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:587:12,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -      inlined from 'JSString* js::SubstringKernel(JSContext*, JS::HandleString, int32_t, int32_t)' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:653:49:
[task 2023-11-04T09:47:19.410Z] 09:47:19    ERROR -  /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:33: error: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' writing between 128 and 18446744073709551615 bytes into a region of size 24 [-Werror=stringop-overflow=]
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -     51 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -        |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  In file included from Unified_cpp_js_src2.cpp:38:
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/String.cpp: In function 'JSString* js::SubstringKernel(JSContext*, JS::HandleString, int32_t, int32_t)':
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:585:9: note: destination object 'chars' of size 24
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -    585 |   CharT chars[MaxLength] = {};
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -        |         ^~~~~
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -  In file included from /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/string.h:640,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/string.h:3,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/throw_gcc.h:16,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/stl_wrappers/cstdlib:82,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/stdlib.h:36,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/stdlib.h:3,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:57,
[task 2023-11-04T09:47:19.410Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Casting.h:12,
[task 2023-11-04T09:47:19.411Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/jstypes.h:24,
[task 2023-11-04T09:47:19.411Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.h:10,
[task 2023-11-04T09:47:19.411Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:7,
[task 2023-11-04T09:47:19.411Z] 09:47:19     INFO -                   from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.411Z] 09:47:19     INFO -  In function 'void* memcpy(void*, const void*, size_t)',
[task 2023-11-04T09:47:19.412Z] 09:47:19     INFO -      inlined from 'void mozilla::PodCopy(T*, const T*, size_t) [with T = unsigned char]' at /builds/worker/workspace/obj-build/dist/include/mozilla/PodOperations.h:109:11,
[task 2023-11-04T09:47:19.412Z] 09:47:19     INFO -      inlined from 'void CopyChars(DestChar*, const SrcChar*, size_t) [with DestChar = unsigned char; SrcChar = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:545:12,
[task 2023-11-04T09:47:19.412Z] 09:47:19     INFO -      inlined from 'void CopyChars(CharT*, const JSLinearString*, size_t, size_t) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:561:14,
[task 2023-11-04T09:47:19.412Z] 09:47:19     INFO -      inlined from 'JSLinearString* SubstringInlineString(JSContext*, JS::Handle<JSLinearString*>, JS::Handle<JSLinearString*>, size_t, size_t, size_t) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:588:12,
[task 2023-11-04T09:47:19.413Z] 09:47:19     INFO -      inlined from 'JSString* js::SubstringKernel(JSContext*, JS::HandleString, int32_t, int32_t)' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:653:49:
[task 2023-11-04T09:47:19.413Z] 09:47:19  WARNING -  /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:33: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [24, 127] is out of the bounds [0, 24] of object 'chars' with type 'unsigned char [24]' [-Warray-bounds]
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -     51 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -        |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -  In file included from Unified_cpp_js_src2.cpp:38:
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/String.cpp: In function 'JSString* js::SubstringKernel(JSContext*, JS::HandleString, int32_t, int32_t)':
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:585:9: note: 'chars' declared here
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -    585 |   CharT chars[MaxLength] = {};
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -        |         ^~~~~
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -  In file included from /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/string.h:640,
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/string.h:3,
[task 2023-11-04T09:47:19.414Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/throw_gcc.h:16,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/stl_wrappers/cstdlib:82,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/stdlib.h:36,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/stdlib.h:3,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:57,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Casting.h:12,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/jstypes.h:24,
[task 2023-11-04T09:47:19.415Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.h:10,
[task 2023-11-04T09:47:19.416Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:7,
[task 2023-11-04T09:47:19.416Z] 09:47:19     INFO -                   from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.416Z] 09:47:19     INFO -  In function 'void* memcpy(void*, const void*, size_t)',
[task 2023-11-04T09:47:19.416Z] 09:47:19     INFO -      inlined from 'void mozilla::PodCopy(T*, const T*, size_t) [with T = unsigned char]' at /builds/worker/workspace/obj-build/dist/include/mozilla/PodOperations.h:109:11,
[task 2023-11-04T09:47:19.416Z] 09:47:19     INFO -      inlined from 'bool js::InlineCharBuffer<CharT>::maybeRealloc(JSContext*, size_t, size_t) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/vm/InlineCharBuffer-inl.h:99:23,
[task 2023-11-04T09:47:19.416Z] 09:47:19     INFO -      inlined from 'bool js::InlineCharBuffer<CharT>::maybeRealloc(JSContext*, size_t, size_t) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/vm/InlineCharBuffer-inl.h:84:8,
[task 2023-11-04T09:47:19.417Z] 09:47:19     INFO -      inlined from 'bool ToUpperCase(JSContext*, js::InlineCharBuffer<CharT>&, const SrcChar*, size_t, size_t, size_t*) [with DestChar = unsigned char; SrcChar = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:1213:31,
[task 2023-11-04T09:47:19.417Z] 09:47:19     INFO -      inlined from 'JSString* ToUpperCase(JSContext*, JSLinearString*) [with CharT = unsigned char]' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:1310:25,
[task 2023-11-04T09:47:19.417Z] 09:47:19     INFO -      inlined from 'JSString* js::StringToUpperCase(JSContext*, JS::HandleString)' at /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:1346:35:
[task 2023-11-04T09:47:19.417Z] 09:47:19  WARNING -  /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:33: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [40, 127] is out of the bounds [0, 40] of object 'newChars' with type 'mozilla::MaybeOneOf<js::InlineCharBuffer<unsigned char>, js::InlineCharBuffer<char16_t> >' [-Warray-bounds]
[task 2023-11-04T09:47:19.417Z] 09:47:19     INFO -     51 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
[task 2023-11-04T09:47:19.418Z] 09:47:19     INFO -        |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2023-11-04T09:47:19.418Z] 09:47:19     INFO -  In file included from Unified_cpp_js_src2.cpp:38:
[task 2023-11-04T09:47:19.418Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/String.cpp: In function 'JSString* js::StringToUpperCase(JSContext*, JS::HandleString)':
[task 2023-11-04T09:47:19.418Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/String.cpp:1229:52: note: 'newChars' declared here
[task 2023-11-04T09:47:19.418Z] 09:47:19     INFO -   1229 |   mozilla::MaybeOneOf<Latin1Buffer, TwoByteBuffer> newChars;
[task 2023-11-04T09:47:19.418Z] 09:47:19     INFO -        |                                                    ^~~~~~~~
[task 2023-11-04T09:47:19.419Z] 09:47:19     INFO -  In file included from /builds/worker/checkouts/gecko/js/src/vm/GlobalObject.h:38,
[task 2023-11-04T09:47:19.419Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/debugger/DebugAPI.h:10,
[task 2023-11-04T09:47:19.419Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/debugger/DebugAPI-inl.h:10,
[task 2023-11-04T09:47:19.419Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:38,
[task 2023-11-04T09:47:19.419Z] 09:47:19     INFO -                   from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.419Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/vm/Realm.h: In function 'bool EnqueuePromiseReactionJob(JSContext*, JS::HandleObject, JS::HandleValue, JS::PromiseState)':
[task 2023-11-04T09:47:19.420Z] 09:47:19  WARNING -  /builds/worker/checkouts/gecko/js/src/vm/Realm.h:452:29: warning: 'ar.mozilla::Maybe<js::AutoRealm>::<unnamed>.mozilla::detail::MaybeStorage<js::AutoRealm, false>::<unnamed>.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::mStorage.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::Union::val.js::AutoRealm::origin_' may be used uninitialized in this function [-Wmaybe-uninitialized]
[task 2023-11-04T09:47:19.420Z] 09:47:19     INFO -    452 |   JS::Zone* zone() { return zone_; }
[task 2023-11-04T09:47:19.420Z] 09:47:19     INFO -        |                             ^~~~~
[task 2023-11-04T09:47:19.420Z] 09:47:19     INFO -  In file included from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.421Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:1413:29: note: 'ar.mozilla::Maybe<js::AutoRealm>::<unnamed>.mozilla::detail::MaybeStorage<js::AutoRealm, false>::<unnamed>.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::mStorage.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::Union::val.js::AutoRealm::origin_' was declared here
[task 2023-11-04T09:47:19.421Z] 09:47:19     INFO -   1413 |   mozilla::Maybe<AutoRealm> ar;
[task 2023-11-04T09:47:19.421Z] 09:47:19     INFO -        |                             ^~
[task 2023-11-04T09:47:19.421Z] 09:47:19     INFO -  In file included from /builds/worker/checkouts/gecko/js/src/vm/Compartment-inl.h:23,
[task 2023-11-04T09:47:19.421Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/vm/NativeObject-inl.h:30,
[task 2023-11-04T09:47:19.422Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/jit/BaselineFrame-inl.h:18,
[task 2023-11-04T09:47:19.422Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/vm/Stack-inl.h:22,
[task 2023-11-04T09:47:19.422Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/debugger/DebugAPI-inl.h:16,
[task 2023-11-04T09:47:19.422Z] 09:47:19     INFO -                   from /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:38,
[task 2023-11-04T09:47:19.422Z] 09:47:19     INFO -                   from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.423Z] 09:47:19  WARNING -  /builds/worker/checkouts/gecko/js/src/vm/JSContext-inl.h:337:10: warning: 'ar.mozilla::Maybe<js::AutoRealm>::<unnamed>.mozilla::detail::MaybeStorage<js::AutoRealm, false>::<unnamed>.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::mStorage.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::Union::val.js::AutoRealm::cx_' may be used uninitialized in this function [-Wmaybe-uninitialized]
[task 2023-11-04T09:47:19.423Z] 09:47:19     INFO -    337 |   realm_ = realm;
[task 2023-11-04T09:47:19.423Z] 09:47:19     INFO -        |   ~~~~~~~^~~~~~~
[task 2023-11-04T09:47:19.423Z] 09:47:19     INFO -  In file included from Unified_cpp_js_src2.cpp:2:
[task 2023-11-04T09:47:19.423Z] 09:47:19     INFO -  /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:1413:29: note: 'ar.mozilla::Maybe<js::AutoRealm>::<unnamed>.mozilla::detail::MaybeStorage<js::AutoRealm, false>::<unnamed>.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::mStorage.mozilla::detail::MaybeStorageBase<js::AutoRealm, false>::Union::val.js::AutoRealm::cx_' was declared here
[task 2023-11-04T09:47:19.423Z] 09:47:19     INFO -   1413 |   mozilla::Maybe<AutoRealm> ar;
[task 2023-11-04T09:47:19.423Z] 09:47:19     INFO -        |                             ^~
[task 2023-11-04T09:47:19.424Z] 09:47:19     INFO -  cc1plus: all warnings being treated as errors
[task 2023-11-04T09:47:19.424Z] 09:47:19    ERROR -  gmake[4]: *** [/builds/worker/checkouts/gecko/config/rules.mk:690: Unified_cpp_js_src2.o] Error 1
[task 2023-11-04T09:47:19.424Z] 09:47:19     INFO -  gmake[4]: Leaving directory '/builds/worker/workspace/obj-build/js/src'
[task 2023-11-04T09:47:19.424Z] 09:47:19     INFO -  gmake[4]: Entering directory '/builds/worker/workspace/obj-build/media/libjpeg'
[task 2023-11-04T09:47:19.424Z] 09:47:19     INFO -  media/libjpeg/jdmaster.o

Hello, can you please take a look at this? Or maybe you know someone who can help us with this.
Can this be another form of Bug 1862900?
Thanks!

Flags: needinfo?(dshin)
Summary: Intermittent /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:33: error: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' writing between 128 and → Perma [tier 2] /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:33: error: 'void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)' writing between 128 and

Probably a similar story since the assert would be gone in opt builds
Seems gcc-based build is more picky about these kinds of issues.

Flags: needinfo?(dshin) → needinfo?(andrebargull)

GCC appears to get confused by the aNElem < 128 condition in mozilla::PodCopy, because removing that condition and only calling memcpy(aDst, aSrc, aNElem * sizeof(T)) in mozilla::PodCopy makes the error go away.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/279e1795af9d Directly call memcpy to workaround GCC diagnostic false positive. r=jandem
Flags: needinfo?(andrebargull)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
See Also: → 933149
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: