Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
201 user(s) are online (183 user(s) are browsing Forums)

Members: 1
Guests: 200

emeck, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8) 9 »
Re: New verson of CLiB2 from Andrea (afxgroup)
Just can't stay away
Just can't stay away


See User information
@afxgroup

Just a thought : The file constructor, that you are talking about - is it instantiated inside libc.so or in the main executable?

Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
I hope in libc.so because all *_CONSTRUCTORS are in libc.so and i'm using shcrtbegin/where __shlib_call_constructors and __shlib_call_destructors are and in the crtbegin I call InitSHLibs at start and at exit
I've noticed also that libc.so and libgcc.so remain in use when using DEBUG=on (that works..) while they are unloaded with NO DEBUG....

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Just can't stay away
Just can't stay away


See User information
@afxgroup

Quote:
while they are unloaded with NO DEBUG....


That makes no sense. Have your checked the debug output of elf.library to see, why they fail to load?

Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
can you jump on discord a little bit?

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
I've just added sigsetjmp/siglongjmp to beta9
Also shared objects are working correctly now but you need a new elf.library (not yet released) that fix some problems. The new elf.library will resolve also this problem

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
Resized Image


First clib2.library version in action..

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Home away from home
Home away from home


See User information
Wow!

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Just can't stay away
Just can't stay away


See User information
@afxgroup

AWESOME!!!!!

Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
I'm trying to make clib2 fully reentrant but I have a problem with setjmp/longjmp. If I declare jmp_buf __exit_jmp_buf; globally (like in classic lib2 version) I have no problem and the longjmp works correctly.
But if I put it into my _clib2 struct that contains all variables, longjmp points to trashed memory.
I suspect it is an alignment problem (or something worst..)
I've tried to allocate the _clib2 struct with AVT_Alignment. I've also add pragma pack(2) but no luck. I've also tried to use a pointer to jmp_buf and then allocate it with AllocVecTags but always same problem.
Any hint?

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Home away from home
Home away from home


See User information
@afxgroup

Well, yeh, I expect long jumps to happen locally in programs, not being shared by different programs / threads.

Like errono, you need a local store, its only accessible to that thread / library. is there not user data in exec task that be pointed to local store structure.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
But it is local. I mean it is defined in a local struct and passed via pr_CLibData like in newlib. So i'm sure it is local to that program. It isn't defined in a global struct shared by all programs that use clib2.library. That's why it is strange

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
nevermind.. i've fixed it. It was my mistake setting pr_CLibData in a wrong place..

Edit:
Now i have a problem that seems something similar.

Basically if I use stdin/stdout/stderr inside clib2 code I have no errors while if they are used inside the C program (f.e. fprintf(stdout,"")) I have a DSI.
stdin & co are pointer to the first three initialized iob in a clib2 constructor and for example if I use printf() that internally use fprintf(stdout) it works..

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
Beta10 branch now contains the clib2.library.
It is not perfect 100% but thanks to the shared library now the old c++ bug with .so files has gone.
It is 99% reentrant. I've tried to move all global and static variables but there is something more to test.
Feel free to test it and report problems.
I'll write an OS4 installer soon

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
Resized Image


?

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Home away from home
Home away from home


See User information
@Andrea
Good steady progress with clib2. It was worth a shot to start with, in the end of all.

With the latest screenshot, I feel myself dumb because as i see this is just a sockets' communication between server and client, but wasn't they working before ? Or they somehow multithreaded / multitasked / whatever , so i can try to build minetest with it ?:)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
try to look at the command name

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Just can't stay away
Just can't stay away


See User information
@afxgroup

awesome progress man!!!!!!

Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Amigans Defender
Amigans Defender


See User information
Beta 10 Released
https://github.com/afxgroup/clib2/releases/tag/v.1.0.0-beta10

Keep in mind that clib2 now is a shared.library. So you need to install clib2.library into LIBS: folder (An installer is in the package)

There are tons of changes and fixes (and maybe new bugs..)
The screenshots above was showing Unix sockets
They are emulated via native sockets. You don't need to change any linux code to made them work. There are a couple of examples in the test_programs/threads folder. That was possible thanks shared library that is opening a lot of new possibilities.
pthread mutexes functions now are using OS4 Mutex functions
There are many new functions added (and usually tested)

i'm really tired...
Go to top
Re: New verson of CLiB2 from Andrea (afxgroup)
Home away from home
Home away from home


See User information
@Andrea
Is there any needs now for .so version of clib2 ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post
« 1 ... 5 6 7 (8) 9 »

 




Currently Active Users Viewing This Thread: 4 ( 0 members and 4 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project