[Etherlab-users] Master Memory Overflow

Chad Woitas CWoitas at rmd-engineering.com
Thu May 27 23:53:49 CEST 2021


Hello,

 I'm new to Ethercat and slowly figuring this out. I'm using it in tandem with Linuxcnc.

Running The linuxcnc ethercat driver it appears the memory is overflowing for io.process_data;

I added a couple lines for debugging in lib/master.c :: ecrt_master_activate
```c
 fprintf(stderr, "Failed to map process data: %ld\n",
            io.process_data_size);
```

```shell
chad at CHAD-I7-LINUX:~/Downloads/ethercat$ halrun
halcmd: loadusr -W lcec_conf ~/conf.xml
halcmd: loadrt lcec
Note: Using POSIX realtime
Failed to map process data: 0
Failed to map process data: Cannot allocate memory
Failed to map process data: -120615566573566
LCEC: failed to activate master 0
lcec: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /usr/bin/rtapi_app lcec
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for lcec failed, returned -1
```


Build information:
```
latest from GitLab
./configure --disable-8139too
make all modules
sudo make modules_install install
```
uname -r
5.10.30-rt39
No errors appearing in dmesg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.etherlab.org/pipermail/etherlab-users/attachments/20210527/680a2c07/attachment.htm>


More information about the Etherlab-users mailing list