When porting to new *ix environments, it is quite common for there to be
problems getting the configuration for the semaphores to work correctly.
>From the stack trace, it is hanging on a request for a mutex semaphore.
rexximage should run completely single threaded, so this should never
deadlock. However, the semaphore in question is already held by the current
thread because of a bit of recursion at startup, so It looks like the
semaphores are not properly handling nested requests.

Rick

On Sun, Jul 4, 2021 at 3:11 PM Thomas Kahr <tho...@vaime.at> wrote:

> Dear Developers,
>
> the current semester has come to an end and I finished all my exams. So,
> now I can fully focus on my little Android Project.
>
> There are some new developments I would like to share with all of you. I'm
> not experienced with GDB and STRACE so maybe here are some pros who know
> what to do with the output better than me.
>
> *1. GDB*
>
> As Erich suggested I built a Debug-Version for Android and setup gdbserver
> on the device and connected it with GDB on my host System. The output files
> (I followed the steps in the Sourceforge ooRexx Website) are attached.
>
> I did not push the whole debug version to the device. I just moved all
> necessary files to create rexx.img to the device. When executing rexximage
> its also hanging up so I thought it would be a good idea to debug rexximage
> first because maybe its more compact. These are the following files:
>
> /bin:
> rexximage
> rxapi
> CoreClasses.orx
> PlatformObjects.orx
> StreamClasses.orx
>
> /lib:
> librexx.so
> librexxapi.so
> librxregexp.so
> librxunixsys.so
>
> (I think not every single lib file is necessary for building the target
> rexx.img but I pushed every lib file which was already built when executing
> rexximage during the build process)
>
> I also attached 2 Screenshots showing the GDB output on the Host and the
> Target. As you can see, on the target I get the "Acitivity output" which
> Erich told me I should include. In theory I should also get the same output
> for the other 2 .orx Files. Seems like something is wrong here.
>
> *2. STrace*
>
> Strace is also available on the emulated Android device. I logged the
> strace output from "rexx -v" and "rexx bintest.rex" where this .rex-File is
> just a HelloWorld.
> I also tried it with rexximage rexx.img.
>
> rexx -v is working
> rexx bintest.rex is hanging up even with the debug version.
> rexximage rexx.img hangs up
> The 3 files are attached.
>
> Any suggestions for my next steps. Is the output helpful?
>
>
> Thanks for your help and best regards
>
> Thomas
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to