Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is more sample demos for Linux/ARM? #5384

Closed
leemgs opened this issue Mar 17, 2016 · 10 comments
Closed

Where is more sample demos for Linux/ARM? #5384

leemgs opened this issue Mar 17, 2016 · 10 comments
Milestone

Comments

@leemgs
Copy link
Contributor

leemgs commented Mar 17, 2016

After we displayed the simple console hello world a few days ago thanks to @benpye and @jkotas , we have successfully run Graphical Hello World that is released by Corefx Lab community as following:
https://github.com/dotnet/corefxlab/tree/master/demos/CoreClrConsoleApplications/HelloWorld

We have attached screenshot; We have run the Graphical Hello world!!! on Linux/ARM Emulator (supporting both [1] hard-floating point based Loader and [2] soft-floating point based Loader)

BTW, Where can we download more sample applications to evaluate more various C# codes?

Windows Logo

1458201888494

Linux Logo

dotnet-hell-linux-graphic

FreeBSD Logo

dotnet-hello-freebsd-graphic

Mac Log

dotnet-hello-mac-graphic

@manu-st
Copy link

manu-st commented Mar 17, 2016

👍 I'm also able to run this demo, however it crashes for me after pressing enter with the following trace:

 where
#0  0xb59e3a62 in ?? () from /usr/lib/arm-linux-gnueabihf/libunwind-arm.so.8
dotnet/coreclr#1  0xb59e3f5e in _Uarm_is_signal_frame () from /usr/lib/arm-linux-gnueabihf/libunwind-arm.so.8
dotnet/coreclr#2  0xb62c208c in PAL_VirtualUnwind (context=0xbe7fdf70, contextPointers=0x0)
    at /home/ubuntu/local/Microsoft/coreclr/src/pal/src/exception/seh-unwind.cpp:286
dotnet/coreclr#3  0xb5bb5934 in Thread::VirtualUnwindToFirstManagedCallFrame (pContext=0xbe7fdf70)
    at /home/ubuntu/local/Microsoft/coreclr/src/vm/stackwalk.cpp:781
dotnet/coreclr#4  0xb5d3bbb4 in DispatchManagedException (ex=...) at /home/ubuntu/local/Microsoft/coreclr/src/vm/exceptionhandling.cpp:4665
dotnet/coreclr#5  0xb5f24414 in PreStubWorker (pTransitionBlock=0xbe7fe4d4, pMD=0xb515ccf0)
    at /home/ubuntu/local/Microsoft/coreclr/src/vm/prestub.cpp:1040
dotnet/coreclr#6  0xb5d4e708 in ThePreStub () at asmhelpers.S:787
dotnet/coreclr#7  0x00720064 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

@manu-st
Copy link

manu-st commented Mar 17, 2016

The next logical step would be to run the CoreCLR test suite and try fixing tests to be in par with x64.

@leemgs
Copy link
Contributor Author

leemgs commented Mar 17, 2016

I'm also able to run this demo, however it crashes for me after pressing enter with the following trace:

@manu-silicon , In my case, No crashes after pressing enter. I have tested the graphical hello word.!!! without any crashes at the below TestBeds.

1) Tested On our Linux/ARM Emulator
2) Tested On Raspberry Pi2 Emulator 
3) Tested On TM1 mobile device
4) Tested On Samsung ARM ChreomeBook

@sergiy-k
Copy link
Contributor

Hi @leemgs, I don't think we have many sample apps. I agree with @manu-silicon's suggestion to run CoreCLR tests as the next step.

@leemgs
Copy link
Contributor Author

leemgs commented Mar 23, 2016

@sergiy-k, Now, there are seven demos in https://github.com/dotnet/corefxlab/tree/master/demos from CoreFXLab. Could not we currently get the more demo applicationa to make more robust .net core (e.g., CoreCLR + CoreFX) for Linux/ARM?

  1. CoreClrConsoleApplications/HelloWorld
  2. CoreService
  3. EchoService
  4. LibuvWithNonAllocatingFormatters
  5. LowAllocationWebServer
  6. QotdService
  7. dotnet

@janvorli
Copy link
Member

@leemgs for making the .NET core on ARM more robust, I would recommend using the CoreCLR managed tests, which are in the src/tests subfolder of the source tree. There are about 6000 of them. They are focused on testing various parts of the runtime, including exception handling.
And once these work, you can move to CoreFX tests.
You can find a description on how to build and run the CoreCLR tests on Unix here:
https://github.com/dotnet/coreclr/blob/master/Documentation/building/unix-test-instructions.md

@manu-st
Copy link

manu-st commented Mar 24, 2016

@janvorli I just tried to run the test on arm, but I'm getting:

../src/pal/tests/palsuite/runpaltests.sh: line 129: /home/ubuntu/local/Microsoft/coreclr/bin/obj/Linux.arm.Debug/src/pal/tests/palsuite/c_runtime/fopen/test1/paltest_fopen_test1: No such file or directory

Indeed I do not have a tests folder under src/pal. What does it take to have it?

@manu-st
Copy link

manu-st commented Mar 24, 2016

@janvorli Nevermind, I had skipped the tests on my initial builds and forgot about it.

@synercoder
Copy link

@janvorli The test you mentioned are already being run and their progress is tracked on another thread: dotnet/coreclr#3977

@synercoder
Copy link

As you apparently know since you already commented on that thread. :)

@leemgs leemgs closed this as completed Aug 1, 2016
@msftgits msftgits transferred this issue from dotnet/coreclr Jan 30, 2020
@msftgits msftgits added this to the Future milestone Jan 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants