CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
602 stars 138 forks source link

Unofficial build of 1.3.0 seg-faults on Debian amd64 #380

Closed richardklingler closed 10 months ago

richardklingler commented 1 year ago

A fresh compile of camotics 1.3.0 just throws a core dump when executed:

*********************************** CAMotics ***********************************
    Version: 1.3.0
     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
        Org: Cauldron Development LLC
  Copyright: 2011-2019, Joseph Coffland
   Homepage: https://camotics.org/
    License: https://www.gnu.org/licenses/gpl-2.0.txt
       Date: Nov 30 2022
       Time: 07:25:40
   Revision: 4b8a5c718a5c6b48fb78708097803b5006b74bd3
     Branch: master
   Compiler: GNU 10.2.1 20210110
    Options: -faligned-new -std=c++14 -fsigned-char -Wno-deprecated-declarations
             -ffunction-sections -fdata-sections -O3 -funroll-loops -fno-pie
             -fPIC
   Platform: linux 5.10.0-19-amd64
       Bits: 64
       Mode: Release
************************************ CBang *************************************
       Date: Nov 18 2022
       Time: 13:34:44
   Revision: b52c7913ba61fd9912ca3d66adc151c6e6a74dea
     Branch: master
   Compiler: GNU 10.2.1 20210110
    Options: -faligned-new -std=c++14 -fsigned-char -ffunction-sections
             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
   Platform: linux 5.10.0-19-amd64
       Bits: 64
       Mode: Release
************************************ System ************************************
        CPU: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
     CPU ID: GenuineIntel Family 6 Model 158 Stepping 10
       CPUs: 6
     Memory: 31.03GiB
Free Memory: 18.19GiB
    Threads: POSIX_THREADS
 OS Version: 5.10
Has Battery: false
 On Battery: false
 UTC Offset: 1
        PID: 8577
        CWD: /home/me
       Exec: /usr/bin/camotics
        DPI: 96
********************************************************************************
Segmentation fault

Even the prebuilt 1.2.0 Debian package throws the same segmentation error...

jcoffland commented 1 year ago

That's not the case on my machine. If the 1.2.0 version is also crashing perhaps it has something to do with a dynamic library on your system. Try building the debug release then run it under gdb. If it still seg-faults you can get a backtrace with the bt command. Post the backtrace here and then I may be able to help. Alternatively you could run the debug version under valgrind.