[smartmontools-support] smartd Segmentation fault: 11 with Apple Silicon based Mac

桃源老師 xanadu6291 at dream.jp
Sat Nov 23 16:34:57 CET 2024


Hello, 

Let me explain my misunderstandings and explain fix it...

> 2024/11/21 午後2:00、桃源老師 <xanadu6291 at dream.jp>のメール:
> 
>> 2024/11/20 午後11:48、Christian Franke <Christian.Franke at t-online.de>のメール:
>> 
>> Please test whether the segfault could be reproduced in smartd debug mode with a short check interval, for example:
>> 
>>  smartd -d -i 10
>> 
>> (stop with SIGQUIT instead of SIGINT).
> 
> With -d option, smartd never stop.  But removing -d option, i.e. 
> 
> smartd -i 30,
> 
> smartd was killed by segfault after 30 seconds running.
> 
> Also, using -d option, smartd outputs 'Cannot create state file "/usr/local/var/lib/smartmontools/smartd.APPLE_SSD_AP1024Z-0ba02062208d1420-n0.nvme.state"' to Terminal.  So I realized that it might need to be add "sudo", i.e. 
> 
> sudo smartd -i 30, 
> 
> smartd does not killed by Operating System...
> 
> It might be required to add "sudo", execute smartd command as super user, on Apple Silicon based Macs... Am I correct?

My mistake is in usage of smartd.  Not in smartd itself.  Even though smartd should be treat as daemon, I have treated it as just an auto startup program.  So I got: 

a. On an Apple Silicon Mac, smartd stops 30 minutes after execution.
b. On a Mac equipped with an NVMe SSD, the SSD information cannot be read.

After fix of smartd startup method, I no longer get those issues...

If you have interest with how I fix the problem, please visit my blog article: 

https://wp.me/pf3IF8-va

Please note that this blog is written in Japanese...


As a side note, this fix solved my issue regarding smartd continued from in the year of 2022.  The subject of the issue in this mailing list are: 

[smartmontools-support] smartmontools for native Apple Silicon Mac

[smartmontools-support] Regarding NVMe device monitoringMy mistake is in usage of smartd.  Not in smartd itself.  Even though smartd should be treat as daemon, I have treated it as just an auto startup program.  So I got: 

a. On an Apple Silicon Mac, smartd stops 30 minutes after execution.
b. On a Mac equipped with an NVMe SSD, the SSD information cannot be read.

After fix of smartd startup method, I no longer get those issues...

If you have interest with how I fix the problem, please visit my blog article: 

https://wp.me/pf3IF8-va

Please note that this blog is written in Japanese...


As a side note, this fix solved my issue regarding smartd continued from in the year of 2022.  The subject of the issue in this mailing list are: 

[smartmontools-support] smartmontools for native Apple Silicon Mac

[smartmontools-support] Regarding NVMe device monitoring


Best Regards,

Kimio Miyamura


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20241124/270a74eb/attachment.p7s>


More information about the Smartmontools-support mailing list