llvm/llvm-project

DWARF parser: <DW_OP_piece for offset 4 but top of stack is of size 8>

Open

#39.145 aberto em 27 de nov. de 2018

Ver no GitHub
 (6 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
bugzillagood first issuelldbwrong-debug

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

Bugzilla Link 39798
Version 7.0
OS All
Attachments testcase
Reporter LLVM Bugzilla Contributor

Extended Description

(lldb) b main Breakpoint 1: where = a.out`main + 4 at a-prepro.c:2303:5, address = 0x0000000100000b44 (lldb) r Process 81971 launched: '/Users/davide/work/llvm-project-20170507/build-rel/bin/a.out' (x86_64) a.out was compiled with optimization - stepping may behave oddly; variables may not be available. Process 81971 stopped

  • thread #​1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #​0: 0x0000000100000b44 a.out`main(argc=1, argv=0x00007ffeefbffaf0) at a-prepro.c:2303:5 [opt] 2300 int print_hash_value = 0; 2301 if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1; 2302 platform_main_begin(); -> 2303 func_1(); 2304 for (i = 0; i < 8; i++) 2305 { 2306 csmith_sink_ = g_8[i]; (lldb) frame var g_88 (S0 [5]) g_88 = <DW_OP_piece for offset 4 but top of stack is of size 108>

(lldb) p g_88 error: Couldn't materialize: couldn't get the value of variable g_88: DW_OP_piece for offset 4 but top of stack is of size 108 error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression

$ ./clang a-prepro.c -g -O1 -Wno-everything

Guia do colaborador