mar0x / Candle

GRBL controller application with G-Code visualizer written in Qt.
GNU General Public License v3.0
5 stars 1 forks source link

Segmentation fault at runtime in ubuntu 20.04 #2

Closed jblb closed 1 year ago

jblb commented 1 year ago

Versions

PC info

Describe the bug After compiling, at run time I've got a segfault

To Reproduce Steps to reproduce the behavior: from to top directory:

$ git checkout Experimental-fixes
$ qmake
$ make
$ cd bin
$ LD_LIBRARY_PATH=$PWD ./Candle

when I got

style "Windows"
style "Fusion"
Loading plugins: ("camera", "coordinatesystem", "emergencybutton", "usercommands")
Loading plugin: "camera" "Camera" "CameraPlugin"
Starting plugin: "camera"
[1]    132172 segmentation fault (core dumped)  ./Candle

if I runing it in gdb

$ gdb bin/Candle

Reading symbols from bin/Candle...
(No debugging symbols found in bin/Candle)
(gdb) r
Starting program: /home/jerome/spare/cnc/mar0X_Candle/bin/Candle 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff28aa700 (LWP 133084)]
[New Thread 0x7ffff0dac700 (LWP 133085)]
[New Thread 0x7fffebfff700 (LWP 133086)]
style "Windows"
style "Fusion"
[New Thread 0x7fffeb7fe700 (LWP 133087)]
[New Thread 0x7fffeaffd700 (LWP 133088)]
[New Thread 0x7fffdffff700 (LWP 133089)]
[New Thread 0x7fffdf6bd700 (LWP 133090)]
Loading plugins: ("camera", "coordinatesystem", "emergencybutton", "usercommands")
Loading plugin: "camera" "Camera" "CameraPlugin"
Starting plugin: "camera"

Thread 1 "Candle" received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:152
152 ../sysdeps/x86_64/multiarch/../strlen.S: Aucun fichier ou dossier de ce type.
mar0x commented 1 year ago

Hello, Thanks for reporting! It is the result of my inaccurate attempt to fix compilation warnings.

jblb commented 1 year ago

that's works for me thk