linuxcnc-ethercat icon indicating copy to clipboard operation
linuxcnc-ethercat copied to clipboard

Segmentation fault during shutdown

Open sirop opened this issue 6 years ago • 4 comments

Hello.

The essence of this discussion https://github.com/koppi/mk/issues/4 is that the build command for the user space case is incomplete as we see it in https://github.com/sittner/linuxcnc-ethercat/blob/master/src/user.mk .

Namely:

missing essential steps: objcopy - extraction of symbols in the .rtapi_export section, creation of a linker script fragment, final link

Do you have any simple remedy for this?

Tested with machinekit.

sirop avatar Mar 10 '18 00:03 sirop

I guess the discussed problem affected the RT part, not the user space part. I've tried to fix this by using Makefile.modinc to compile the RT component, which is definitely the nicer method :-):

https://github.com/sittner/linuxcnc-ethercat/tree/fix-build-script

Please let me know, if that woks for you. Do you think this will affect the segfault?

sittner avatar Mar 10 '18 09:03 sittner

This was too fast. I have to find a way to link the additional needed libraries.

sittner avatar Mar 10 '18 09:03 sittner

OK, LDFLAGS did the job. Sorry for the interrupt...

sittner avatar Mar 10 '18 09:03 sittner

@sittner Ok, give me a day or two to check this.

sirop avatar Mar 10 '18 09:03 sirop