Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
118 user(s) are online (79 user(s) are browsing Forums)

Members: 0
Guests: 118

more...

Headlines

Forum Index


Board index » All Posts (salass00)




Re: break an app at need it time to see current stack trace of it.
Just can't stay away
Just can't stay away


@kas1e

To get a stack trace from a specific point in a program you can just insert in the source code a:

IExec->SuspendTask(NULL, STF_CRASHED)

there and it should bring up the grim reaper.

Or you could just do something like:

*(char *)0 = 0;

which will trigger a DSI and bring up the grim reaper as well.

Using Ranger you can also get a stack trace from any running program by selecting it from the process list and clicking the button next to "Stack:".

Go to top


Re: new AmiUpdate 2.48 (01/17/2021)
Just can't stay away
Just can't stay away


@328gts

You don't have to use AmiUpdate for the AmigaOS 4.1 FE update 1 & 2 as they are also available from the downloads section on www.hyperion-entertainment.com.


Go to top


Re: signed char became unsigned ?
Just can't stay away
Just can't stay away


@kas1e

Whether char type defaults to signed or unsigned is and always has been platform dependent. If you require a specific type of char (signed or unsigned) you should specify it in the variable definition.

In this case:
signed char _direction = -1;

Go to top


Re: new AmiUpdate 2.48 (01/17/2021)
Just can't stay away
Just can't stay away


@Sbaitso

Quote:

I double checked and automatic installation is enabled and I have the amiupdate.net server as well as the Hyperion server listed to check for updates.


I have the update check on startup disabled on all my AmigaOS 4 installations as it uses the www.amiupdate.net address which doesn't work due to some DNS issue and eventually times out.

Instead I have amiupdate.codebench.co.uk (as recommended in a thread on these forums) set under servers as the place to look for updates.

Go to top


Re: Amiga programming NOOB question
Just can't stay away
Just can't stay away


@geennaam

Except for a few rare exceptions it is generally fine to share the library and interface with a child process. Just make sure that you do not close them while the child process is still running.

I'm not sure what you are using the child process for but if it is to stay alive even after the original caller has left then you should not use NP_Child.

The NP_Child tag mainly does two things:
- For newlib programs it ensures that the newly created process is using the same reent data structure as the parent, which means that file descriptors and other clib constructs can be passed between the processes without problem.
- Ensures that the parent process does not exit before the child does.

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

To stop another thread in a clean way on AmigaOS requires co-operation from the thread that is to be stopped, but the kill operation has to do this by force because of how it is designed.

It would be better if MineCraft used a semaphore or other similar construct to signal the threads to stop and then used join to wait for them to end similar to the SimpleThreadTest here:

https://github.com/minetest/minetest/b ... ittest/test_threading.cpp

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

I rewrote my posix semaphore implementation as a static library so it can more easily be linked to a program and only the needed functions will be used.

https://www.dropbox.com/s/lwbg2fbefgaoy6g/libpsem.7z?dl=0

Go to top


Re: What's the latest PUBLIC newlib.library version?
Just can't stay away
Just can't stay away


With 4.1 FE update 2 + hotfix the latest public newlib.library should now be version 53.62.

Go to top


Re: vswprintf implementation (need floating point support)
Just can't stay away
Just can't stay away


@kas1e & Skateman

Thanks for the donation!

Go to top


Re: vswprintf implementation (need floating point support)
Just can't stay away
Just can't stay away


@kas1e

New version:
https://www.dropbox.com/s/w0803hmcch2vnud/libwprintf.7z?dl=0

Adds support for %I/%i format specifiers (work identical to %D/%d) as well as wprintf()/vwprintf() functions.

Go to top


Re: binutils updated port?
Just can't stay away
Just can't stay away


@Raziel

Quote:

Hmm, maybe by simply using the all-in-one coreutils?

coreutils --coreutils-prog=cp from-file to-file

Looks and feels ... uneasy


You're not really supposed to use it like that.

Coreutils, like some other unix programs I've come across, implements all functionality in one executable that then acts differently depending on what name it is called by from the CLI (argv[0]).

So for instance if you make a copy of the coreutils program or a soft link to it called "mkdir" then it will act when run as if it is the mkdir command, and if you call it "cp" it will act as the cp command.

If you install the coreutils archive from OS4Depot using AmiUpdate or by manually executing the AutoInstall script from a CLI then it creates the soft links for you automatically.

Go to top


Re: binutils updated port?
Just can't stay away
Just can't stay away


@Raziel

Quote:

'mkdir -p work:test/test1' (which will *not* create a directory with 8.27, but with 5.2.1)


As coreutils is from posix you should not expect it to work well with AmigaDOS style paths.

Instead you should use unix style paths, like so:
mkdir -p /work/test/test1

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@billyfish

Quote:

And tell us what their, ours and the raw values are for the values that fail the asserts? I just want to check what the raw byte values are to see if that helps. They should all be IEEE 754 values, I just want to check.


'data' does not point to a floating point if that is what you mean. Instead it points to a signed 32-bit fixed point number which is converted to a float by casting and then dividing by the number FIXEDPOINT_FACTOR which is probably a power of two.

Go to top


Re: Amiga programming NOOB question
Just can't stay away
Just can't stay away


@geennaam

Have you tried changing the reference library_card.c/.h references to library.c/.h? It's possible that the library_card files have been removed because they were no longer needed and the driver code just hasn't been updated.

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

I've updated the posix semaphore implementation at:

https://www.dropbox.com/s/43b4g16kvhd7 ... emaphore-amigaos4.7z?dl=0

by adding the sem_trywait() function and refactoring the sem_timedwait() function.

Go to top


Re: binutils updated port?
Just can't stay away
Just can't stay away


@Raziel

Try adding the option "--sparse=never" to the cp command.

If it helps then the file corruption is likely due to a long standing bug in newlib.library that was fixed in V53.59 (AmigaOS 4.1 FE update 2 has V53.61 so it shouldn't have this problem).

You can find the latest coreutils at:
http://os4depot.net/share/development/utility/coreutils.lha

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

Quote:

UASSERT(deSerializeString(is) == "foobar!");


That looks like it's just doing a pointer comparison to me (but maybe the equality operator is supposed to be overloaded?).

Try replacing it with:

UASSERT(strcmp(deSerializeString(is).c_str(), "foobar!") == 0);

to see if it works better.

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

Try printing the float number generated by readF1000(is) and if it's close enough to 53.534 you can just disable the assert.

BTW for gcc >= 4.8 you can change the bswap macros to:
#define __bswap_16(x) __builtin_bswap16(x)
#define __bswap_32(x) __builtin_bswap32(x)
#define __bswap_64(x) __builtin_bswap64(x)

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

I made some changes in the sem_wait()/sem_timedwait() and sem_post() functions that should hopefully fix the problem.

In the previous version it was possible that when sem_post() was called four times in quick succession that only the first thread in the wait list was signaled four times and the others were just left waiting.

https://www.dropbox.com/s/43b4g16kvhd7 ... emaphore-amigaos4.7z?dl=0

Go to top


Re: MineCraft (MineTest) work in progress help need it
Just can't stay away
Just can't stay away


@kas1e

Can you check if there is a problem with the trigger.wait()/trigger.post() mechanism (see my edit above)?

Go to top



TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 91 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project