Bug#929777: gcc-6: output errors to .gcda file are not checked

2021-08-04 Thread Vincent Lefevre
Control: retitle -1 gcc: some errors in output to .gcda file are not checked
Control: tags -1 fixed-upstream

On 2021-08-04 12:33:38 +0200, Vincent Lefevre wrote:
> I've just reported the bug upstream (and with a GCC 12 snapshot
> I built a few days ago, I don't even get an error message).

I've found the cause and proposed a patch, which has been committed
in master:

https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=929f2cf4105ccf12d0684c6d5838f58f0ee5e7c7

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#929777: gcc-6: output errors to .gcda file are not checked

2021-08-04 Thread Vincent Lefevre
Control: reassign -1 gcc-10 10.2.1-6
Control: tags -1 upstream
Control: forwarded -1 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101773

On 2019-05-31 01:19:47 +0200, Vincent Lefevre wrote:
> Write failures should be detected, and when this happens,
> the program should terminate with a non-zero exit status
> as usual.

gcc-10 now outputs an error message when running the program, e.g.

libgcov profiling error:dir/#home#vlefevre#tst.gcda:Error writing

but the exit status is still 0, which is an issue for scripts.

I've just reported the bug upstream (and with a GCC 12 snapshot
I built a few days ago, I don't even get an error message).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#929777: gcc-6: output errors to .gcda file are not checked

2019-05-30 Thread Vincent Lefevre
Package: gcc-6
Version: 6.3.0-18+deb9u1
Severity: normal

When executing a program compiled with profile generation
(-fprofile-generate), the obtained .gcda file is sometimes
empty (apparently due to write errors). The problem is that
the program terminates successfully, so that the issue is
not detected. Well, "gcc -fprofile-use" outputs a warning,
but that's all.

Write failures should be detected, and when this happens,
the program should terminate with a non-zero exit status
as usual.

-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/64 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-6 depends on:
ii  binutils  2.28-5
ii  cpp-6 6.3.0-18+deb9u1
ii  gcc-6-base6.3.0-18+deb9u1
ii  libc6 2.24-11+deb9u4
ii  libcc1-0  6.3.0-18+deb9u1
ii  libgcc-6-dev  6.3.0-18+deb9u1
ii  libgcc1   1:6.3.0-18+deb9u1
ii  libgmp10  2:6.1.2+dfsg-1
ii  libisl15  0.18-1
ii  libmpc3   1.0.3-1+b2
ii  libmpfr4  3.1.5-1
ii  libstdc++66.3.0-18+deb9u1
ii  zlib1g1:1.2.8.dfsg-5

Versions of packages gcc-6 recommends:
ii  libc6-dev  2.24-11+deb9u4

Versions of packages gcc-6 suggests:
pn  gcc-6-doc 
pn  gcc-6-locales 
ii  gcc-6-multilib6.3.0-18+deb9u1
pn  libasan3-dbg  
pn  libatomic1-dbg
pn  libcilkrts5-dbg   
pn  libgcc1-dbg   
pn  libgomp1-dbg  
pn  libitm1-dbg   
pn  liblsan0-dbg  
pn  libmpx2-dbg   
pn  libquadmath0-dbg  
pn  libtsan0-dbg  
pn  libubsan0-dbg 

-- no debconf information