You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to debug using GDB. However, after I reached the segmentation fault, backtrace command could not work correctly. I only know the segmentation fault happened in a longjmp.
gef➤ x/i $rip
=> 0x7ffff7653dbe <__longjmp+142>: jmp rdx
gef➤ i r rdx
rdx 0x517b4ba1a508d24e 0x517b4ba1a508d24e
gef➤ bt
#0 __longjmp () at ../sysdeps/x86_64/__longjmp.S:111
#1 0x517b4ba1a508d24e in ?? ()
Backtrace stopped: Cannot access memory at address 0x517b4ba1a508d24e
Additional information
Fuzz without coverage worked well
The text was updated successfully, but these errors were encountered:
blabla-my
changed the title
Segmentation fault in longjmp instruction while collecting coverage
Segmentation fault in longjmp while collecting coverage
Feb 15, 2025
After further debugging, I find the backtrace of this problem, while calling translate_linear_long_mode() in init_sourcecov(), an exception happened,
gef➤ bt
#0 BX_CPU_C::exception (vector=0xe, error_code=0x1) at ../../bochs/cpu/exception.cc:1012#1 0x00000000004e1a11 in BX_CPU_C::page_fault (fault=0x1, laddr=0x558a53d05790, user=0x0, rw=0x0) at ../../bochs/cpu/paging.cc:530#2 0x00000000004e2051 in BX_CPU_C::translate_linear_long_mode (laddr=0x558a53d05790, lpf_mask=@0x7fffffffd340: 0xfff, pkey=@0x7fffffffd344: 0x0, user=0x0, rw=0x0) at ../../bochs/cpu/paging.cc:845#3 0x000000000044faee in init_sourcecov (baseaddr=<optimized out>) at sourcecov.cc:260#4 0x000000000040dbda in LLVMFuzzerTestOneInput (Data=0x2030060 "`\303\001\002", Size=0x0) at main.cc:190
The longjmp is at the end of the BX_CPU_C::exception().
Hello everyone. I am trying to collect coverage of qemu 8.0.0 but failed. Details are listed below:
System info
L0 OS: ubuntu20.04, kernel version 6.0.0,
L1 qemu: 8.0.0
L2 qemu: 8.0.0 with clang coverage
Steps
Output
Debug result
I tried to debug using GDB. However, after I reached the segmentation fault,
backtrace
command could not work correctly. I only know the segmentation fault happened in a longjmp.Additional information
The text was updated successfully, but these errors were encountered: