Skip to content

Encountered an unhandled type tag error on malformed print statement #23506

Open
@kevinushey

Description

@kevinushey
Bugzilla Link 23132
Version unspecified
OS All

Extended Description

Was testing out lldb in stepping through a simple mean function, and stumbled into this:

Breakpoint 2: where = sourceCpp_57725.so`Rcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get() const + 351 at mean.h:46, address = 0x000000010cf7e79f
(lldb) c
Process 4169 resuming
Process 4169 stopped

  • thread #​1: tid = 0x70d5, 0x000000010cf7e79f sourceCpp_57725.soRcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get(this=<unavailable>) const + 351 at mean.h:46, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1 frame #&#8203;0: 0x000000010cf7e79f sourceCpp_57725.soRcpp::sugar::Mean<14, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::get(this=) const + 351 at mean.h:46
    43 for (int i = 0; i < n; i++) {
    44 t += input[i] - s;
    45 }
    -> 46 s += t/n;
    47 }
    48 return (double)s ;
    49 }
    (lldb) print s
    error: portsrc.o {0x0000c21b}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
    error: portsrc.o {0x0000dec0}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
    error: portsrc.o {0x0000699d}: unhandled type tag 0x0027 (DW_TAG_constant), please file a bug and attach the file at the start of this error message
    error: warning: Stopped in a C++ method, but 'this' isn't available; pretending we are in a generic context
    error: use of undeclared identifier 's'
    error: 1 errors parsing expression

This is with git commit 1fe2076d4c88fcf374a1ce8f5486c340cb61a304; lldb was built from sources using

xcodebuild -configuration Release -target lldb-tool

Thanks,
Kevin

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillalldb

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions