runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[ARM32] Sudden assertion failure with the recent commit

Open parjong opened this issue 10 years ago • 9 comments

CoreCLR from 0ce162fee93d48408f7677a48db7a324bc901a18 suddenly shows the following assert failure for Hello, World example:

{0x9ab-0x76a4f7b1} ASSERT [PROCESS] at /home/parjong/projects/toolchains/coreclr/src/pal/src/thread/process.cpp.1821: sem_open(/clrct000009ab00000000018ccf89) failed: 38 (Function not implemented)

parjong avatar Apr 22 '16 01:04 parjong

Which version of the OS are you using? I found this which seems to relate to your error:

http://stackoverflow.com/questions/270113/how-do-i-stop-sem-open-failing-with-enosys

manu-st avatar Apr 22 '16 02:04 manu-st

@manu-silicon Thank you for comment. I'll check that article. I used the ARM emulator that cat be downloaded from dotnet/runtime#5394.

parjong avatar Apr 22 '16 02:04 parjong

It seems that b7d76075a8d2321c14fc4b0a761d24c56621d078 is the first commit related with this assertion failure. I have no assertion failure with 50cf7134f60b050c82eef03a8c38ac2499199282.

parjong avatar Apr 22 '16 02:04 parjong

CC: @jkotas, @leemgs, @myungjoo

parjong avatar Apr 22 '16 02:04 parjong

That commit seems to have shuffled the ordering of semaphore creation but there were no changes in flag that could explain why it would now fail. I'll update my arm board and see if I get this too.

manu-st avatar Apr 22 '16 02:04 manu-st

I can execute Hello, World example after mounting tmpfs at /dev/shm.

parjong avatar Apr 22 '16 02:04 parjong

So it might just be an issue with the way the arm emulator is setup.

manu-st avatar Apr 22 '16 02:04 manu-st

I think so. However, I'm not sure whether /dev/shm is mounted for all the environment. In addition, this is the first time that I see this assertion failure. Before b7d7607, CoreCLR just works even if /dev/shm is not mounted.

parjong avatar Apr 22 '16 02:04 parjong

However, I'm not sure whether /dev/shm is mounted for all the environment.

@manu-silicon , @parjong , The traditional Linux distributions (e.g., Ubuntu, Fedora, RHEL/CentOS, OpenSUSE, ...) generally support the /dev/shm facility as a default inter-process communication (IPC). However, the popular Android software platform supports the Binder IPC (/dev/binder) instead of the traditional IPCs (/dev/shm).

Anyway, I will add the /dev/shm into the next version shortly because the arm emulator is based on the traditional Linux distribution.

leemgs avatar Apr 25 '16 11:04 leemgs