raised TAU0.MMAP.MMAP_ERROR : Mmap_Anon: MAP_FAILED

11 views
Skip to first unread message

sosagadinet

unread,
Oct 27, 2023, 8:02:59 PM10/27/23
to muen-dev
Hi, maybe someone can tell me which direction to go to solve this issue, thanks in advance.

Oct 02 2023 02:25:49 pack: Generate image
Oct 02 2023 02:25:49 pack: Generate image: FAILED, check '/home/user/muen/pack/obj/pack.log.generate_image'
Oct 02 2023 02:25:49 pack: Generate image: FAILED, last 5 lines:

Execution of /home/user/muen/components/tau0-static/bin/tau0_main terminated by unhandled exception
raised TAU0.MMAP.MMAP_ERROR : Mmap_Anon: MAP_FAILED
Call stack traceback locations:
0x41b963 0x41df3b 0x415a70 0x414f9f 0x7fc3ba72b1c8 0x7fc3ba72b283 0x414ff8 0xfffffffffffffffe

make[1]: *** [Makefile:31: /home/user/muen/pack/obj/muen.img.cmds] Error 1
make: *** [Makefile:41: pack] Error 2

Reto Buerki

unread,
Oct 29, 2023, 3:33:00 AM10/29/23
to sosagadinet, muen-dev
Hi and welcome to the list!

On 10/28/23 02:02, sosagadinet wrote:
> Hi, maybe someone can tell me which direction to go to solve this issue,
> thanks in advance.
>
> Oct 02 2023 02:25:49 pack: Generate image
> Oct 02 2023 02:25:49 pack: Generate image: FAILED, check
> '/home/user/muen/pack/obj/pack.log.generate_image'
> Oct 02 2023 02:25:49 pack: Generate image: FAILED, last 5 lines:
>
> Execution of /home/user/muen/components/tau0-static/bin/tau0_main
> terminated by unhandled exception
> raised TAU0.MMAP.MMAP_ERROR : Mmap_Anon: MAP_FAILED
> Call stack traceback locations:
> 0x41b963 0x41df3b 0x415a70 0x414f9f 0x7fc3ba72b1c8 0x7fc3ba72b283 0x414ff8
> 0xfffffffffffffffe

Can you please send the output of

$ addr2line -e components/tau0-static/bin/tau0_main 0x41b963 0x41df3b
0x415a70 0x414f9f 0x7fc3ba72b1c8 0x7fc3ba72b283 0x414ff8 0xfffffffffffffffe

> make[1]: *** [Makefile:31: /home/user/muen/pack/obj/muen.img.cmds] Error 1
> make: *** [Makefile:41: pack] Error 2

Also, please apply the attached patch and provide /tmp/strace.log. Thanks.

Regards,
- reto


>
0001-TEST-Strace-tau0-execution.patch

sosagadinet

unread,
Nov 2, 2023, 7:37:11 AM11/2/23
to muen-dev
Hello, thank you very much for your attention. Below I attach what was requested

Nov 02 2023 10:41:35 kernel: Build (debug)
Nov 02 2023 10:41:35 kernel: Build (release)
Nov 02 2023 10:41:36 kernel: Check stack (release)
Nov 02 2023 10:41:36 kernel: Check stack (debug)
Nov 02 2023 10:41:36 tau0: Build (debug)
Nov 02 2023 10:41:37 pack: Generate image
Nov 02 2023 10:41:37 pack: Generate image: FAILED, check '/home/user/muen/pack/obj/pack.log.generate_image'
Nov 02 2023 10:41:37 pack: Generate image: FAILED, last 5 lines:

Execution of /home/user/muen/components/tau0-static/bin/tau0_main terminated by unhandled exception
raised TAU0.MMAP.MMAP_ERROR : Mmap_Anon: MAP_FAILED
Call stack traceback locations:
0x41b973 0x41df4b 0x415a80 0x414faf 0x7f10fb23e1c8 0x7f10fb23e283 0x414fff 0xfffffffffffffffe


make[1]: *** [Makefile:31: /home/user/muen/pack/obj/muen.img.cmds] Error 1
make: *** [Makefile:41: pack] Error 2
root@pal:~/muen# addr2line -e components/tau0-static/bin/tau0_main 0x41b973 0x41df4b 0x415a80 0x414faf 0x7f10fb23e1c8 0x7f10fb23e283 0x414fff 0xfffffffffffffffe
/home/user/muen/components/tau0-static/src/static/tau0-mmap.adb:92
/home/user/muen/components/tau0-static/src/static/tau0-data-memory-low_level.adb:490
/home/user/muen/components/tau0-static/obj/b__tau0_main.adb:614
/home/user/muen/components/tau0-static/obj/b__tau0_main.adb:448
??:0
??:0
??:?
??:0
root@pal:~/muen#
strace.log

Reto Buerki

unread,
Nov 2, 2023, 8:17:23 AM11/2/23
to sosagadinet, muen-dev
Thanks for the backtrace and the strace.log. The relevant line is:

mmap(0x600000000000, 4294967296, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANO NYMOUS, -1, 0) = -1 ENOMEM (Cannot
allocate memory)

What is ulimit -v and free -h in your shell?

Kind regards
- reto
Reply all
Reply to author
Forward
0 new messages