Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722920 - sys-apps/dchroot-0.12.1 : dchroot.c: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
Summary: sys-apps/dchroot-0.12.1 : dchroot.c: error: writing 1 byte into a region of s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 824542 (view as bug list)
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2020-05-14 07:29 UTC by Toralf Förster
Modified: 2022-06-11 05:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.71 KB, text/plain)
2020-05-14 07:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,102.82 KB, text/plain)
2020-05-14 07:29 UTC, Toralf Förster
Details
environment (environment,45.59 KB, text/plain)
2020-05-14 07:29 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.19 KB, application/x-bzip)
2020-05-14 07:29 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.23 KB, application/x-bzip)
2020-05-14 07:29 UTC, Toralf Förster
Details
sys-apps:dchroot-0.12.1:20200514-001158.log (sys-apps:dchroot-0.12.1:20200514-001158.log,3.15 KB, text/plain)
2020-05-14 07:29 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,12.52 KB, application/x-bzip)
2020-05-14 07:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-05-14 07:29:11 UTC
x86_64-pc-linux-gnu-gcc -Wl,-z,now -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wall -Wstrict-prototypes -Werror -g -DDCHROOT_VERSION=\0.12.1\ dchroot.c -o dchroot
dchroot.c: In function do_chroot:
dchroot.c:272:15: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  272 |    command[0] = \0;
      |    ~~~~~~~~~~~^~~~~~
dchroot.c:265:14: note: at offset 0 to an object with size 0 allocated by malloc here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl-20200511-231200

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7 (fallback)
  [3]   python3.6 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.43.1 *
The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu 14 May 2020 12:05:27 AM UTC
/var/db/repos/libressl	Sat 11 Apr 2020 05:02:25 AM UTC

emerge -qpvO sys-apps/dchroot
[ebuild  N    ] sys-apps/dchroot-0.12.1
Comment 1 Toralf Förster gentoo-dev 2020-05-14 07:29:14 UTC
Created attachment 638754 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-14 07:29:17 UTC
Created attachment 638756 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-05-14 07:29:20 UTC
Created attachment 638758 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-05-14 07:29:23 UTC
Created attachment 638760 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-05-14 07:29:25 UTC
Created attachment 638762 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-14 07:29:28 UTC
Created attachment 638764 [details]
sys-apps:dchroot-0.12.1:20200514-001158.log
Comment 7 Toralf Förster gentoo-dev 2020-05-14 07:29:31 UTC
Created attachment 638766 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2021-04-15 06:47:46 UTC
Dear treecleaner@:

I'm still able to reproduce this issue right now.

Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 05:50:13 UTC
*** Bug 824542 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2022-06-11 05:58:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dcd1282bb88bec17d5eed2f93f4ee73b4fff978

commit 5dcd1282bb88bec17d5eed2f93f4ee73b4fff978
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-11 05:50:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-11 05:50:43 +0000

    sys-apps/dchroot: drop Werror
    
    Bug: https://bugs.gentoo.org/824542
    Closes: https://bugs.gentoo.org/722920
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/dchroot/dchroot-0.12.1.ebuild                |  9 +++++++--
 sys-apps/dchroot/files/dchroot-0.12.1-no-werror.patch | 13 +++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)