From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0B2C3858CDA; Mon, 11 Dec 2023 18:29:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0B2C3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702319348; bh=YjR2jG9bVnS2hODqTuPngX/fQufu6ddGwcL+8a0SpvE=; h=From:To:Subject:Date:From; b=Wo+zT7EiSlKI0U5Qb29V4ebsrCtYL4A6Fylx+ZCDSPjcrxCywMY+RaxPNL9DiPFGW R7Mor8qyPrap1Vj4GHsL/0I+XkDIrgExcY0roOdcRzyAWW4RMRpIgaSUYeL0gxeU7y GasJ/ukegWprK19qd0eHGC6muMMah1+E9q07kbdc= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/112965] New: Valgrind error on gcc.dg/analyzer/fd-dup-1.c Date: Mon, 11 Dec 2023 18:29:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112965 Bug ID: 112965 Summary: Valgrind error on gcc.dg/analyzer/fd-dup-1.c Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- With valgrind checking I'm seeing Executing on host: /home/jakub/src/gcc/obj88/gcc/xgcc -B/home/jakub/src/gcc/obj88/gcc/=20 /home/jakub/src/gcc/gcc/testsuite/gcc.dg/analyzer/fd-dup-1.c=20=20=20 -fdiagnostics-plain-output - fanalyzer -Wanalyzer-too-complex -Wanalyzer-symbol-too-complex -fanalyzer-call-summaries -S -o fd-dup-1.s (timeout =3D 300) spawn -ignore SIGHUP /home/jakub/src/gcc/obj88/gcc/xgcc -B/home/jakub/src/gcc/obj88/gcc/ /home/jakub/src/gcc/gcc/testsuite/gcc.dg/analyzer/fd-dup-1.c -fdiagnostics-plain-output -fana lyzer -Wanalyzer-too-complex -Wanalyzer-symbol-too-complex -fanalyzer-call-summaries -S -o fd-dup-1.s =3D=3D395421=3D=3D Conditional jump or move depends on uninitialised value(= s) =3D=3D395421=3D=3D at 0x1DC5D3E: search_line_sse42(unsigned char const*,= unsigned char const*) (lex.cc:467) =3D=3D395421=3D=3D by 0x1DC6944: _cpp_clean_line (lex.cc:960) =3D=3D395421=3D=3D by 0x1DC6DD2: bool get_fresh_line_impl(cpp_rea= der*) (lex.cc:3747) =3D=3D395421=3D=3D by 0x1DCB6FC: _cpp_get_fresh_line (lex.cc:3785) =3D=3D395421=3D=3D by 0x1DCB6FC: _cpp_lex_direct (lex.cc:3838) =3D=3D395421=3D=3D by 0x1DCD428: _cpp_lex_token (lex.cc:3670) =3D=3D395421=3D=3D by 0x1DD3A97: cpp_get_token_1(cpp_reader*, unsigned i= nt*) (macro.cc:2936) =3D=3D395421=3D=3D by 0x7DD20A: get_token (c-lex.cc:311) =3D=3D395421=3D=3D by 0x7DD20A: c_lex_with_flags(tree_node**, unsigned i= nt*, unsigned char*, int) (c-lex.cc:552) =3D=3D395421=3D=3D by 0x785BFA: consider_macro (c-parser.cc:1854) =3D=3D395421=3D=3D by 0x785BFA: ana::c_translation_unit::lookup_constant_by_id(tree_node*) const (c-parser.cc:1789) =3D=3D395421=3D=3D by 0x10540A5: ana::maybe_stash_named_constant(ana::lo= gger*, ana::translation_unit const&, char const*) (analyzer-language.cc:73) =3D=3D395421=3D=3D by 0x105449E: stash_named_constants (analyzer-languag= e.cc:96) =3D=3D395421=3D=3D by 0x105449E: ana::on_finish_translation_unit(ana::translation_unit const&) (analyzer-language.cc:124) =3D=3D395421=3D=3D by 0x785442: c_parser_translation_unit (c-parser.cc:1= 935) =3D=3D395421=3D=3D by 0x785442: c_parse_file() (c-parser.cc:26713) =3D=3D395421=3D=3D by 0x7F6331: c_common_parse_file() (c-opts.cc:1301) =3D=3D395421=3D=3D=20 =3D=3D395421=3D=3D Use of uninitialised value of size 8 =3D=3D395421=3D=3D at 0x1DC6948: _cpp_clean_line (lex.cc:962) =3D=3D395421=3D=3D by 0x1DC6DD2: bool get_fresh_line_impl(cpp_rea= der*) (lex.cc:3747) =3D=3D395421=3D=3D by 0x1DCB6FC: _cpp_get_fresh_line (lex.cc:3785) =3D=3D395421=3D=3D by 0x1DCB6FC: _cpp_lex_direct (lex.cc:3838) =3D=3D395421=3D=3D by 0x1DCD428: _cpp_lex_token (lex.cc:3670) =3D=3D395421=3D=3D by 0x1DD3A97: cpp_get_token_1(cpp_reader*, unsigned i= nt*) (macro.cc:2936) =3D=3D395421=3D=3D by 0x7DD20A: get_token (c-lex.cc:311) =3D=3D395421=3D=3D by 0x7DD20A: c_lex_with_flags(tree_node**, unsigned i= nt*, unsigned char*, int) (c-lex.cc:552) =3D=3D395421=3D=3D by 0x785BFA: consider_macro (c-parser.cc:1854) =3D=3D395421=3D=3D by 0x785BFA: ana::c_translation_unit::lookup_constant_by_id(tree_node*) const (c-parser.cc:1789) =3D=3D395421=3D=3D by 0x10540A5: ana::maybe_stash_named_constant(ana::lo= gger*, ana::translation_unit const&, char const*) (analyzer-language.cc:73) =3D=3D395421=3D=3D by 0x105449E: stash_named_constants (analyzer-languag= e.cc:96) =3D=3D395421=3D=3D by 0x105449E: ana::on_finish_translation_unit(ana::translation_unit const&) (analyzer-language.cc:124) =3D=3D395421=3D=3D by 0x785442: c_parser_translation_unit (c-parser.cc:1= 935) =3D=3D395421=3D=3D by 0x785442: c_parse_file() (c-parser.cc:26713) =3D=3D395421=3D=3D by 0x7F6331: c_common_parse_file() (c-opts.cc:1301) =3D=3D395421=3D=3D by 0xCFF87D: compile_file() (toplev.cc:446) I vaguely remember the buffers for libcpp need to be aligned at the end so = that the lex.cc fastpath can read it 8 bytes at a time, but I coiuld be wrong.=