From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64077 invoked by alias); 30 May 2018 10:16:26 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 64019 invoked by uid 48); 30 May 2018 10:16:21 -0000 From: "mliska at suse dot cz" To: elfutils-devel@sourceware.org Subject: [Bug tools/23248] New: armv7l: dwarf_getsrclines.c:362:37: error: argument 1 value '4294967288' exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=] Date: Wed, 30 May 2018 10:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mliska at suse dot cz 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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-SW-Source: 2018-q2/txt/msg00112.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23248 Bug ID: 23248 Summary: armv7l: dwarf_getsrclines.c:362:37: error: argument 1 value '4294967288' exceeds maximum object size 2147483647 [-Werror=3Dalloc-size-larger-than=3D] Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: mliska at suse dot cz CC: elfutils-devel at sourceware dot org Target Milestone: --- I see it in build service for 0.171 RC1: [ 181s] dwarf_getsrclines.c: In function 'read_srclines': [ 181s] dwarf_getsrclines.c:362:37: error: argument 1 value '4294967288' exceeds maximum object size 2147483647 [-Werror=3Dalloc-size-larger-than=3D] [ 181s] dirarray =3D (struct dirlist *) malloc (ndirlist * sizeof (*dirarray)); [ 181s]=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 181s] In file included from dwarf_getsrclines.c:34: [ 181s] /usr/include/stdlib.h:539:14: note: in a call to allocation functi= on 'malloc' declared here [ 181s] extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; [ 181s] ^~~~~~ Unfortunately I don't have any handy ARM machine I can reproduce that. But probably caused by: libdw/memory-access.h: 73 static inline uint64_t 74 __libdw_get_uleb128 (const unsigned char **addrp, const unsigned ch= ar *end) 75 { 76 uint64_t acc =3D 0; 77=20=20 78 /* Unroll the first step to help the compiler optimize 79 for the common single-byte case. */ 80 get_uleb128_step (acc, *addrp, 0); 81=20=20 82 const size_t max =3D __libdw_max_len_uleb128 (*addrp - 1, end); 83 for (size_t i =3D 1; i < max; ++i) 84 get_uleb128_step (acc, *addrp, i); 85 /* Other implementations set VALUE to UINT_MAX in this 86 case. So we better do this as well. */ 87 return UINT64_MAX; 88 } --=20 You are receiving this mail because: You are on the CC list for the bug.