Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Arjan van Vught Newsgroups: gnu.utils.help Subject: Re: arm-none-eabi-objdump: Reading section .bss failed because: memory exhausted Date: Tue, 7 Apr 2020 18:06:51 +0200 Lines: 106 Approved: help-gnu-utils@gnu.org Message-ID: References: <58616427-9DBC-4DF7-AF74-6EAA6844492B@gmail.com> <20200406183213536211500@bob.proulx.com> <3179994E-5E74-48D5-9120-0A1AC5D4FBA1@gmail.com> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1586275623 12548 209.51.188.17 (7 Apr 2020 16:07:03 GMT) X-Complaints-To: action@cs.stanford.edu Cc: help-gnu-utils@gnu.org To: Bob Proulx Envelope-to: help-gnu-utils@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=7gQ7hI1fu7V73nQmrIIpbD5EIA+lP39Im6yKHm4gdEs=; b=d/eWBCXOyVg4e/mbkDx+cOGePrNPU2JqRC4ChWK/xpD9zSdDC5e+DbPcPDO8WjwgH+ vv30wUCrHDHYkCdj2iCOKPgXYHDWMMmi0nD/5t/EB/ywbFoH0Mk3JqBDqj7D+bfZg78k y+gt/TrNGDAFpvalg7i03tNsMTV9TKXtLIPwJDqeM9TZVHXG7o0vUBiBWdUhJF13wdos WWDlQfohztcBpi3Ogd0MHGItEypdlgXdNDYrQ1Ozvn58aZmYu7zPGJQFsHwarrpzMLjf pXqqr5Z7HNrWxFbucvEqycJtQAsczLdkcnFl85f8Yqt+hapOgLt9mpz1LPWJEJxYoQHY riFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=7gQ7hI1fu7V73nQmrIIpbD5EIA+lP39Im6yKHm4gdEs=; b=d5KOfrtNzd+4eKyNGZpb/JptClfEj6qZksz3H+73CI5zxAo574NIwU29jGWOnqW2Tk lLdUG1gDVUFzegcwY9keuMYQ/X7Z1QZIKoN9JA9i81m6uJSlfFg2q7EH4KvN0KPL+mdi tAiCUsJlQgjcNefeMx9JfDtVL+E3qe2+nBtsE0IxuAaxYcNRHepKxbQx7t3QNoX3GjYM 3sPp97mHXERwt8ccnE5sL99I157JLxExVYcORwZdnLofOwba8Byt/sYpI4IPst1kcL0j Vcj0h10hCPoWkEcxV/szFItR51g/CcZcZesfng9v6TZlHGC8sjz3Nv6aywkLpkCXCy1m ToEA== X-Gm-Message-State: AGi0PuY2xNRDs/lQ/mCD9xppy/9bzdO06QYYRC4YqH4UeUKljUsz2N6E yr2YaJidQ3r/EOM5vEENvqXNHqB58Pk= X-Google-Smtp-Source: APiQypK8wwOm2TKuWBwIDRnUoRlk/C0MggXb+sXutM3BpobB+BCQ4jbidrgKsj/y6GeS7+c28mhN1A== X-Received: by 2002:a1c:98c3:: with SMTP id a186mr40744wme.178.1586275614358; Tue, 07 Apr 2020 09:06:54 -0700 (PDT) In-Reply-To: <20200406183213536211500@bob.proulx.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-utils@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU utilities List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <3179994E-5E74-48D5-9120-0A1AC5D4FBA1@gmail.com> X-Mailman-Original-References: <58616427-9DBC-4DF7-AF74-6EAA6844492B@gmail.com> <20200406183213536211500@bob.proulx.com> Xref: csiph.com gnu.utils.help:322 > Op 7 apr. 2020, om 02:41 heeft Bob Proulx het = volgende geschreven: >=20 > This mailing list has very little activity. I don't know and would > normally comment but I hate to see people post questions and then not > get any response at all. Therefore I will comment here in the hope > that I might be able to get you to a better place to ask your = question. Hi Bob, thank you working on this issue with me. Much appreciated. >=20 > Arjan van Vught wrote: >> What does the error mean? Is it just that the .list file is not >> generated completely? This error got introduced when upgrading from >> version 7 to 9. >=20 > Upgrading what from version 7 to what version 9? What is being > upgraded? With the brew cask upgrade the GNU tools got updated from 7 to 9 -> arm-none-eabi-objdump --version GNU objdump (GNU Tools for Arm Embedded Processors 9-2019-q4-major) = 2.33.1.20191025 >=20 >> arm-none-eabi-objdump -D lib_h3/libh3.a | arm-none-eabi-c++filt > = lib_h3/lib.list >> arm-none-eabi-objdump: error: lib_h3/libh3.a(h3_codec.o)(.bss) = section size (0x800c bytes) is larger than file size (0xde8 bytes) >=20 > The BSS section is normally used to store static data. In a C program > if one is defining a variable with initialized data then this will go > into the BSS section. >=20 > int iii =3D 42; >=20 > It makes no sense if the BSS segment is larger than the file size. It > makes me thing there is a data corruption problem. Or perhaps the > file system is full and part of the file could not be written. Or > potentially other problem of which this is only a down stream cascade > failure with a different root cause. arjanvanvught@MacBook-Air lib-h3 % arm-none-eabi-objdump -D = lib_h3/libh3.a | arm-none-eabi-c++filt > lib_h3/lib.list arm-none-eabi-objdump: error: lib_h3/libh3.a(h3_codec.o)(.bss) section = size (0x800c bytes) is larger than file size (0xde8 bytes) arm-none-eabi-objdump: Reading section .bss failed because: memory = exhausted arm-none-eabi-objdump: error: lib_h3/libh3.a(udp.o)(.bss) section size = (0x19934 bytes) is larger than file size (0xcfc bytes) arm-none-eabi-objdump: Reading section .bss failed because: memory = exhausted arjanvanvught@MacBook-Air lib-h3 % echo $? = =20 0 arjanvanvught@MacBook-Air lib-h3 % ls -al build_h3/src/h3_codec.o = =20 -rwx------ 1 arjanvanvught staff 3560 7 apr 17:50 = build_h3/src/h3_codec.o The file size of the object file is 3560 bytes which is the (0xde8 = bytes) as mentioned in the error. Why would there be an error or even = better; why would there be any relationship between the allocated bytes = in .bss and the object file size?=20 objdump is just displaying information from object files. This looks to = me as an internal error for objdump. The objdump exit code is 0. Therefore the command is completing = correctly.=20 >=20 > Reference: >=20 > https://en.wikipedia.org/wiki/.bss >=20 >> arm-none-eabi-objdump: Reading section .bss failed because: memory = exhausted >=20 > Memory exhausted indicates that the program tried to allocate memory > or tried to fork and whichever action it was failed due to being out > of virtual memory. >=20 > I would look to see if the storage filled up. I would look to see if > whatever you are doing ran out of memory. >=20 > Since this is ARM I assume some type of NAND flash file system. In > which case I would look for a failure of the storage such as due to > worn out storage cells. If it is an SD card I would try reading from > every byte and verifying that the storage device is working okay. I > have had SD cards using NAND storage and other similar devices fail > creating file corruption. The cross-compilation is running on MacOS with 8GB RAM. It would be = surprising to me when objdump, working with a relative small archive = file, is running out memory. It seems to be that there is somehow a bug introduced within objdump. Would it be good to open a bug report with objdump?=20 Thanks, Arjan >=20 > Bob