glances icon indicating copy to clipboard operation
glances copied to clipboard

Segmentation fault on startup (MacOS)

Open rbutera opened this issue 3 years ago • 6 comments

Describe the bug

I am trying to (re)install glances on a MacOS machine, but I run into a strange issue every time I attempt to run glances.

It was working a while ago, but now it no longer works.

Using Homebrew

2022-07-22-180147-Default (zsh)

(as you can see, I get segmentation fault)

(Logs are at bottom of this issue)

I get a similar issue if I use pip3 or pip2 to install glances. See logs at bottom of issue.

Desktop (please complete the following information)

  • OS: MacOS
  • Glances Version [output of glances -V] 3.2.6.4
  • Glances logs file [output of tail -10 ] (see end of post)
  • Glances test [output of glances --issue] (only available with Glances 3.1.7 or higher)
❯ glances --issue
[1]    96466 segmentation fault  glances --issue

Logs

2022-01-20 10:54:04,005 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-01-20 10:54:04,006 -- INFO -- Start Glances 3.2.4.2
2022-01-20 10:54:04,006 -- INFO -- CPython 2.7.17 (/usr/local/opt/python@2/bin/python2.7) and psutil 5.9.0 detected
2022-01-20 10:54:04,236 -- INFO -- Start GlancesStandalone mode
2022-01-20 10:54:06,254 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-01-20 10:54:06,269 -- WARNING -- Sparklines module not found (No module named sparklines)
2022-01-20 10:54:06,273 -- WARNING -- Missing Python Lib (No module named py3nvml.py3nvml), Nvidia GPU plugin is disabled
2022-01-20 10:54:53,397 -- INFO -- Glances stopped (keypressed: CTRL-C)
2022-01-20 11:14:27,725 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-01-20 11:14:27,725 -- INFO -- Start Glances 3.2.4.2
2022-01-20 11:14:27,725 -- INFO -- CPython 2.7.17 (/usr/local/opt/python@2/bin/python2.7) and psutil 5.9.0 detected
2022-01-20 11:14:27,754 -- INFO -- Start GlancesStandalone mode
2022-01-20 11:14:29,179 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-01-20 11:14:29,187 -- WARNING -- Sparklines module not found (No module named sparklines)
2022-01-20 11:14:29,188 -- WARNING -- Missing Python Lib (No module named py3nvml.py3nvml), Nvidia GPU plugin is disabled
2022-01-20 11:15:37,403 -- INFO -- Glances stopped (keypressed: CTRL-C)
2022-01-20 11:15:44,735 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-01-20 11:15:44,735 -- INFO -- Start Glances 3.2.4.2
2022-01-20 11:15:44,735 -- INFO -- CPython 2.7.17 (/usr/local/opt/python@2/bin/python2.7) and psutil 5.9.0 detected
2022-01-20 11:15:44,783 -- INFO -- Start GlancesWebServer mode
2022-01-20 11:15:46,081 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-01-20 11:15:46,086 -- WARNING -- Sparklines module not found (No module named sparklines)
2022-01-20 11:15:46,087 -- WARNING -- Missing Python Lib (No module named py3nvml.py3nvml), Nvidia GPU plugin is disabled
2022-01-20 11:15:46,236 -- ERROR -- Can not grab extended stats (invalid attr names 'cpu_affinity', 'ionice')
2022-01-20 11:15:46,288 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/3/
2022-01-20 11:15:46,290 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
2022-01-20 11:16:25,068 -- INFO -- Glances stopped (keypressed: CTRL-C)
2022-01-20 11:16:35,139 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-01-20 11:16:35,140 -- INFO -- Start Glances 3.2.4.2
2022-01-20 11:16:35,140 -- INFO -- CPython 2.7.17 (/usr/local/opt/python@2/bin/python2.7) and psutil 5.9.0 detected
2022-01-20 11:16:35,161 -- INFO -- Start GlancesWebServer mode
2022-01-20 11:16:36,462 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-01-20 11:16:36,467 -- WARNING -- Sparklines module not found (No module named sparklines)
2022-01-20 11:16:36,467 -- WARNING -- Missing Python Lib (No module named py3nvml.py3nvml), Nvidia GPU plugin is disabled
2022-01-20 11:16:36,613 -- ERROR -- Can not grab extended stats (invalid attr names 'cpu_affinity', 'ionice')
2022-01-20 11:16:36,669 -- INFO -- Glances RESTful API Server started on http://0.0.0.0:61208/api/3/
2022-01-20 11:16:36,671 -- INFO -- Glances Web User Interface started on http://0.0.0.0:61208/
2022-01-20 11:17:37,685 -- INFO -- Glances stopped (keypressed: CTRL-C)
2022-07-18 16:41:51,533 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:41:51,535 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:41:51,535 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-18 16:41:51,784 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:41:52,090 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-18 16:41:52,090 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-18 16:44:11,857 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:44:11,857 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:44:11,857 -- INFO -- CPython 2.7.18 (/Users/rai/.pyenv/versions/2.7.18/bin/python2.7) and psutil 5.9.1 detected
2022-07-18 16:44:12,109 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:44:12,112 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-18 16:44:12,114 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-18 16:44:12,117 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-18 16:44:12,117 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-18 16:44:12,118 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-18 16:44:12,119 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-18 16:44:12,120 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-18 16:44:33,483 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:44:33,484 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:44:33,484 -- INFO -- CPython 2.7.18 (/Users/rai/.pyenv/versions/2.7.18/bin/python2.7) and psutil 5.9.1 detected
2022-07-18 16:44:33,499 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:44:33,501 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-18 16:44:33,503 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-18 16:44:33,506 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-18 16:44:33,506 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-18 16:44:33,507 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-18 16:44:33,507 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-18 16:44:33,508 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-18 16:45:49,017 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:45:49,017 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:45:49,017 -- INFO -- CPython 2.7.18 (/Users/rai/.pyenv/versions/2.7.18/bin/python2.7) and psutil 5.9.1 detected
2022-07-18 16:45:49,033 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:45:49,035 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-18 16:45:49,037 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-18 16:45:49,040 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-18 16:45:49,040 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-18 16:45:49,041 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-18 16:45:49,041 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-18 16:45:49,042 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-18 16:45:58,598 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:45:58,598 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:45:58,598 -- INFO -- CPython 2.7.18 (/Users/rai/.pyenv/versions/2.7.18/bin/python2.7) and psutil 5.9.1 detected
2022-07-18 16:45:58,613 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:45:58,616 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-18 16:45:58,618 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-18 16:45:58,620 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-18 16:45:58,620 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-18 16:45:58,621 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-18 16:45:58,622 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-18 16:45:58,622 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-18 16:49:39,493 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:49:39,494 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:49:39,494 -- INFO -- CPython 2.7.18 (/Users/rai/.pyenv/versions/2.7.18/bin/python2.7) and psutil 5.9.1 detected
2022-07-18 16:49:39,515 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:49:39,519 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-18 16:49:39,522 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-18 16:49:39,527 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-18 16:49:39,527 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-18 16:49:39,528 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-18 16:49:39,530 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-18 16:49:39,530 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-18 16:52:20,769 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:52:20,769 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:52:20,770 -- INFO -- CPython 2.7.18 (/Users/rai/.pyenv/versions/2.7.18/bin/python2.7) and psutil 5.9.1 detected
2022-07-18 16:52:20,788 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:52:20,792 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-18 16:52:20,794 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-18 16:52:20,797 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-18 16:52:20,797 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-18 16:52:20,798 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-18 16:52:20,799 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-18 16:52:20,799 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-18 16:52:53,499 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:52:53,500 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:52:53,501 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-18 16:52:53,516 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:52:53,609 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-18 16:52:53,610 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-18 16:57:14,792 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 16:57:14,793 -- INFO -- Start Glances 3.2.6.4
2022-07-18 16:57:14,793 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-18 16:57:14,805 -- INFO -- Start GlancesStandalone mode
2022-07-18 16:57:14,873 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-18 16:57:14,874 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-18 17:11:29,646 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-18 17:11:29,648 -- INFO -- Start Glances 3.2.6.4
2022-07-18 17:11:29,648 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-18 17:11:29,664 -- INFO -- Start GlancesStandalone mode
2022-07-18 17:11:29,767 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-18 17:11:29,769 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 17:47:55,945 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:47:55,947 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:47:55,947 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-22 17:47:55,968 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:47:56,083 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 17:47:56,084 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 17:48:59,548 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:48:59,549 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:48:59,549 -- INFO -- CPython 2.7.18 (/usr/local/opt/python@2/bin/python2.7) and psutil 5.9.1 detected
2022-07-22 17:48:59,573 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:48:59,578 -- WARNING -- Missing Python Lib (No module named requests), Ports plugin is limited to port scanning
2022-07-22 17:48:59,580 -- WARNING -- Missing Python Lib (No module named netifaces), IP plugin is disabled
2022-07-22 17:48:59,586 -- WARNING -- Error loading Docker deps Lib. Docker plugin is disabled (No module named docker)
2022-07-22 17:48:59,586 -- ERROR -- docker plugin - Can not connect to Docker (global name 'docker' is not defined)
2022-07-22 17:48:59,588 -- WARNING -- Missing Python Lib (No module named pySMART), HDD Smart plugin is disabled
2022-07-22 17:48:59,589 -- WARNING -- Missing Python Lib (No module named pymdstat), Raid plugin is disabled
2022-07-22 17:48:59,590 -- WARNING -- Missing Python Lib (No module named requests), Cloud plugin is disabled
2022-07-22 17:50:42,701 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:50:42,702 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:50:42,702 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-22 17:50:42,713 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:50:42,779 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 17:50:42,780 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 17:53:48,052 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:53:48,055 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:53:48,056 -- INFO -- CPython 3.10.5 (/usr/local/Cellar/glances/3.2.6.4/libexec/bin/python3.10) and psutil 5.9.1 detected
2022-07-22 17:53:48,086 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:53:48,555 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 17:53:48,558 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 17:55:42,918 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:55:42,919 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:55:42,919 -- INFO -- CPython 3.10.5 (/usr/local/Cellar/glances/3.2.6.4/libexec/bin/python3.10) and psutil 5.9.1 detected
2022-07-22 17:55:42,932 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:55:43,102 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 17:55:43,104 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 17:57:09,623 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:57:09,624 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:57:09,625 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-22 17:57:09,638 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:57:09,830 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 17:57:09,831 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 17:58:28,764 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 17:58:28,766 -- INFO -- Start Glances 3.2.6.4
2022-07-22 17:58:28,766 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-22 17:58:28,777 -- INFO -- Start GlancesStandalone mode
2022-07-22 17:58:28,944 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 17:58:28,945 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 18:01:38,577 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 18:01:38,578 -- INFO -- Start Glances 3.2.6.4
2022-07-22 18:01:38,578 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected
2022-07-22 18:01:38,590 -- INFO -- Start GlancesStandalone mode
2022-07-22 18:01:38,755 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2022-07-22 18:01:38,755 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2022-07-22 18:02:42,294 -- WARNING -- PsUtil can not grab processes io_counters ('Process' object has no attribute 'io_counters')
2022-07-22 18:02:42,296 -- INFO -- Start Glances 3.2.6.4
2022-07-22 18:02:42,296 -- INFO -- CPython 3.10.4 (/Users/rai/.pyenv/versions/3.10.4/bin/python) and psutil 5.9.1 detected

rbutera avatar Jul 22 '22 17:07 rbutera

Damed...

No MacOS available on my side to test.

First of all we can try lldb:

lldb --file /path/to/glances

What is the output ?

Or another option:

  1. Clean the existing crash logs under the ~/Library/Logs/DiagnosticReports/
    
  2. Run the program again to reproduce the issue
    
  3. Wait for a few seconds, the crash log will appear under the folder. The crash log is named like {your_program}_{crashing_date}_{id}_{your_host}.crash
    
  4. Open the crash log with your text editor, search for the keyword Crashed to locate the thread causing the crash. It will show you the stack trace during crash, and in many cases, the exact line of source code causing the crash will be recorded as well.
    

nicolargo avatar Jul 23 '22 16:07 nicolargo

For the record, i just make a test on a Macbook Air with macOS Monterey 12.4 and Glances works like a charm after a fresh brew install glances.

nicolargo avatar Jul 27 '22 09:07 nicolargo

Only for contribution, on my INTEL Macbook with macOS 11.6.8 (Bug Sur), glances runs perfectly fine. Maybe on ARM Mac (M1/M2) ?

devnull-hub-lab avatar Aug 15 '22 20:08 devnull-hub-lab

I'm on an M2 Mac and I can reproduce this issue.

Glances version: Glances v3.4.0.3 with PsUtil v5.9.5 Python version: 3.11.5

I got a stack trace from lldb:

 * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000000000000
    frame #1: 0x0000000102535258 _curses.cpython-311-darwin.so`_curses_window_subwin + 164
    frame #2: 0x0000000100588a24 libpython3.11.dylib`method_vectorcall_VARARGS + 140
    frame #3: 0x000000010057d7a4 libpython3.11.dylib`PyObject_Vectorcall + 80
    frame #4: 0x000000010065daec libpython3.11.dylib`_PyEval_EvalFrameDefault + 35160
    frame #5: 0x00000001006550f4 libpython3.11.dylib`_PyEval_Vector + 200
    frame #6: 0x000000010057d09c libpython3.11.dylib`_PyObject_FastCallDictTstate + 140
    frame #7: 0x000000010057de70 libpython3.11.dylib`_PyObject_Call_Prepend + 160
    frame #8: 0x00000001005ea6a0 libpython3.11.dylib`slot_tp_init + 188
    frame #9: 0x00000001005e019c libpython3.11.dylib`type_call + 424
    frame #10: 0x000000010057d308 libpython3.11.dylib`_PyObject_MakeTpCall + 344
    frame #11: 0x000000010065daec libpython3.11.dylib`_PyEval_EvalFrameDefault + 35160
    frame #12: 0x00000001006550f4 libpython3.11.dylib`_PyEval_Vector + 200
    frame #13: 0x000000010057d09c libpython3.11.dylib`_PyObject_FastCallDictTstate + 140
    frame #14: 0x000000010057de70 libpython3.11.dylib`_PyObject_Call_Prepend + 160
    frame #15: 0x00000001005ea6a0 libpython3.11.dylib`slot_tp_init + 188
    frame #16: 0x00000001005e019c libpython3.11.dylib`type_call + 424
    frame #17: 0x000000010057d308 libpython3.11.dylib`_PyObject_MakeTpCall + 344
    frame #18: 0x000000010065daec libpython3.11.dylib`_PyEval_EvalFrameDefault + 35160
    frame #19: 0x0000000100654fc4 libpython3.11.dylib`PyEval_EvalCode + 272
    frame #20: 0x00000001006a7f1c libpython3.11.dylib`run_mod + 152
    frame #21: 0x00000001006a6410 libpython3.11.dylib`_PyRun_SimpleFileObject + 852
    frame #22: 0x00000001006a5e98 libpython3.11.dylib`_PyRun_AnyFileObject + 160
    frame #23: 0x00000001006c52f4 libpython3.11.dylib`Py_RunMain + 1848
    frame #24: 0x00000001006c56a4 libpython3.11.dylib`pymain_main + 324
    frame #25: 0x00000001006c5744 libpython3.11.dylib`Py_BytesMain + 40
    frame #26: 0x0000000189c27f28 dyld`start + 2236

Looks like it's bottoming out in the curses library, which is trying to dereference a null pointer.

iafisher avatar Sep 29 '23 14:09 iafisher

Indeed, some linking around with libncurses.so fixes the issue, see https://github.com/aws/deep-learning-containers/issues/2895#issuecomment-1532787585

elgalu avatar Sep 29 '23 14:09 elgalu

I'm on a Mac and I'm not using conda, so those symlinks aren't going to work for me.

iafisher avatar Sep 29 '23 23:09 iafisher