[SOLVED]Linux External Sigabrt Help lazarus / 32-Linux ---------------------------------------------------------------------- RastaManKing · 2018-12-10 06:18 I am trying to implement multi-threading in my application(Linux x86_64) for this i added -dUseCThreads to my custom compiler options also added: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$ifdef unix}    cthreads, cmem,  {$endif} got error so i tried with: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$ifdef unix}{$ifdef UseCThreads}    cthreads, cmem,  {$endif}{$endif} but i keep getting same error: QuoteProject project1 raised exception class 'External: SIGABRT'.  At address 7FFFF6F43D7F assembler marks: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 00007FFFF6F43D7F 488b8c2408010000         mov    0x108(%rsp),%rcx and GDB is not being nice to me any ideas? if i need to debug this further, can someone point me in the right GDB documentation? Thank You ---------------------------------------------------------------------- Cyrax · 2018-12-10 06:56 Try to put cmem first, then cthreads after it. ---------------------------------------------------------------------- RastaManKing · 2018-12-10 07:49 Quote from: Cyrax on December 10, 2018, 07:56:05 amTry to put cmem first, then cthreads after it. i get the same error still i should add that there is still NO multithreading code, i just added cthreads, cmem and the error came up. ---------------------------------------------------------------------- Cyrax · 2018-12-10 09:39 Are you adding those units in the main program source? Can you test that does simple console/terminal program crash? ---------------------------------------------------------------------- RastaManKing · 2018-12-10 16:56 Quote from: Cyrax on December 10, 2018, 10:39:11 amAre you adding those units in the main program source? Can you test that does simple console/terminal program crash? yes, this uses are in the main program's unit, i will try to add this refs to a new console project and report back... ---------------------------------------------------------------------- sash · 2018-12-10 17:15 Well, Linux + console app + debugger (+ threads) is not currently very strong feature of Lazarus, however, my threaded console apps works ok with such lpr header: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program progxxx; {$mode objfpc}{$H+}   {$IFDEF UNIX}cthreads, cmem, {$ENDIF} Classes, ...; begin   Try to tweak Run parameters -> launching application. ---------------------------------------------------------------------- RastaManKing · 2018-12-10 17:26 Quote from: sash on December 10, 2018, 06:15:38 pmWell, Linux + console app + debugger (+ threads) is not currently very strong feature of Lazarus, however, my threaded console apps works ok with such lpr header: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program progxxx; {$mode objfpc}{$H+}   {$IFDEF UNIX}cthreads, cmem, {$ENDIF} Classes, ...; begin   Try to tweak Run parameters -> launching application. Well i just started a new console application and it had cthreads refference added already and compiled just fine, i noticed that cmem was missing, so i went to my project and removed cmem from the refferences and now the problem is gone, so i guess cmem was causing the external sigabtr exception, will i have a real problem for not using cmem? should i keep looking into a way to be able to use cmem? ---------------------------------------------------------------------- sash · 2018-12-11 09:08 Quotewill i have a real problem for not using cmem? should i keep looking into a way to be able to use cmem? Generally no, but please search wiki and forum about cmem. ---------------------------------------------------------------------- RastaManKing · 2018-12-12 01:33 Quote from: sash on December 11, 2018, 10:08:03 amQuotewill i have a real problem for not using cmem? should i keep looking into a way to be able to use cmem? Generally no, but please search wiki and forum about cmem. Thank you, i will mark as solved.