007revad / Synology_M2_volume

Easily create an M.2 volume on Synology NAS
MIT License
834 stars 58 forks source link

I just get double free or corruption (out): Aborted #168

Closed tekjunkie70 closed 1 month ago

tekjunkie70 commented 1 month ago

DS918+ Version: 7.1.1-42962 Update 6

I just get an error below,

@DSNAS:~$ sudo -s /var/services/homes/jippie/syno_create_m2_volume.sh -h
double free or corruption (out)
Aborted
007revad commented 1 month ago

double free or corruption (out) This is a memory error from the Synology. It most likely means that free was called twice on the same block of memory, or that something was overwritten that shouldn't have been. The "free" command is not used in the script.

Did you download the "Source code.zip" from here: https://github.com/007revad/Synology_M2_volume/releases/tag/v2.0.28

Did you view or edit the syno_create_m2_volume.sh file? If you viewed it on a computer and saved it you may have changed the line endings.

How are connecting via SSH to the Synology? Putty? Windows Power Shell?

tekjunkie70 commented 1 month ago

I am on linux mint and I used DSM to extract the files. I connect via SSH.

But it has nothing to do with your script, which is not handy as I have no clue. ...

!/usr/bin/env bash

echo "poppo" ... As soon as I add "#!/usr/bin/env bash" is caused the same error

https://github.com/acmesh-official/acme.sh/issues/3972 People with the same error other scripts

tekjunkie70 commented 1 month ago

nothing to do with this script error in my system