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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-04-21
             Status|UNCONFIRMED                 |NEW

--- Comment #17 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to lucier from comment #16)
> I have figured out how to build and then run the app in lldb to reliably
> reproduce the error.

> To configure and build Gambit, the Scheme->C compiler:
> 
>     51  8:56    mkdir gambit-test
>     52  8:56    cd gambit-test
>     53  8:56    git clone https://github.com/gambit/gambit.git

$ git log -1 --oneline
bb05af0a (HEAD -> master, origin/master, origin/HEAD) Fix missing return
address when using (declare (not optimize-dead-local-variables) (not
interrupts-enabled))

>     54  8:57    cd gambit
>     55  9:00    ./configure 'CC=/usr/local/gcc-10.3.0/bin/gcc -save-temps
> -g' '--enable-single-host' '--enable-shared'

> Hope this helps.

[so far on Darwin16 / macOS 10.12 ]

Yes it does -  can confirm that a 10.2 build works and 10.3 fails but the error
I get is different:

$ DYLD_LIBRARY_PATH=lib:gsi:gsc gsi/gsi
-:~~bin=./bin,~~lib=./lib,~~include=./include -v
Bus error: 10

lldb -- gsi/gsi -:~~bin=./bin,~~lib=./lib,~~include=./include -v
(lldb) env DYLD_LIBRARY_PATH=lib:gsi:gsc
(lldb) r

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=2, address=0x1000a88f0)
    frame #0: 0x00000001000a3475
libgambit.dylib`___release_rc(ptr=0x00000001000a8900) at mem.c:724
   721      {
   722        ___rc_header *h = ___CAST(___rc_header*,ptr) - 1;
   723  
-> 724        if (--h->refcount == 0)
   725          {
   726            ___rc_header *prev = h->prev;

I will try later on 10.15,

Reply via email to