Skip to content

OpenBSD Intel32bit native exception failure #496

@rmottola

Description

@rmottola

Native exceptions on OpenBSD Intel 32bit do not work.
Even without unwind lib, I have this:

On OpenBSD 7.3 with GCC 11.2, I get this stacktrace that shows breackage inside gcc unwind itself:

#0  thrkill () at /tmp/-:3
#1  0x0ca714f0 in _libc_raise (s=6) at /usr/src/lib/libc/gen/raise.c:37
#2  0x0ca947e6 in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
#3  0x09dabcd5 in uw_init_context_1 (
    context=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>, 
    context@entry=0xcf7dc970, 
    outer_cfa=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>, 
    outer_cfa@entry=0xcf7dcb50, 
    outer_ra=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>)
    at /pobj/gcc-11.2.0/gcc-11.2.0/libgcc/unwind-pe.h:88
#4  0x09dab7ff in _Unwind_RaiseException (exc=0x57803940) at /pobj/gcc-11.2.0/gcc-11.2.0/libgcc/unwind-dw2.c:1381
#5  0x09da9120 in objc_exception_throw (exception=0x749ff990) at /pobj/gcc-11.2.0/gcc-11.2.0/libobjc/exception.c:515
#6  0x006f579e in -[NSException raise] (self=0x749ff990, _cmd=0x20437c90 <_OBJC_SELECTOR_TABLE+272>)
    at NSException.m:1615
#7  0x006f4918 in +[NSException raise:format:arguments:] (self=0x20437e40 <_OBJC_Class_NSException>, 
    _cmd=0x20437c78 <_OBJC_SELECTOR_TABLE+248>, name=0x3521b6b4 <_OBJC_INSTANCE_7.8>, 
    format=0x3521b714 <_OBJC_INSTANCE_15.0>, argList=0xcf7dcc40 "\212\300!\025\060") at NSException.m:1494
#8  0x006f5425 in +[NSException raise:format:] (self=0x20437e40 <_OBJC_Class_NSException>, 
    _cmd=0x3521b838 <_OBJC_SELECTOR_TABLE+152>, name=0x3521b6b4 <_OBJC_INSTANCE_7.8>, 
    format=0x3521b714 <_OBJC_INSTANCE_15.0>) at NSException.m:1403
#9  0x1522b596 in gnustep_base_user_main () at basic.m:48
#10 0x00789882 in main (argc=1, argv=0xcf7dcd94, env=0xcf7dcd9c) at NSProcessInfo.m:1867
#11 0x1521eb05 in _start ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions