https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110955

            Bug ID: 110955
           Summary: SIGSEGV in
                    libgcc_s.so.1`classify_object_over_fdes+0x140 on
                    Solaris SPARC with GCC 13 runtime
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sumbera at volny dot cz
  Target Milestone: ---

I see this on Solaris 11.4 SPARC with libgcc_s.so.1 from GCC 13.1.0 and 13.2.0.
But not with libgcc_s.so.1 from GCC 12.2.0. I don't see this with Solaris i386.

/usr/bin/gnome-shell terminated by SIGSEGV with following stack:

Loading modules: [ libc.so.1 ld.so.1 ]
gnome-shell:core> $C
    7ed252312fd1 libgcc_s.so.1`classify_object_over_fdes+0x140(a044b6f700?,
7ec86d0593d4?, 7ed252313950?, 0?, 0?, ffffb3c4?)
    7ed2523130a1 libgcc_s.so.1`__register_frame_info_bases+0x48(7ec76d05e010?,
a044b6f700?, a044b6f700?, 0?, 0?, a04460aa08?)
    7ed252313161
libLLVM-13.so`_ZN4llvm19RTDyldMemoryManager16registerEHFramesEPhmm+0x30(a0445ef9e0?,
7ec76d05e010?, 7ec76d05e010?, 4c?, 7ec76d518944?, 0?)
    7ed252313231
swrast_dri.so`_ZN26DelegatingJITMemoryManager16registerEHFramesEPhmm+0x40(a0446337a0?,
7ec76d05e010?, 7ec76d05e010?, 4c?, 7ec76dbc2a40?, 0?)
    7ed2523132e1
libLLVM-13.so`_ZN4llvm14RuntimeDyldELF16registerEHFramesEv+0xac(a044611130?,
0?, f0?, a04460c3f8?, 4?, 0?)
    7ed2523133a1
libLLVM-13.so`_ZN4llvm11RuntimeDyld16registerEHFramesEv+0x40(a04460f370?,
a04460f470?, 1?, 0?, a04460f310?, 1?)
    7ed252313461
libLLVM-13.so`_ZN4llvm5MCJIT21finalizeLoadedModulesEv+0x488(a04460f0a0?,
a04460f370?, a04460f430?, a04460f448?, a04460f430?, a04460f430?)
    7ed252313571
libLLVM-13.so`_ZN4llvm5MCJIT14finalizeObjectEv+0x290(a04460f0a0?, a04460f3c8?,
7ed252313e20?, a04460f3f0?, 7ed252313e60?, 7ed252313e60?)
    7ed2523136e1 libLLVM-13.so`LLVMGetPointerToGlobal+0x38(a04460f0a0?,
a044607d88?, 291c00?, 0?, 0?, 336?)
    7ed2523137a1 swrast_dri.so`llvmpipe_update_fs+0xe94(a0423cc3c0?,
a0446010b4?, a042451ba0?, a0426a6080?, a044601000?, 0?)
    7ed2523140f1 swrast_dri.so`llvmpipe_update_derived+0x468(a0423cc3c0?,
43de?, 43d9?, a0426a44a0?, 4299?, 43df?)
    7ed2523141a1 swrast_dri.so`llvmpipe_draw_vbo+0x3f4(a0423cc3c0?,
7ed252314b50?, 0?, 0?, 7ed252314b30?, 1?)
    7ed252314261 swrast_dri.so`util_blitter_draw_rectangle+0x250(a042651fd0?,
a042654790?, 7ec763aa09c8?, 0?, 7ec7639f2248?, 7ed252314b50?)
    7ed252314371 swrast_dri.so`blitter_draw_tex+0x1c4(a042651fd0?, 0?, 0?,
3c0?, 258?, a047321990?)
    7ed2523144e1 swrast_dri.so`util_blitter_blit_generic+0x1760(a042651fd0?,
a047321990?, 7ed25231519c?, 0?, 2?, 0?)
    7ed252314761 swrast_dri.so`util_blitter_blit+0xf4(a042651fd0?,
7ed252315190?, 0?, 1?, a043d52ba0?, a047321990?)
    7ed2523148d1 swrast_dri.so`lp_blit+0x3bc(a0423cc3c0?, 0?, 0?, 0?, 0?,
4590?)
    7ed252314a31 swrast_dri.so`util_gen_mipmap+0xd0(a0423cc3c0?, a0445edc60?,
4b0?, 1?, a?, 0?)
    7ed252314b81 swrast_dri.so`st_generate_mipmap+0x188(a0427d47c0?, de1?,
a043d52730?, 0?, a042694130?, a?)
    7ed252314c51 swrast_dri.so`_mesa_GenerateMipmap+0x174(de1?, 3?, 14d78?,
a043f6ef80?, a043d52730?, a0427d47c0?)
    7ed252314d01 libglapi.so.0.0.0`shared_dispatch_stub_674+0x1c(de1?, 3?,
7ed25231566c?, a042699290?, a04281d2d8?, a042698a40?)
    7ed252314db1
libmutter-cogl-9.so.0.0.0`_cogl_texture_gl_generate_mipmaps+0xc4(a043d52650?,
a042698a40?, a042698a40?, 7ed25231566c?, 7ed252315668?, a?)
    7ed252314e71
libmutter-cogl-9.so.0.0.0`_cogl_texture_2d_pre_paint+0x48(a043d52650?, 1?, ff?,
a0445eda20?, 8?, a042698a40?)
    7ed252314f21
libmutter-cogl-9.so.0.0.0`_cogl_texture_pre_paint+0x1c(a043d52650?, 1?,
7ed25231588c?, a0445edb20?, 0?, a0445edb00?)
    7ed252314fd1
libmutter-cogl-9.so.0.0.0`_cogl_pipeline_layer_pre_paint+0x60(a0445edb20?, 0?,
a0445eda20?, 1?, a0445edb20?, a0445edb20?)
    7ed252315091
libmutter-cogl-9.so.0.0.0`_cogl_rectangles_validate_layer_cb+0x14(a0445eda20?,
0?, 7ed252315b30?, 1?, 8?, 1?)
    7ed252315141
libmutter-cogl-9.so.0.0.0`cogl_pipeline_foreach_layer+0x98(a0445eda20?,
7ec7648449a8?, 7ed252315b30?, 0?, 0?, a0445eda20?)
    7ed252315211
libmutter-cogl-9.so.0.0.0`_cogl_framebuffer_draw_multitextured_rectangles+0x44(a043fe86a0?,
a0445eda20?, 7ed252315c68?, 1?, a0445ed9c0?, a0445eda20?)
    7ed252315391
libmutter-cogl-9.so.0.0.0`cogl_framebuffer_draw_textured_rectangle+0x48(a043fe86a0?,
a0445eda20?, a043d52650?, a0445ed960?, a042699d90?, a0445edb20?)
    7ed252315481
libmutter-9.so.0.0.0`meta_background_get_texture+0x820(a0439c2600?, 0?,
a042b62aa4?, 7ed252315ee0?, 40000000300?, 0?)
    7ed2523155b1
libmutter-9.so.0.0.0`meta_background_content_paint_content+0x88c(7ed252315ed0?,
7ed252315ee0?, a04407c8c0?, a04426af50?, 0?, a042b62a20?)
    7ed2523156f1
libmutter-clutter-9.so.0.0.0`_clutter_content_paint_content+0x28(a042b62a20?,
a043212910?, a04407c8c0?, a04426af50?, 60?, a0432140e0?)
    7ed2523157a1
libmutter-clutter-9.so.0.0.0`clutter_actor_continue_paint+0x180(a043212910?,
a04426af50?, a0441438f0?, a04321268c?, a043212620?, a04407c8c0?)
    7ed252315871
libmutter-clutter-9.so.0.0.0`clutter_paint_node_paint+0x378(a04407c860?,
a04426af50?, 7ed252316280?, 1000?, a0441426b0?, a04407c860?)
    7ed2523159a1
libmutter-clutter-9.so.0.0.0`clutter_actor_paint+0x244(a043212910?,
a04426af50?, a04407c860?, 0?, 7ec76c700d20?, a043212620?)
    7ed252315af1
libmutter-clutter-9.so.0.0.0`clutter_actor_real_paint+0x14(a042833cc0?,
a04426af50?, 140c00?, 7ec76c400198?, a043e7e110?, a043212910?)
    7ed252315ba1
libmutter-clutter-9.so.0.0.0`clutter_stage_paint+0x28(a042833cc0?, a04426af50?,
1?, a042822920?, a0423b7100?, a0423b7100?)
    7ed252315ca1 libmutter-9.so.0.0.0`meta_stage_paint+0x50(a042833cc0?,
a04426af50?, 2?, a042833cc0?, a043e7e110?, a042399960?)
    7ed252315d51
libmutter-clutter-9.so.0.0.0`clutter_actor_continue_paint+0x1cc(a042833cc0?,
a04426af50?, a0438152f0?, a0442d8920?, a0428339d0?, a04407c800?)
    7ed252315e21
libmutter-clutter-9.so.0.0.0`clutter_paint_node_paint+0x50c(a04407af60?,
a04426af50?, 7ed252316830?, 1000?, a0441426b0?, a04407af60?)
    7ed252315f51
libmutter-clutter-9.so.0.0.0`clutter_actor_paint+0x244(a042833cc0?,
a04426af50?, a04407af60?, a0428339d0?, 7ec76c700d20?, a0428339d0?)
    7ed2523160a1
libmutter-clutter-9.so.0.0.0`clutter_stage_do_paint_view+0xf4(a042833cc0?,
a042364380?, a0442708c0?, a042827b00?, 3020?, a04426af50?)

gnome-shell:core> libgcc_s.so.1`classify_object_over_fdes+0x140::dis
libgcc_s.so.1`classify_object_over_fdes+0x118:  cmp       %g2, 0x3
libgcc_s.so.1`classify_object_over_fdes+0x11c:  bne,pn    %icc, +0x54  
<libgcc_s.so.1`classify_object_over_fdes+0x170>
libgcc_s.so.1`classify_object_over_fdes+0x120:  mov       %i2, %g1
libgcc_s.so.1`classify_object_over_fdes+0x124:  ldx       [%fp + 0x7f7], %g2
libgcc_s.so.1`classify_object_over_fdes+0x128:  and       %g2, %g1, %g1
libgcc_s.so.1`classify_object_over_fdes+0x12c:  brz,a,pn  %g1, +0x20   
<libgcc_s.so.1`classify_object_over_fdes+0x14c>
libgcc_s.so.1`classify_object_over_fdes+0x130:  mov       %l6, %g2
libgcc_s.so.1`classify_object_over_fdes+0x134:  ldx       [%i0], %g1
libgcc_s.so.1`classify_object_over_fdes+0x138:  cmp       %g1, %g2
libgcc_s.so.1`classify_object_over_fdes+0x13c:  bleu,pt   %xcc, +0xc   
<libgcc_s.so.1`classify_object_over_fdes+0x148>
libgcc_s.so.1`classify_object_over_fdes+0x140:  add       %i4, 0x1, %i4
libgcc_s.so.1`classify_object_over_fdes+0x144:  stx       %g2, [%i0]
libgcc_s.so.1`classify_object_over_fdes+0x148:  mov       %l6, %g2
libgcc_s.so.1`classify_object_over_fdes+0x14c:  srl       %i5, 0x0, %i5
libgcc_s.so.1`classify_object_over_fdes+0x150:  add       %i5, 0x4, %i5
libgcc_s.so.1`classify_object_over_fdes+0x154:  add       %i1, %i5, %i1
libgcc_s.so.1`classify_object_over_fdes+0x158:  ld        [%i1], %i5
libgcc_s.so.1`classify_object_over_fdes+0x15c:  cmp       %i5, 0x0
libgcc_s.so.1`classify_object_over_fdes+0x160:  bne,a,pt  %icc, -0x11c 
<libgcc_s.so.1`classify_object_over_fdes+0x44>
libgcc_s.so.1`classify_object_over_fdes+0x164:  ld        [%i1 + 0x4], %g1
libgcc_s.so.1`classify_object_over_fdes+0x168:  return    %i7 + 0x8

Reply via email to