[Bug gcov-profile/94394] New: [GCOV]It will cause random kernel panic during collecting kernel code coverage

2020-03-29 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94394

Bug ID: 94394
   Summary: [GCOV]It will cause random kernel panic during
collecting kernel code coverage
   Product: gcc
   Version: 9.3.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: gcov-profile
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ammy.yi at intel dot com
CC: marxin at gcc dot gnu.org
  Target Milestone: ---

It will cause random kernel panic during collecting kernel code coverage .

gcc version 9.3.1 20200319 releases

[  222.538244] #PF: supervisor instruction fetch in kernel mode
[  222.543945] #PF: error_code(0x0010) - not-present page
[  222.549133] PGD 0 P4D 0 
[  222.551719] Oops: 0010 [#1] SMP NOPTI
[  222.577223] RIP: 0010:0x0
[  222.579901] Code: Bad RIP value.
[  222.583184] RSP: 0018:ae3140f13f58 EFLAGS: 00010082
[  222.588448] RAX: 94217940 RBX:  RCX:

[  222.595618] RDX: 80004000 RSI: 89203c624440 RDI:
94217940
[  222.602781] RBP:  R08: 94203da0 R09:

[  222.609942] R10:  R11: 0002c502 R12:

[  222.617114] R13:  R14:  R15:

[  222.624283] FS:  7fc8e2c1a740() GS:89205fc0()
knlGS:
[  222.632404] CS:  0010 DS:  ES:  CR0: 80050033
[  222.638190] CR2: ffd6 CR3: 000497278005 CR4:
00fe0ef0
[  222.645354] DR0:  DR1:  DR2:

[  222.652523] DR3:  DR6: fffe0ff0 DR7:
0400
[  222.659697] PKRU: 5554
[  222.662441] Call Trace:
[  222.664924] WARNING: kernel stack frame pointer at fc81ab36 in
load_unload_mod:4080 has bad value 8657b9bc
[  222.664926] unwind stack type:0 next_sp:8657b9bc mask:0x2
graph_idx:0
[  222.664927] fc81ab36:  ...

[Bug gcov-profile/94394] [GCOV]It will cause random kernel panic during collecting kernel code coverage

2020-03-30 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94394

--- Comment #3 from ammy.yi  ---
Actually, there is some random kernel panic here. 

The following steps may reproduce this issue:

1. Enable gcov in kconfig
2. build kernel and boot to system
3. Do following load/unload modules steps

modprobe stm_p_basic
modprobe intel_th_pci
modprobe intel_th_sth
modprobe intel_th_msu
modprobe stm_console

modprobe -r stm_p_basic
modprobe -r intel_th_pci
modprobe -r intel_th_sth
modprobe -r intel_th_msu
modprobe -r stm_console

Hi martin,

If it is libgcov issue, do you know where to file issue for it?

[Bug gcov-profile/94394] [GCOV]It will cause random kernel panic during collecting kernel code coverage

2020-03-30 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94394

--- Comment #5 from ammy.yi  ---
(In reply to Martin Liška from comment #4)
> (In reply to ammy.yi from comment #3)
> > Actually, there is some random kernel panic here. 
> > 
> > The following steps may reproduce this issue:
> > 
> > 1. Enable gcov in kconfig
> > 2. build kernel and boot to system
> > 3. Do following load/unload modules steps
> > 
> > modprobe stm_p_basic
> > modprobe intel_th_pci
> > modprobe intel_th_sth
> > modprobe intel_th_msu
> > modprobe stm_console
> > 
> > modprobe -r stm_p_basic
> > modprobe -r intel_th_pci
> > modprobe -r intel_th_sth
> > modprobe -r intel_th_msu
> > modprobe -r stm_console
> 
> Would it be possible to provide a stack-traces where it usually causes a
> kernel panic?
> 
> > 
> > Hi martin,
> > 
> > If it is libgcov issue, do you know where to file issue for it?
> 
> I would create a normal linux kernel bug. The pseudo-runtime is implemented
> in kernel/gcov subfolder.


Hi Martin,

Actually, there is no detailed call trace. The whole call trace I got is added 
in my first comments

[Bug gcov-profile/91601] New: [GCOV]gcov: internal compiler error: in handle_cycle, at gcov.c:699 happen which get code coverage with lcov.

2019-08-29 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601

Bug ID: 91601
   Summary: [GCOV]gcov: internal compiler error: in handle_cycle,
at gcov.c:699 happen which get code coverage with
lcov.
   Product: gcc
   Version: 9.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: gcov-profile
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ammy.yi at intel dot com
CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Processing fs/namespace.gcda
Processing fs/fsopen.gcda
Processing fs/pipe.gcda
Processing fs/stack.gcda
Processing fs/exec.gcda
gcov: internal compiler error: in handle_cycle, at gcov.c:699
0x4037d0 handle_cycle
../../gcc-9.1.0/gcc/gcov.c:699
0x4037d0 circuit
../../gcc-9.1.0/gcc/gcov.c:765
0x45aa6c circuit
../../gcc-9.1.0/gcc/gcov.c:770
0x45aba1 get_cycles_count
../../gcc-9.1.0/gcc/gcov.c:817
0x45cd5f accumulate_line_info
../../gcc-9.1.0/gcc/gcov.c:2694
0x45cd5f accumulate_line_counts
../../gcc-9.1.0/gcc/gcov.c:2734
0x45cd5f generate_results
../../gcc-9.1.0/gcc/gcov.c:1446
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

[Bug gcov-profile/91601] [GCOV]gcov: internal compiler error: in handle_cycle, at gcov.c:699 happen which get code coverage with lcov.

2019-08-29 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601

--- Comment #1 from ammy.yi  ---
gcc version 9.2.1 20190816 gcc-9-branch@274554 (Clear Linux OS for Intel
Architecture)

[Bug gcov-profile/91601] [GCOV]gcov: internal compiler error: in handle_cycle, at gcov.c:699 happen which get code coverage with lcov.

2019-08-29 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601

--- Comment #2 from ammy.yi  ---
gcc version 9.1.1 20190503 gcc-9-branch@270849 has not this issue, but latest
gcc version 9.2.1 20190816 gcc-9-branch@274554 has this issue

[Bug gcov-profile/91601] gcov: ICE in handle_cycle, at gcov.c:699 happen which get code coverage with lcov.

2019-08-30 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601

--- Comment #4 from ammy.yi  ---
Created attachment 46785
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46785&action=edit
gcda

[Bug gcov-profile/91601] gcov: ICE in handle_cycle, at gcov.c:699 happen which get code coverage with lcov.

2019-08-30 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601

--- Comment #5 from ammy.yi  ---
Created attachment 46786
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46786&action=edit
gcno

[Bug gcov-profile/91601] gcov: ICE in handle_cycle, at gcov.c:699 happen which get code coverage with lcov.

2019-08-30 Thread ammy.yi at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601

--- Comment #6 from ammy.yi  ---
Attched gacno and gcda file.

gcov: internal compiler error: in handle_cycle, at gcov.c:699
0x4037d0 handle_cycle
../../gcc-9.1.0/gcc/gcov.c:699
0x4037d0 circuit
../../gcc-9.1.0/gcc/gcov.c:765
0x45aa6c circuit
../../gcc-9.1.0/gcc/gcov.c:770
0x45aba1 get_cycles_count
../../gcc-9.1.0/gcc/gcov.c:817
0x45cd5f accumulate_line_info
../../gcc-9.1.0/gcc/gcov.c:2694
0x45cd5f accumulate_line_counts
../../gcc-9.1.0/gcc/gcov.c:2734
0x45cd5f generate_results
../../gcc-9.1.0/gcc/gcov.c:1446
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug gcov-profile/97483] [GCOV]gcov: internal compiler error: in handle_cycle, at gcov.c:627 happen which get code coverage with lcov.

2020-10-18 Thread ammy.yi at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97483

--- Comment #1 from ammy.yi  ---
Hi,

Is this issue is same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91601?
Thanks.

[Bug gcov-profile/97483] New: [GCOV]gcov: internal compiler error: in handle_cycle, at gcov.c:627 happen which get code coverage with lcov.

2020-10-18 Thread ammy.yi at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97483

Bug ID: 97483
   Summary: [GCOV]gcov: internal compiler error: in handle_cycle,
at gcov.c:627 happen which get code coverage with
lcov.
   Product: gcc
   Version: 8.3.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: gcov-profile
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ammy.yi at intel dot com
CC: marxin at gcc dot gnu.org
  Target Milestone: ---

[Bug gcov-profile/97483] [GCOV]gcov: internal compiler error: in handle_cycle, at gcov.c:627 happen which get code coverage with lcov.

2020-10-19 Thread ammy.yi at intel dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97483

--- Comment #3 from ammy.yi  ---
We tried latest GCC with a different OS and cannot reproduce this issue.