Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
85 user(s) are online (69 user(s) are browsing Forums)

Members: 0
Guests: 85

more...

Headlines

Report message:*
 

Re: gcc 9 and 10

Subject: Re: gcc 9 and 10
by salass00 on 2021/1/3 21:22:01

@kas1e

Github won't let me comment on the issue so I will write my findings here for now (It keeps saying "You can't comment at this time."):

Looking at the code in gthr-amigaos-native.c the problem is that init_threadstore() has not been called yet so when __gthread_self() tries to obtain the semaphore &threadstore->sem it leads to a NULL pointer access.

A quick fix would probably be to add the line:
__gthread_once (&threadstore_once, init_threadstore);

in __gthread_self() just after:
__gthread_once (&libs_once, init_libs);

Same as how it is done in the __gthread_create() function.


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project