# Abnormal termination of running CUDA program

**URL:** <https://forums.nanovms.com/t/abnormal-termination-of-running-cuda-program/39>\
**Category:** Uncategorized\
**Created:** [March 4, 2024, 7:33am UTC](https://forums.nanovms.com/t/abnormal-termination-of-running-cuda-program/39 "2024-03-04T07:33:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avice](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Avice](https://forums.nanovms.com/u/Avice)\
**Post date:** [March 4, 2024, 7:33am UTC](https://forums.nanovms.com/t/abnormal-termination-of-running-cuda-program/39/1 "2024-03-04T07:33:13Z")

</div>

Hello, I am running the [cricket](https://github.com/RWTH-ACS/cricket) project in Nanos to call remote GPU resources in Unikernel, but a fatal error has occurred and I don’t know how to solve it. Here is my detailed build process.

1. Compile cricket

2. Build a Nanos image  
The project is structured as follows：

3. Run the program  
Run the cricket server on a server with a Nvidia GPU and CUDA environment

---

<div class="post-metadata">

**Author:** ![eyberg](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@eyberg](https://forums.nanovms.com/u/eyberg)\
**Post date:** [March 4, 2024, 3:45pm UTC](https://forums.nanovms.com/t/abnormal-termination-of-running-cuda-program/39/2 "2024-03-04T15:45:27Z")

</div>

Thanks for the detailed info. Can you run ops with ‘–trace’ ? Before this happens you’ll see some output which will point at what it is failng on.

---

<div class="post-metadata">

**Author:** ![Avice](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Avice](https://forums.nanovms.com/u/Avice)\
**Post date:** [March 4, 2024, 4:28pm UTC](https://forums.nanovms.com/t/abnormal-termination-of-running-cuda-program/39/3 "2024-03-04T16:28:40Z")

</div>

```auto
    2 direct return: 0, rsp 0xffeec990
    2 rt_sigprocmask
    2 direct return: 0, rsp 0xffeec990
    2 getsockname
    2 direct return: 0, rsp 0xffeecc08
    2 rt_sigaction
    2 direct return: 0, rsp 0xffeeca60
    2 rt_sigprocmask
    2 direct return: 0, rsp 0xffeeca10
    2 write
    2 direct return: 56, rsp 0xffeeca58
    2 poll
    2 direct return: 1, rsp 0xffeec978
    2 read
    2 direct return: 32, rsp 0xffeec978
    2 rt_sigprocmask
    2 direct return: 0, rsp 0xffeeca10
    2 openat
    2 "/tmp/cricket-elf-dump" - not found
    2 direct return: -2, rsp 0xffeec8b0
    2 thread_attempt_interrupt: tid 2
    2 uninterruptible or already running
    2 signal 11 received, errno 0, code 1
    2 fault address 0x0
    2 default action

*** signal 11 received by tid 2, errno 0, code 1
    fault address 0x0

*** Thread context:
lastvector: 000000000000000e (Page fault)
     frame: ffffc00002a02000
      type: thread
active_cpu: 00000000ffffffff
 stack top: 0000000000000000
error code: 0000000000000004
   address: 0000000000000000

```

It looks like the `/tmp/cricket-elf-dump` file is missing. After testing outside Nanos, this file should have been generated when the elf file was running, but it was not produced in Nanos.

---

<div class="post-metadata">

**Author:** ![Avice](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Avice](https://forums.nanovms.com/u/Avice)\
**Post date:** [March 4, 2024, 4:31pm UTC](https://forums.nanovms.com/t/abnormal-termination-of-running-cuda-program/39/4 "2024-03-04T16:31:11Z")

</div>

I created an empty `tmp` directory and mapped it. It worked successfully. Thank you very much.
