QDir: Conditional jump or move depends on uninitialised value(s)
-
Hello,
I've found an error reported by valgrind:
Conditional jump or move depends on uninitialised value(s)To reproduce it:
1- Create a new Qt Widgets Application.
2- Name it and use default option.
3- In mainwindow.cpp:3 add: #include <QDir>
4- In MainWindow constructor add:
QDir dir = QDir("/tmp/");
QStringList filter = QStringList("*.txt");
QFileInfoList fileInfoList = dir.entryInfoList(filter);
5- Set a BreakPoint on these last line.
6- Create an empty /tmp/main.cpp file with: touch /tmp/main.cpp
6- Start application using Valgrind Memory Analyser with GDB.
7- Step Over (F10)
GDB stop in Disassembler (??)
Memcheck reports:
Conditional jump or move depends on uninitialised value(s)
in 0xf3e4ca5
1: 0xf3e4ca5
2: 0x8e4e717Followed by a second one:
Conditional jump or move depends on uninitialised value(s)
in 0xf3e4ca5
1: 0xf3e4ca5
2: 0x8e4fab7 -
Please provide a minimal, compilable example and what Qt version you're using. Are you sure QtWidgets is needed? Also please install the Qt debug sources to see if it really happens inside Qt. I don't see anything with valgrind and Qt5.15.x
-
Qt Creator 4.14.0
Based on Qt 5.15.2 (GCC 10.2.0, 64 bit)
Linux Arch 5.10.3-arch1-1 #1 SMP PREEMPT Sun, 27 Dec 2020 10:50:46 +0000 x86_64 GNU/LinuxI provide the minimal things to test to reproduce it.
I get this error in Console Application too:#include <QCoreApplication> #include <QDir> int main(int /*argc*/, char */*argv*/[]) { QDir dir = QDir("/tmp/TestFolder"); QStringList filter = QStringList("*.txt"); QFileInfoList fileInfoList = dir.entryInfoList(filter); return 0; }
/usr/bin/valgrind --child-silent-after-fork=yes --xml-socket=127.0.0.1:38587 --log-socket=127.0.0.1:38201 --xml=yes --smc-check=stack --tool=memcheck --gen-suppressions=all --track-origins=yes --show-reachable=yes --leak-check=full --num-callers=25 --vgdb=yes --vgdb-error=0 /home/phenom/build-Test_QDir-Desktop-Debug/Test_QDir
After some Step Over to get CallStack:
Thread 1 (Thread 38667 (tid 1 VgTs_Runnable)): #0 0x0000000007cbde07 in ?? () No symbol table info available. #1 0x0000000000000001 in ?? () No symbol table info available. #2 0x00000000078cfc10 in ?? () No symbol table info available. #3 0x00000000078d5060 in ?? () No symbol table info available. #4 0x00000000058e0872 in ?? () from /usr/lib/libpcre2-16.so.0 No symbol table info available. #5 0x000000000590fda6 in pcre2_jit_match_16 () from /usr/lib/libpcre2-16.so.0 No symbol table info available. #6 0x0000000005910b88 in pcre2_match_16 () from /usr/lib/libpcre2-16.so.0 No symbol table info available. #7 0x00000000049b4239 in ?? () from /usr/lib/libQt5Core.so.5 No symbol table info available. #8 0x00000000049b7b44 in ?? () from /usr/lib/libQt5Core.so.5 No symbol table info available. #9 0x00000000049b7f8c in QRegularExpression::match(QString const&, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>) const () from /usr/lib/libQt5Core.so.5 No symbol table info available. #10 0x0000000004a1db95 in ?? () from /usr/lib/libQt5Core.so.5 No symbol table info available. #11 0x0000000004a1ed98 in ?? () from /usr/lib/libQt5Core.so.5 No symbol table info available. #12 0x0000000004a1f4bb in ?? () from /usr/lib/libQt5Core.so.5 No symbol table info available. #13 0x0000000004a1fb6e in QDirIterator::QDirIterator(QString const&, QStringList const&, QFlags<QDir::Filter>, QFlags<QDirIterator::IteratorFlag>) () from /usr/lib/libQt5Core.so.5 No symbol table info available. #14 0x0000000004a194b9 in QDir::entryInfoList(QStringList const&, QFlags<QDir::Filter>, QFlags<QDir::SortFlag>) const () from /usr/lib/libQt5Core.so.5 No symbol table info available. #15 0x00000000001092eb in main () at ../Test_QDir/main.cpp:8 dir = {d_ptr = {d = 0x78c47b0}} filter = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x78c49c0}, d = 0x78c49c0}}, <No data fields>} fileInfoList = {<QListSpecialMethods<QFileInfo>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x78c4950}, d = 0x78c4950}}
-
When this is the valgrind output of the unconditional jump then I don't see what Qt can do against it - it's deep inside libpcre2-16.so.0, maybe even in another library called from there.
-
It could be an uninit parameters?
Maybe a better coder than me can report it to libpcre2 maintainers if he can reproduce it?
I never said it's Qt bug. ;)I had install eschwartz/qt5-base-debug 5.15.2-2.1 but Qt creator never show source file.
Hello,
I get ride of using Qt debug source.
When using Qt compiled source (from Maintenance Tool), I get this error too.
But if I use self compiled one(/Qt/5.15.2/Src/configure -developer-build -opensource -nomake examples -nomake tests), nothing happens. It seems that it doesn't use /Qt/5.15.2/Src/qtbase/src/3rdparty/pcre2/src/pcre2_jit_match.c:57 where error occurs.Here the Backtrace just after error (after some F11 to get Call Stack):
Thread 1 (Thread 173383 (tid 1 VgTs_Runnable)): #0 0x000000000504de04 in ?? () No symbol table info available. #1 0x00000000079b9fd8 in ?? () No symbol table info available. #2 0x00000000079b4d00 in ?? () No symbol table info available. #3 0x00000000079b4d00 in ?? () No symbol table info available. #4 0x00000000079b29c0 in ?? () No symbol table info available. #5 0x00000000079ba150 in ?? () No symbol table info available. #6 0x0000000004bd7a8c in jit_machine_stack_exec (arguments=arguments@entry=0x1ffeffac80, executable_func=<optimized out>) at src/pcre2_jit_match.c:57 local_space = '\000' <repeats 30904 times>... local_stack = {top = 0x1ffeffac70 "P\241\233\a", end = 0x1ffeffac70 "P\241\233\a", start = 0x1ffeff2c70 "", min_start = 0x1ffeff2c70 ""} #7 0x0000000004c00a5d in pcre2_jit_match_16 (code=0x1ffeffac70, code@entry=0x79b29c0, subject=0x1ffeffac80, subject@entry=0x79b9fd8, length=length@entry=8, start_offset=start_offset@entry=0, options=options@entry=0, match_data=0x79b9fe8, match_data@entry=0x79ba150, mcontext=0x79ba0b0) at src/pcre2_jit_match.c:168 re = 0x1ffeffac70 functions = <optimized out> jit_stack = 0x0 oveccount = 1 max_oveccount = <optimized out> convert_executable_func = {executable_func = <optimized out>, call_executable_func = <optimized out>} arguments = {stack = 0x1ffeff2c50, str = 0x79b9fd8, begin = 0x79b9fd8, end = 0x79b9fe8, match_data = 0x79ba150, startchar_ptr = 0x79b9fd8, mark_ptr = 0x0, callout = 0x0, callout_data = 0x0, offset_limit = 18446744073709551615, limit_match = 10000000, oveccount = 2, options = 0} rc = <optimized out> index = <optimized out> #8 0x0000000004c01497 in pcre2_match_16 (code=code@entry=0x79b29c0, subject=subject@entry=0x79b9fd8, length=length@entry=8, start_offset=start_offset@entry=0, options=options@entry=0, match_data=match_data@entry=0x79ba150, mcontext=0x79ba0b0) at src/pcre2_match.c:6345 rc = <optimized out> was_zero_terminated = 0 start_bits = 0x0 re = <optimized out> anchored = <optimized out> firstline = <optimized out> has_first_cu = 0 has_req_cu = 0 startline = <optimized out> first_cu = 0 first_cu2 = 0 req_cu = 0 req_cu2 = 0 bumpalong_limit = <optimized out> end_subject = 0x79b9fe8 true_end_subject = 0x79b9fe8 start_match = 0x79b9fd8 req_cu_ptr = 0x79b9fd6 start_partial = <optimized out> match_partial = <optimized out> use_jit = <optimized out> utf = 1 ucp = 0 allow_invalid = 0 fragment_options = 0 jit_checked_utf = <optimized out> frame_size = <optimized out> cb = {version = 0, callout_number = 0, capture_top = 0, capture_last = 0, offset_vector = 0x0, mark = 0x0, subject = 0x0, subject_length = 0, start_match = 0, current_position = 0, pattern_position = 0, next_item_length = 0, callout_string_offset = 0, callout_string_length = 0, callout_string = 0x0, callout_flags = 0} actual_match_block = {memctl = {malloc = 0x0, free = 0x0, memory_data = 0x0}, frame_vector_size = 0, match_frames = 0x0, match_frames_top = 0x0, stack_frames = 0x1ffeffb020, heap_limit = 0, match_limit = 0, match_limit_depth = 0, match_call_count = 0, hitend = 0, hasthen = 0, allowemptypartial = 0, lcc = 0x0, fcc = 0x0, ctypes = 0x0, start_offset = 0, end_offset_top = 0, partial = 0, bsr_convention = 0, name_count = 0, name_entry_size = 0, name_table = 0x0, start_code = 0x0, start_subject = 0x0, check_subject = 0x0, end_subject = 0x0, end_match_ptr = 0x0, start_used_ptr = 0x0, last_used_ptr = 0x0, mark = 0x0, nomatch_mark = 0x0, verb_ecode_ptr = 0x0, verb_skip_ptr = 0x0, verb_current_recurse = 0, moptions = 0, poptions = 0, skip_arg_count = 0, ignore_skip_arg = 0, nltype = 0, nllen = 0, nl = {0, 0, 0, 0}, cb = 0x0, callout_data = 0x0, callout = 0x0} mb = 0x1ffeffaef0 stack_frames_vector = {0x0 <repeats 121 times>, 0x400b3ec <check_match+300>, 0xd82b830, 0x1, 0x53c9f00, 0x4854f60, 0x1, 0x400b7f4 <do_lookup_x+932>, 0x38b, 0x53d97a8, 0x53c2000, 0x1ffeffb4c8, 0x1ffeffb4c4, 0x0, 0x0, 0x0, 0x53d97a8, 0x53cb660, 0x487e103, 0xd82b830, 0x360ae0, 0x1ffeffb4c4, 0x77e2418, 0x1ffeffb590, 0x4854f60, 0x1ffeffb580, 0x12, 0x0, 0x0, 0x0, 0x0, 0xd82b830, 0x48348c8, 0x487e103, 0x1ffeffb628, 0x1ffeffb580, 0x1ffeffb590, 0x400c121 <_dl_lookup_symbol_x+289>, 0x8, 0x77e27b0, 0x1, 0x0, 0x1, 0x1ffeffbc00, 0x1ffeffb6f0, 0x4bccff3 <compile_regex+3363>, 0x79b2a52, 0x79b2a66, 0x79b2a52, 0x0, 0xffffffff00080008, 0x0, 0x1ffeffbb40, 0x100000000, 0x300000074, 0x0, 0x1ffeffb6a0, 0x1ffeffb6b0, 0x0, 0xffffffff00000000, 0x0, 0x78, 0x3, 0x0, 0x100080000, 0x1, 0x100000000, 0x0, 0x1, 0x79b2a66, 0x104d3ec00, 0x79b29c0, 0x79b2a48, 0x0, 0x1ffeffb7ac, 0xffffffff00000000, 0x0, 0x0, 0xffffffffffffffff, 0x1ffeffb670, 0x1ffeffb900, 0x1f00000000, 0x1ffeffb710, 0x0, 0x0, 0x79b2a4e, 0x0, 0x4d24308, 0x79b2a48, 0x0, 0x1ffeffb7b0, 0x4c10fd1 <find_minlength+369>, 0x1ffeffb7b0, 0x0, 0x0, 0x79b2a6c, 0x1feffb930, 0x79b29c0, 0x79b2a48, 0x0, 0x1ffeffb7ac, 0xffffffff00000000, 0x0, 0x0, 0xffffffffffffffff, 0x1ffeffb740, 0x0, 0x1f00000000, 0x1ffeffb940, 0x86, 0x79b2a4e, 0x79b29c0, 0x1, 0x1, 0x79b2a48, 0x0, 0x79a9e18, 0x4c1196a <_pcre2_study_16+170>, 0x1ffeffb7b0, 0x4c119d5 <_pcre2_study_16+277>, 0x79b2a4c, 0x2079b2a6c, 0x0, 0x0, 0xffffffff00080008, 0x1, 0x1ffeffbb40, 0x100000000, 0x300000074, 0x0, 0x1ffeffb8f0, 0x1ffeffb900, 0x0, 0xffffffff00000000, 0x0, 0x74, 0x3, 0x0, 0x100080000, 0x1, 0x100000000, 0x0, 0x0, 0x0, 0x4d3ec00 <_pcre2_default_tables_16+512>, 0x1ffeffbb70, 0x4, 0x10000080008, 0x6, 0x0, 0x79b2a48, 0x79b2a48, 0x7400000003, 0xffffffff, 0x79b2a56, 0x4c1296e <compare_opcodes+638>, 0x1ffeffb960, 0x0, 0x79b2a56, 0x1ffeffb8f0, 0x100000000, 0x1ffeffb98c, 0x1d, 0xffffffff0000002e, 0x1ffeffc2a0, 0x0, 0x79b2a6a, 0x79b2a52, 0x21, 0x1ffeffbc00, 0x1ffeffb990, 0x1, 0x80000, 0x4c13552 <_pcre2_auto_possessify_16+210>, 0x1ffeffb98c, 0x4c13717 <_pcre2_auto_possessify_16+663>, 0xffffffff, 0x0, 0x1ffeffb98c, 0x0, 0x0, 0x4bca51a <find_firstassertedcu+106>, 0x10000001f, 0x1ffeffb9ac, 0x79b29c0, 0x100000000, 0x79a9e18, 0x0, 0x80080008, 0x1, 0x0, 0x79b29c0, 0x0, 0x4bd2a3f <pcre2_compile_16+6575>, 0x79a9e01, 0x79b2a48, 0x80008, 0x5038240 <_pcre2_default_compile_context_16>, 0x80008, 0x8000800000000, 0x1ffeffbc00, 0x79a9ea0, 0x1fff0001b8, 0x1ffeffbb4c, 0x200000000, 0x4d3ea00 <_pcre2_default_tables_16>, 0x1ffeffbb4c, 0x1ffeffbe70, 0x1ffeffc270, 0x1, 0x1ffeffbb40, 0x0, 0x1ffeffbb50, 0x1ffeffbb54, 0xffffffffffffffff, 0x80000ffffffff, 0x1ffeffbb68, 0x1ffeffbb70, 0x1ffeffbb78, 0x0, 0x0, 0x0, 0x0, 0x1ffeffc29c, 0x1000000, 0x1ffeffe9e0, 0x0, 0x1ffeffbb50, 0x79a9e3a, 0x0, 0x1ffeffbb44, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7a00000000, 0xffffffff00000000, 0x3, 0x15, 0x79a9e3c, 0x74, 0x79b2a72, 0x1ffeffc2a0, 0x0 <repeats 16 times>, 0x5038240 <_pcre2_default_compile_context_16>, 0x4d3ea00 <_pcre2_default_tables_16>, 0x4d3eb00 <_pcre2_default_tables_16+256>, 0x4d3ec00 <_pcre2_default_tables_16+512>, 0x4d3ed40 <_pcre2_default_tables_16+832>, 0x1ffeffd270, 0x79b2a48, 0x79a9e18, 0x79a9e3c, 0x79b2a48, 0xbb8, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0x12, 0x0, 0x0, 0x1ffeffbd30, 0x8000800000014, 0x0, 0x0, 0x1ffeffc270, 0x1ffeffc2bc, 0x1ffeffbe70, 0x0, 0x100000000, 0x0, 0xa, 0x200000001, 0x0 <repeats 170 times>, 0x801a000080180001, 0x2f800e0000, 0x80340000800d0000, 0x740000002e, 0x7400000078, 0x8018001880190000, 0x80000000, 0x0 <repeats 505 times>, 0x2007900000086, 0x20079, 0x0 <repeats 737 times>, 0x4, 0x1ffeffeca0, 0x4009365 <_dl_map_object_from_fd+933>, 0x0, 0x4000, 0x39d0, 0x39d0, 0x0, 0x1, 0x4000, 0xd000, 0xcffd, 0xcffd, 0x4000, 0x5, 0xd000, 0x10000, 0xf380, 0xf380, 0xd000, 0x1, 0x10000, 0x12000, 0x11008, 0x11120, 0xf000, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4d4, 0x2000, 0x401c460 <rtld_malloc+160>, 0x0, 0x0, 0x4834000, 0x400d358 <_dl_new_object+680>, 0x0, 0x402ee70, 0x34, 0x4834480, 0x34, 0x400000000000000, 0x0, 0x0, 0x1ffeffeca0, 0x400d033 <_dl_add_to_namespace_list+35>, 0x0, 0x1ffeffeca0, 0x4834000, 0x4009de1 <_dl_map_object_from_fd+3617>, 0x0, 0x3, 0x1f00000003, 0x4847120, 0x1ffeffeb50, 0x0, 0x11120, 0x0, 0x1ffeffe9a0, 0x1ffeffed78, 0x6, 0x1ffeffed30, 0x1ffefff290, 0x402ee70, 0x500000000, 0x402e0a0 <_r_debug>, 0x802, 0x202618, 0x802, 0x202618, 0x1, 0x81ed, 0x0, 0x0, 0x444d0, 0x1000, 0x228, 0x5ff5ec56, 0x3a8ef70c, 0x5f189cb2, 0x0, 0x5f43eeed, 0x1ecacd41, 0x0, 0x0, 0x0, 0x4000000, 0x4000000, 0x402e1a0, 0x1ffefff290, 0x402d000 <_rtld_local>, 0x1ffeffed30, 0x0, 0x400a71d <_dl_map_object+461>, 0x1, 0x4000000, 0x1ffeffed28, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x402ee70, 0x1fff000690, 0x340, 0x10102464c457f, 0x0, 0x1003e0003, 0x40a0, 0x40, 0x43d10, 0x38004000000000, 0x1e001f00400009, 0x400000001, 0x0, 0x0, 0x0, 0x39d0, 0x39d0, 0x1000, 0x500000001, 0x4000, 0x4000, 0x4000, 0x8ffd, 0x8ffd, 0x1000, 0x400000001, 0xd000, 0xd000, 0xd000, 0x2380, 0x2380, 0x1000, 0x600000001, 0xfdd8, 0x10dd8, 0x10dd8, 0x230, 0x348, 0x1000, 0x600000002, 0xfdf0, 0x10df0, 0x10df0, 0x1a0, 0x1a0, 0x8, 0x400000004, 0x238, 0x238, 0x238, 0x24, 0x24, 0x4, 0x46474e550, 0xd3dc, 0xd3dc, 0xd3dc, 0x61c, 0x61c, 0x4, 0x66474e551, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x46474e552, 0xfdd8, 0x10dd8, 0x10dd8, 0x228, 0x228, 0x1, 0x1400000004, 0x554e4700000003, 0x79342cef7003b4b0, 0x69e3ba77cd7ca265, 0xd32f131c, 0x900000159, 0xa00000010, 0x4111e3122a9a1030, 0x8410152348c41040, 0xc24360b413a8041, 0x4f860150d01c6240, 0xa209000077615302, 0x2800e59000d5a088, 0x103811480603d5c0, 0x690343dc82405882, 0x28324a01f5d6c14a, 0x320c26c0c0741041, 0x6c00202004621cd9, 0x59f1a60528088588, 0x4, 0x1ffefff730, 0x40097fa <_dl_map_object_from_fd+2106>, 0x0, 0x26000, 0x25108, 0x25108, 0x0, 0xd00000001, 0x26000, 0x173000, 0x17258c, 0x17258c, 0x26000, 0x5, 0x173000, 0x1bf000, 0x1be407, 0x1be407, 0x173000, 0x1, 0x1bf000, 0x1c5000, 0x1c4490, 0x1c82a0, 0x1be000, 0x3, 0x40022a0 <map_doit>, 0x1ffefff250, 0x0, 0x0, 0x1ffefff1f0, 0x1ffefff0fc, 0x1ffefff23f, 0x3ffdffe4900000, 0x1ffefff240, 0x1, 0x402e1a0, 0x40243b5, 0x3ffdffe1a00000, 0x8039d6e0000, 0x0 <repeats 11 times>, 0x20, 0x0, 0x0, 0x3a0000, 0x0, 0x0, 0x0, 0x1ffefff240, 0x401cf73 <_dl_catch_error+35>, 0x0, 0x0, 0x0, 0x0, 0x3, 0x1ffefff290, 0x40243b5, 0x40027af <do_preload+79>, 0x0, 0x100000000000000, 0x0, 0x0, 0x1ffefff290, 0x402e1a0, 0x4000000, 0x4834000, 0x1fff000f9d, 0x33, 0x1ffefff290, 0x400340c <handle_preload_list+92>, 0x62696c2f7273752f, 0x400d033 <_dl_add_to_namespace_list+35>, 0x0, 0x1ffefff730, 0x53c2000, 0x4009de1 <_dl_map_object_from_fd+3617>, 0x400000006, 0x40, 0x40, 0x40, 0x310, 0x310, 0x8, 0x4, 0x1ffefff610, 0x4009365 <_dl_map_object_from_fd+933>, 0x0, 0x2000, 0x1458, 0x1458, 0x0, 0x1, 0x2000, 0x52000, 0x51b7d, 0x51b7d, 0x2000, 0x5, 0x52000, 0x70000, 0x6f71c, 0x6f71c, 0x52000, 0x1, 0x70000, 0x72000, 0x71030, 0x71108, 0x6f000, 0x3, 0xa8000, 0x1, 0x131000, 0x133000, 0x132610, 0x77e1500, 0x130000, 0x3, 0x4008, 0x400761f <open_verify.constprop+63>, 0x2000, 0x3, 0x1ffefff6b0, 0x0, 0x77e1e20, 0x400d358 <_dl_new_object+680>, 0x17e2ab0, 0x77e1e00, 0x16, 0x77e22a0, 0xd, 0x0, 0x1ffefff610, 0x0, 0x1ffefff610, 0x400d033 <_dl_add_to_namespace_list+35>, 0x0, 0x1ffefff610, 0x77e1e20, 0x4009de1 <_dl_map_object_from_fd+3617>, 0xfefff650, 0x3, 0x1f00000003, 0x798d108, 0x1ffefff4c0, 0xfff650, 0x71108, 0x0, 0x1ffefff310, 0x1ffefff6e8, 0x6, 0x1ffefff6a0, 0x7800a90, 0x77e1e00, 0x500000000, 0x402e0a0 <_r_debug>, 0x802, 0x1a0e90, 0x802, 0x1a0e90, 0x1, 0x81ed, 0x0, 0x0, 0x70700, 0x1000, 0x388, 0x5ff5d546, 0x2e9b540f, 0x5e6974af, 0x0, 0x5e70e247, 0x211afe, 0x0, 0x0, 0x0, 0x50515f3, 0x0, 0x77e1500, 0x401254c <_dl_name_match_p+76>, 0x402d000 <_rtld_local>, 0x0, 0x0, 0x400a5dd <_dl_map_object+141>, 0x1, 0x53aa019, 0x1ffefff698, 0x0, 0x1, 0x0, 0x77e1e00, 0x400a5dd <_dl_map_object+141>, 0x402e1a0, 0x100000000000000, 0xd, 0x0, 0x1, 0x0, 0x77e1e00, 0x1fff000690, 0x340, 0x10102464c457f, 0x0, 0x1003e0003, 0x2020, 0x5, 0x0, 0x2, 0x40, 0x5, 0x0, 0x2, 0x40, 0x2, 0x79b70b0, 0x4bdad2d <emit_lea_binary+269>, 0x79b70b0, 0x500000000, 0x1, 0x79b70b0, 0x5, 0x2, 0x0, 0x4, 0x1ffeffff10, 0x79b70b0, 0x40, 0x1, 0x0, 0x79b70b0, 0x40, 0x1, 0x79b70b0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x1, 0x79b70b0, 0x40, 0x74, 0x79b2a64, 0x4bd9536 <emit_cmp_binary+198>, 0xd0b, 0x1, 0x1, 0x1, 0x79b70b0, 0x1ffefff8f0, 0x79b82d0, 0x4bdba7d <sljit_emit_cmp+77>, 0x40, 0x74, 0x1, 0x1, 0x40, 0x79b70b0, 0x1, 0x20, 0x0, 0x4bda130 <emit_shift+768>, 0x79b70b0, 0x79b70b0, 0x1, 0x1, 0x0, 0x2, 0x79b70b0, 0x2d2b2928, 0x0, 0x2d2b29, 0x0, 0x2, 0x4, 0x79b70b0, 0x4, 0x0, 0x1ffeffff10, 0x4bd9667 <emit_cmp_binary+503>, 0x0, 0x4, 0x20b, 0x4, 0x79b70b0, 0x79b70b0, 0x4d227b8, 0x4bdba7d <sljit_emit_cmp+77>, 0x4, 0x0, 0x79b82c8, 0x79b82c8, 0x79b70b0, 0x4bf6518 <compile_backtrackingpath+2712>, 0xa000, 0x0, 0x1ffefff9d0, 0x79b8840, 0x79b8860, 0x48, 0x79b4e70, 0x40, 0x0, 0x0, 0x30, 0x4bd8c4f <emit_mov+111>, 0x40, 0x79, 0x79b6070, 0x1, 0x79b70b0, 0x79, 0x79b8278, 0x1ffeffff10, 0x79b70b0, 0x0, 0x86, 0x4bf3a73 <compile_bracket_backtrackingpath+515>, 0x0, 0x0, 0x79b2a66, 0x79b2a4e, 0x2, 0x2, 0x1ffeffff10, 0x8600000000, 0x79b70b0, 0x4be12ed <check_partial+285>, 0x0, 0x79b70b0, 0x0, 0x79b8728, 0x79b2a6a, 0x4be211a <compile_simple_assertion_matchingpath+2298>, 0x0, 0x0, 0x0, 0x0, 0x0, 0x79b8210, 0x0, 0x0, 0x79b2a6a, 0x79b2a48, 0x20b, 0x4bf1fd6 <compile_matchingpath+5430>, 0x79b2a6c, 0x79b81f8, 0x79b4e70, 0x79b8278, 0x79b81f8, 0x1ffeffff10, 0x79b70b0, 0x4d227b8, 0x1ffeffff10, 0x4bf6059 <compile_backtrackingpath+1497>, 0x79b8208, 0x0, 0x1ffefffbc0, 0x0, 0x48552d8, 0xfefffc80, 0x1fff0000d0, 0x0, 0x3fe1d82, 0x0, 0x77e2418, 0x7dd7aaaa, 0x48348c8, 0x79, 0x79b5ff0, 0x1ffefffef0, 0x79b4e70, 0x79, 0x79b81f8, 0x1ffeffff10, 0x79b70b0, 0x79, 0x79b81f8, 0x4bf3a8e <compile_bracket_backtrackingpath+542>, 0x0, 0x0, 0x79b2a6c, 0x79b2a48, 0x0, 0x860001, 0x79b2a00, 0x8600000000, 0x1ffefffee0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1ffefffed8, 0x0, 0x0, 0x0, 0x1ffefffef8, 0x0, 0xfeffff10, 0x0, 0x0, 0x86, 0x4bf0d08 <compile_matchingpath+616>, 0x79b2a70, 0xd, 0x40, 0x2, 0x0, 0xb, 0x40, 0xffffffffffffe000, 0x79b70b0, 0x2, 0x79b70b0, 0x1, 0x79b70b0, 0x40, 0x0, 0x1, 0x3f4, 0x4bd7c1d <sljit_malloc_exec+381>, 0x79b70b0, 0x79b70b0, 0x79b87d8, 0x0, 0x2000, 0x1, 0x1102, 0x580053a0, 0x79b81d0, 0x1, 0x1102, 0x580053a0, 0x79b70b0, 0x0, 0x0, 0x0, 0x2b7, 0x4bff6f9 <jit_compile+12793>, 0x79b88b8, 0x0, 0x0, 0x0, 0xe, 0x79b2a48, 0x0, 0x1ffeffff10, 0x79b81e0, 0x79b29c0, 0x4, 0x1fff0000b0, 0x79b2a6a, 0x79b7060, 0x11, 0x1fff0000d0, 0x50, 0x6800000000, 0x0, 0x0, 0x79b5ff0, 0x5800000000, 0x0, 0x0, 0x79b81f8, 0x0, 0x79b2a48, 0x79b4de0, 0x79b70b0, 0x79b29c0, 0x79b2a48, 0x79b7020, 0x0, 0x79b6fd0, 0x0, 0x0, 0x3000000040, 0x79b9ea0, 0x1102, 0x580050f0, 0x4c, 0x0, 0x0, 0x0, 0x1a, 0x490882d <QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)+93>, 0x19, 0x1fff000040, 0x1fff0000d0, 0x498b7d3 <QString::QString(int, Qt::Initialization)+35>, 0x0, 0x79b9d20, 0x79b9d20, 0x4b451e2 <QUtf8::convertToUnicode(char const*, int, QTextCodec::ConverterState*)+834>, 0x0, 0x4d3fffd <mimetype_database+4093>, 0x1fff0000d0, 0x1fff000040, 0x79b9ea0, 0x79b87f0, 0x79b87d8, 0x79b87d8} FRAGMENT_RESTART = <optimized out> #9 0x00000000049a67af in safe_pcre2_match_16 (code=0x79b29c0, subject=subject@entry=0x79b9fd8, length=length@entry=8, startOffset=startOffset@entry=0, options=options@entry=0, matchData=matchData@entry=0x79ba150, matchContext=0x79ba0b0) at text/qregularexpression.cpp:1200 result = <optimized out> #10 0x00000000049aa3c2 in QRegularExpressionPrivate::doMatch (this=0x79a9e80, subject=..., subjectStart=subjectStart@entry=0, subjectLength=8, offset=offset@entry=0, matchType=matchType@entry=QRegularExpression::NormalMatch, matchOptions=..., checkSubjectStringOption=QRegularExpressionPrivate::CheckSubjectString, previous=0x0) at text/qregularexpression.cpp:1302 re = {d = {d = 0x79a9e80}} priv = 0x79ba030 pcreOptions = 0 previousMatchWasEmpty = false matchContext = 0x79ba0b0 matchData = <optimized out> subjectUtf16 = 0x79b9fd8 result = <optimized out> #11 0x00000000049aa9b0 in QRegularExpression::match (this=this@entry=0x79a9cc8, subject=..., offset=offset@entry=0, matchType=matchType@entry=QRegularExpression::NormalMatch, matchOptions=matchOptions@entry=...) at text/qregularexpression.cpp:1707 priv = <optimized out> #12 0x0000000004a08277 in QDirIteratorPrivate::matchesFilters (this=this@entry=0x79a99b0, fileName=..., fi=...) at io/qdiriterator.cpp:366 re = @0x79a9cc8: {d = {d = 0x79a9e80}} __for_range = @0x79a99e0: {d = 0x79a9cb0} __for_begin = 0x79a9cc8 __for_end = <optimized out> matched = false fileNameSize = <optimized out> dotOrDotDot = <optimized out> skipSymlinks = <optimized out> includeSystem = <optimized out> includeHidden = <optimized out> skipDirs = <optimized out> skipFiles = <optimized out> filterPermissions = <optimized out> doWritable = <optimized out> doExecutable = <optimized out> doReadable = <optimized out> #13 0x0000000004a09390 in QDirIteratorPrivate::entryMatches (fileInfo=..., fileName=..., this=0x79a99b0) at io/qdiriterator.cpp:238 No locals. #14 QDirIteratorPrivate::advance (this=this@entry=0x79a99b0) at io/qdiriterator.cpp:278 info = {d_ptr = {d = 0x79b9d70}} it = <optimized out> nextEntry = {m_filePath = {static null = {<No data fields>}, d = 0x79b9f30}, m_nativeFilePath = {d = 0x79b9cf0}, m_lastSeparator = 15, m_firstDotInFileName = -2, m_lastDotInFileName = 0} nextMetaData = {knownFlagsMask = {i = 13041664}, entryFlags = {i = 4325376}, size_ = -1, accessTime_ = 0, birthTime_ = 0, metadataChangeTime_ = 0, modificationTime_ = 0, userId_ = 0, groupId_ = 0} #15 0x0000000004a09a9c in QDirIteratorPrivate::QDirIteratorPrivate (this=0x79a99b0, entry=..., nameFilters=..., filters=..., flags=..., resolveEngine=<optimized out>) at io/qdiriterator.cpp:196 metaData = {knownFlagsMask = {i = 0}, entryFlags = {i = 0}, size_ = -1, accessTime_ = 0, birthTime_ = 0, metadataChangeTime_ = 0, modificationTime_ = 0, userId_ = 0, groupId_ = 0} fileInfo = {d_ptr = {d = 0x79a9ef0}} metaData = {knownFlagsMask = {i = <optimized out>}, entryFlags = {i = <optimized out>}, size_ = <optimized out>, accessTime_ = <optimized out>, birthTime_ = <optimized out>, metadataChangeTime_ = <optimized out>, modificationTime_ = <optimized out>, userId_ = <optimized out>, groupId_ = <optimized out>} fileInfo = {d_ptr = {d = <optimized out>}} filter = <optimized out> __for_range = <optimized out> __for_begin = {i = <optimized out>} __for_end = {i = <optimized out>} re = {static null = {<No data fields>}, d = <optimized out>} #16 0x0000000004a0a33c in QDirIterator::QDirIterator (this=0x1fff0004a0, path=..., nameFilters=..., filters=..., flags=...) at io/qdiriterator.cpp:498 No locals. #17 0x0000000004a04489 in QDir::entryInfoList (this=<optimized out>, nameFilters=..., filters=..., sort=...) at io/qdir.cpp:1476 d = <optimized out> l = {<QListSpecialMethods<QFileInfo>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x4c1bef0 <QListData::shared_null>}, d = 0x4c1bef0 <QListData::shared_null>}} it = {d = {d = 0x0}} ret = {<QListSpecialMethods<QFileInfo>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x0}, d = 0x0}} #18 0x00000000001092eb in main () at ../Test_QDir/main.cpp:8 dir = {d_ptr = {d = 0x79a9740}} filter = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x79a9950}, d = 0x79a9950}}, <No data fields>} fileInfoList = {<QListSpecialMethods<QFileInfo>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x79a98e0}, d = 0x79a98e0}}
PS: How can I compil Qt to get the same behaviors than compiled one?
-
valgrind has issues with JIT'ed code, try to run with
--smc-check=all
. See also https://www.valgrind.org/docs/manual/faq.html#faq.java -
valgrind has issues with JIT'ed code, try to run with
--smc-check=all
. See also https://www.valgrind.org/docs/manual/faq.html#faq.java