From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0733E3842404; Thu, 9 Jul 2020 17:55:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0733E3842404 From: "lemo1234 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/25102] internal-error: bool value_contents_bits_eq(const value*, int, const value*, int, int): Assertion `offset2 + length <= TYPE_LENGTH (val2->enclosing_type) * TARGET_CHAR_BIT' failed Date: Thu, 09 Jul 2020 17:55:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 8.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lemo1234 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 17:55:33 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25102 lemo1234 at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lemo1234 at gmail dot com --- Comment #1 from lemo1234 at gmail dot com --- I hit the same assert failure with GCC 9.2, debugging a C++ application bui= lt with GCC 8.4.0: ../../gdb/value.c:850: internal-error: bool value_contents_bits_eq(const value*, int, const value*, int, int): Assertion `offset2 + length <=3D TYPE_LENGTH (val2->enclosing_type) * TARGET_CHAR_BIT' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Loading the GDB core dump: #0 0x00007f1e7788bf47 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007f1e7788d8b1 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x000056162488ab96 in dump_core () at ../../gdb/utils.c:203 #3 0x000056162488fc5d in internal_vproblem(internal_problem *, const char = *, int, const char *, typedef __va_list_tag __va_list_tag *) ( problem=3D0x561624eadb20 , file=3D, line=3D850, fmt=3D, ap=3D) at ../../gdb/utils= .c:413 #4 0x000056162488fe0b in internal_verror (file=3D, line=3D, fmt=3D, ap=3Dap@entry=3D0x7fff867ceb= 50) at ../../gdb/utils.c:438 #5 0x00005616246c5d8f in internal_error (file=3Dfile@entry=3D0x561624a81df5 "../../gdb/value.c", line=3Dline@entry=3D850, fmt=3D) at ../../gdb/gdbsupport/errors.c:55 #6 0x00005616248a0e0f in value_contents_bits_eq (length=3D128, offset2=3D2= 176, val2=3D0x561661b32560, offset1=3D1408, val1=3D0x561661b32560) at ../../gdb/value.c:787 #7 value_contents_eq (val1=3Dval1@entry=3D0x561661b32560, offset1=3Doffset1@entry=3D176, val2=3Dval2@entry=3D0x561661b32560, offset2=3Doffset2@entry=3D272, length=3Dlength@entry=3D16) at ../../gdb/value.c:901 #8 0x000056162489d6ab in val_print_array_elements (type=3D, embedded_offset=3Dembedded_offset@entry=3D176, address=3Daddress@entry=3D140737488341504,=20 stream=3Dstream@entry=3D0x7fff867cfbd0, recurse=3Drecurse@entry=3D3, val=3Dval@entry=3D0x561661b32560, options=3D0x7fff867cef50, i=3D) at ../../gdb/valprint.c:2059 #9 0x00005616245eee9b in c_val_print_array (options=3D0x7fff867cef50, original_value=3D0x561661b32560, recurse=3D3, stream=3D0x7fff867cfbd0, address=3D140737488341504,=20 embedded_offset=3D176, valaddr=3D, type=3D) at ../../gdb/c-valprint.c:328 #10 c_val_print (type=3D, embedded_offset=3D176, address=3D140737488341504, stream=3D0x7fff867cfbd0, recurse=3D3, original_value=3D0x561661b32560,=20 options=3D0x7fff867cef50) at ../../gdb/c-valprint.c:510 #11 0x000056162489c1f4 in val_print (type=3Dtype@entry=3D0x5616634a47b0, embedded_offset=3D176, address=3Daddress@entry=3D140737488341504, stream=3Dstream@entry=3D0x7fff867cfbd0,=20 recurse=3Drecurse@entry=3D3, val=3Dval@entry=3D0x561661b32560, options= =3D, language=3D0x561624e8ae60 ) at ../../gdb/valprint.c:1083 #12 0x0000561624631408 in cp_print_value_fields (type=3D0x5616634a2900, real_type=3D, offset=3D112, address=3D140737488341504, stream=3D0x7fff867cfbd0, recurse=3D2,=20 val=3D, options=3D, dont_print_vb=3D, dont_print_statmem=3D) at ../../gdb/cp-valprint.c:336 #13 0x00005616246318a1 in cp_print_value (dont_print_vb=3D, options=3D0x7fff867cf7e0, val=3D, recurse=3D, stream=3D0x7fff867cfbd0,=20 address=3D, offset=3D, real_type=3D, type=3D0x56166167f830) at ../../gdb/cp-valprint.c:576 #14 cp_print_value_fields (type=3D0x56166167f830, real_type=3D0x56166654c4f= 0, offset=3D112, address=3D140737488341504, stream=3D0x7fff867cfbd0, recurse= =3D1, val=3D,=20 options=3D, dont_print_vb=3D0x56162562cff0, dont_print_statmem=3D) at ../../gdb/cp-valprint.c:165 #15 0x00005616246318a1 in cp_print_value (dont_print_vb=3D, options=3D0x7fff867cf7e0, val=3D, recurse=3D, stream=3D0x7fff867cfbd0,=20 address=3D, offset=3D, real_type=3D, type=3D0x56166337c7d0) at ../../gdb/cp-valprint.c:576 #16 cp_print_value_fields (type=3D0x56166337c7d0, real_type=3D0x56166654c4f= 0, offset=3D0, address=3D140737488341504, stream=3D0x7fff867cfbd0, recurse=3D0, val=3D,=20 options=3D, dont_print_vb=3D0x0, dont_print_statmem=3D) at ../../gdb/cp-valprint.c:165 #17 0x00005616246323b5 in cp_print_value_fields_rtti (type=3D, type@entry=3D0x56166337c7d0, valaddr=3Dvaladdr@entry=3D0x561625719230 "PN\374\367\377\177",=20 offset=3Doffset@entry=3D0, address=3Daddress@entry=3D140737488341504, stream=3Dstream@entry=3D0x7fff867cfbd0, recurse=3D, val=3D0x561661b32560,=20 options=3D0x7fff867cf7e0, dont_print_vb=3D0x0, dont_print_statmem=3D0) = at ../../gdb/cp-valprint.c:429 #18 0x00005616245ee513 in c_val_print_struct (type=3D0x56166337c7d0, valaddr=3D0x561625719230 "PN\374\367\377\177", embedded_offset=3D0, address=3D140737488341504,=20 stream=3D0x7fff867cfbd0, recurse=3D, original_value=3D0x561661b32560, options=3D0x7fff867cf7e0) at ../../gdb/c-valprint.c:408 #19 0x00005616245eea3c in c_val_print (type=3D, embedded_off= set=3D0, address=3D140737488341504, stream=3D0x7fff867cfbd0, recurse=3D0,=20 original_value=3D0x561661b32560, options=3D0x7fff867cf7e0) at ../../gdb/c-valprint.c:529 #20 0x000056162489c1f4 in val_print (type=3D0x56165dcc9de0, embedded_offset= =3D0, address=3D140737488341504, stream=3D0x7fff867cfbd0, recurse=3D0, val=3D0x56= 1661b32560,=20 options=3D, language=3D0x561624e8ae60 ) at ../../gdb/valprint.c:1083 #21 0x000056162489c38a in common_val_print (language=3D0x561624e8ae60 , options=3D0x7fff867cfab0, recurse=3D0, stream=3D0x7fff867cfbd0, val=3D0x561661b32560) at ../../gdb/valprint.c:1191 #22 common_val_print (val=3D, stream=3D0x7fff867cfbd0, recur= se=3D0, options=3D0x7fff867cfab0, language=3D0x561624e8ae60 ) at ../../gdb/valprint.c:1174 #23 0x000056162489e10b in generic_val_print_ref (options=3D0x7fff867cfab0, original_value=3D0x7fff867cfbd0, recurse=3D0, stream=3D0x7fff867cfbd0, embedded_offset=3D-2038629712,=20 type=3D0x56165dcc9f20) at ../../gdb/valprint.c:599 #24 generic_val_print (type=3D0x56165dcc9f20, embedded_offset=3Dembedded_offset@entry=3D0, address=3Daddress@entry=3D1407= 37488341216, stream=3Dstream@entry=3D0x7fff867cfbd0,=20 recurse=3Drecurse@entry=3D0, original_value=3Doriginal_value@entry=3D0x56165fe49fe0, options=3D0x7fff867= cfab0, decorations=3D0x561624dc5020 ) at ../../gdb/valprint.c:929 #25 0x00005616245eec59 in c_val_print (type=3D, embedded_off= set=3D0, address=3D140737488341216, stream=3D0x7fff867cfbd0, recurse=3D0,=20 original_value=3D0x56165fe49fe0, options=3D0x7fff867cfab0) at ../../gdb/c-valprint.c:559 #26 0x000056162489c1f4 in val_print (type=3D0x56165dcc9f20, embedded_offset= =3D0, address=3D140737488341216, stream=3D0x7fff867cfbd0, recurse=3D0, val=3D0x56= 165fe49fe0,=20 options=3D, language=3D0x561624e8ae60 ) at ../../gdb/valprint.c:1083 #27 0x000056162489c38a in common_val_print (language=3D0x561624e8ae60 , options=3D0x7fff867cfba0, recurse=3D0, stream=3D0x7fff867cfbd0, val=3D0x56165fe49fe0) at ../../gdb/valprint.c:1191 #28 common_val_print (val=3D, stream=3Dstream@entry=3D0x7fff= 867cfbd0, recurse=3Drecurse@entry=3D0, options=3Doptions@entry=3D0x7fff867cfba0,=20 (gdb) frame 6 #6 0x00005616248a0e0f in value_contents_bits_eq (length=3D128, offset2=3D2= 176, val2=3D0x561661b32560, offset1=3D1408, val1=3D0x561661b32560) at ../../gdb/value.c:787 (gdb) info args length =3D 128 offset2 =3D 2176 val2 =3D 0x561661b32560 offset1 =3D 1408 val1 =3D 0x561661b32560 (gdb) p val2->enclosing_type->length $3 =3D 272 --=20 You are receiving this mail because: You are on the CC list for the bug.=