[erledigt] Debug-Mode läuft nicht

Für Fragen rund um die Ide und zum Debugger
Antworten
Benutzeravatar
kralle
Lazarusforum e. V.
Beiträge: 989
Registriert: Mi 17. Mär 2010, 14:50
OS, Lazarus, FPC: Linux Mint 20 , FPC 3.3.1 , Lazarus 2.1.0 -Win10 & XE7Pro
CPU-Target: 64Bit
Wohnort: Bremerhaven
Kontaktdaten:

[erledigt] Debug-Mode läuft nicht

Beitrag von kralle »

OS: Linux Mint 64-Bit Cinnamon
FPC: 3.0.4
Laz: 2.0.6
FPCUPdeleuxe: 1.8.6

Moin,
ich habe auf einem frisch installierten Mint nach der Anleitung https://www.lazarusforum.de/viewtopic.php?f=3&t=12766 Lazarus installiert und eingerichtet.
Linux64 und 32 laufen. Windows 32 Und 64 mit Wine laufen.
"Release"-Mode läuft.
Nur ein Start der Anwendung (Formular mit einem Button) crasht .
Dabei gibt es nicht nur untenstehende Meldungen, sondern auch Mint wird abgeschossen (nicht immer).

Irgendwelche Idee, wie ich die Ursache beseitigen kann?

Code: Alles auswählen

 
Hint: (11030) Start of reading config file /home/lazman/lazarus/fpc/bin/x86_64-linux/fpc.cfg
Hint: (11031) End of reading config file /home/lazman/lazarus/fpc/bin/x86_64-linux/fpc.cfg
Free Pascal Compiler version 3.0.4-r37149 [2020/03/06] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling test001.lpr
(3104) Compiling unit1.pas
(9022) Compiling resource /home/lazman/lazarus/projects/2020-03-06_Erster XCompile Test/Debug/lib-x86_64-linux/test001.or
(9015) Linking /home/lazman/lazarus/projects/2020-03-06_Erster XCompile Test/test001
/usr/bin/ld: warning: /home/lazman/lazarus/projects/2020-03-06_Erster XCompile Test/link.res contains output sections; did you forget -T?
Verwendung: /usr/bin/objcopy [Option(en)] Eingabedatei [Ausgabedatei]
 Kopiert eine binäre Datei und transformiert sie bei Bedarf
 Die Optionen lauten:
  -I --input-target <bfdname>      Assume input file is in format <bfdname>
  -O --output-target <bfdname>     Create an output file in format <bfdname>
  -B --binary-architecture <arch>  Set output arch, when input is arch-less
  -F --target <bfdname>            Set both input and output format to <bfdname>
     --debugging                   Convert debugging information, if possible
  -p --preserve-dates              Copy modified/access timestamps to the output
  -D --enable-deterministic-archives
                                   Produce deterministic output when stripping archives (default)
  -U --disable-deterministic-archives
                                   Disable -D behavior
  -j --only-section <name>         Only copy section <name> into the output
     --add-gnu-debuglink=<file>    Add section .gnu_debuglink linking to <file>
  -R --remove-section <name>       Remove section <name> from the output
     --remove-relocations <name>   Remove relocations from section <name>
  -S --strip-all                   Remove all symbol and relocation information
  -g --strip-debug                 Remove all debugging symbols & sections
     --strip-dwo                   Remove all DWO sections
     --strip-unneeded              Remove all symbols not needed by relocations
  -N --strip-symbol <name>         Do not copy symbol <name>
     --strip-unneeded-symbol <name>
                                   Do not copy symbol <name> unless needed by
                                     relocations
     --only-keep-debug             Strip everything but the debug information
     --extract-dwo                 Copy only DWO sections
     --extract-symbol              Remove section contents but keep symbols
  -K --keep-symbol <name>          Do not strip symbol <name>
     --keep-file-symbols           Do not strip file symbol(s)
     --localize-hidden             Turn all ELF hidden symbols into locals
  -L --localize-symbol <name>      Force symbol <name> to be marked as a local
     --globalize-symbol <name>     Force symbol <name> to be marked as a global
  -G --keep-global-symbol <name>   Localize all symbols except <name>
  -W --weaken-symbol <name>        Force symbol <name> to be marked as a weak
     --weaken                      Force all global symbols to be marked as weak
  -w --wildcard                    Permit wildcard in symbol comparison
  -x --discard-all                 Remove all non-global symbols
  -X --discard-locals              Remove any compiler-generated symbols
  -i --interleave[=<number>]       Only copy N out of every <number> bytes
     --interleave-width <number>   Set N for --interleave
  -b --byte <num>                  Select byte <num> in every interleaved block
     --gap-fill <val>              Fill gaps between sections with <val>
     --pad-to <addr>               Pad the last section up to address <addr>
     --set-start <addr>            Set the start address to <addr>
    {--change-start|--adjust-start} <incr>
                                   Add <incr> to the start address
    {--change-addresses|--adjust-vma} <incr>
                                   Add <incr> to LMA, VMA and start addresses
    {--change-section-address|--adjust-section-vma} <name>{=|+|-}<val>
                                   Change LMA and VMA of section <name> by <val>
     --change-section-lma <name>{=|+|-}<val>
                                   Change the LMA of section <name> by <val>
     --change-section-vma <name>{=|+|-}<val>
                                   Change the VMA of section <name> by <val>
    {--[no-]change-warnings|--[no-]adjust-warnings}
                                   Warn if a named section does not exist
     --set-section-flags <name>=<flags>
                                   Set section <name>'s properties to <flags>
     --add-section <name>=<file>   Add section <name> found in <file> to output
     --update-section <name>=<file>
                                   Update contents of section <name> with
                                   contents found in <file>
     --dump-section <name>=<file>  Dump the contents of section <name> into <file>
     --rename-section <old>=<new>[,<flags>] Rename section <old> to <new>
     --long-section-names {enable|disable|keep}
                                   Handle long section names in Coff objects.
     --change-leading-char         Force output format'
s leading character style
     --remove-leading-char         Remove leading character from global symbols
     --reverse-bytes=<num>         Reverse <num> bytes at a time, in output sections with content
     --redefine-sym <old>=<new>    Redefine symbol name <old> to <new>
     --redefine-syms <file>        --redefine-sym for all symbol pairs
                                     listed in <file>
     --srec-len <number>           Restrict the length of generated Srecords
     --srec-forceS3                Restrict the type of generated Srecords to S3
     --strip-symbols <file>        -N for all symbols listed in <file>
     --strip-unneeded-symbols <file>
                                   --strip-unneeded-symbol for all symbols listed
                                     in <file>
     --keep-symbols <file>         -K for all symbols listed in <file>
     --localize-symbols <file>     -L for all symbols listed in <file>
     --globalize-symbols <file>    --globalize-symbol for all in <file>
     --keep-global-symbols <file>  -G for all symbols listed in <file>
     --weaken-symbols <file>       -W for all symbols listed in <file>
     --add-symbol <name>=[<section>:]<value>[,<flags>]  Add a symbol
     --alt-machine-code <index>    Use the target's <index>'th alternative machine
     --writable-text               Mark the output text as writable
     --readonly-text               Make the output text write protected
     --pure                        Mark the output file as demand paged
     --impure                      Mark the output file as impure
     --prefix-symbols <prefix>     Add <prefix> to start of every symbol name
     --prefix-sections <prefix>    Add <prefix> to start of every section name
     --prefix-alloc-sections <prefix>
                                   Add <prefix> to start of every allocatable
                                     section name
     --file-alignment <num>        Set PE file alignment to <num>
     --heap <reserve>[,<commit>]   Set PE reserve/commit heap to <reserve>/
                                   <commit>
     --image-base <address>        Set PE image base to <address>
     --section-alignment <num>     Set PE section alignment to <num>
     --stack <reserve>[,<commit>]  Set PE reserve/commit stack to <reserve>/
                                   <commit>
     --subsystem <name>[:<version>]
                                   Set PE subsystem to <name> [& <version>]
     --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]
                                   Compress DWARF debug sections using zlib
     --decompress-debug-sections   Decompress DWARF debug sections using zlib
     --elf-stt-common=[yes|no]     Generate ELF common symbols with STT_COMMON
                                     type
  ---merge-notes                Remove redundant entries in note sections
      --no-merge-notes             Do not attempt to remove redundant notes (default)
  -v --verbose                     List all object files modified
  @<file>                          Read options from <file>
  -V --version                     Display this program's version number
  -h --help                        Display this output
     --info                        List object formats & architectures supported
/usr/bin/objcopy: Unterstützte Ziele: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex
/home/lazman/lazarus/projects/2020-03-06_Erster XCompile Test/test001.lpr(21,1) Error: (9013) Error while linking
/home/lazman/lazarus/projects/2020-03-06_Erster XCompile Test/test001.lpr(21,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /home/lazman/lazarus/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
 


Gruß Heiko

Nachtrag: In der Angehängten Datei befinden sich die Einstellungen für den DEBUG-Mode.
Dateianhänge
compiler_settings.xml
(2.54 KiB) 135-mal heruntergeladen
Zuletzt geändert von kralle am So 8. Mär 2020, 08:51, insgesamt 1-mal geändert.
OS: Manjaro Linux, Debian und Windows 10
FPC-Version: 3.2.2 , Lazarus 3.0
+ Delphi XE7SP1

MacWomble
Lazarusforum e. V.
Beiträge: 999
Registriert: Do 17. Apr 2008, 01:59
OS, Lazarus, FPC: Mint 21.1 Cinnamon / FPC 3.2.2/Lazarus 2.2.4
CPU-Target: Intel i7-10750 64Bit
Wohnort: Freiburg

Re: Debug-Mode läuft nicht

Beitrag von MacWomble »

Hast du schon mal versucht, mit fpcupdeluxe einfach die trunkversionen bzw. die neuesten Fixes (FPC Fixes 3.2 Laz Fixes 2.0) zu installieren und es damit zu testen?

Allerdings kann ich nur anmerken, dass ich auch diverse Probleme mit Lazarus habe. Es ist äusserst instabil und das Programm hängt öfters mal den Rechner bzw Cinnamon auf. Manchmal reicht hierfür bereits ein Rechtsklick im Sourcecode.

Auch ich arbeite mit Mint 19.3, ob es damit zusammen hängt?

Hast du Lazarus für jede Umgebung extra aufgesetzt? Ich habe nur eine Installation und nutze das Crosscompiling für Linux 32 / 64 / Debug / W32 / W32 GTK / W64. Nach der neuen Anleitung klappt das wunderbar. Die Windowsprogramme teste ich dann allerdings in W10 (VirtualBox)

PS: Mit einem Fremdprodukt (ich möchte den Namen nicht mehr nennen) hatte ich jahrelang nie irgendwelche Probleme dieser Art.
PPS: Der Sparta-Docker verursacht bei mir massiv Probleme, weswegen ich den wieder runter geschmissen habe.
Alle sagten, dass es unmöglich sei - bis einer kam und es einfach gemacht hat.

Benutzeravatar
kralle
Lazarusforum e. V.
Beiträge: 989
Registriert: Mi 17. Mär 2010, 14:50
OS, Lazarus, FPC: Linux Mint 20 , FPC 3.3.1 , Lazarus 2.1.0 -Win10 & XE7Pro
CPU-Target: 64Bit
Wohnort: Bremerhaven
Kontaktdaten:

Re: Debug-Mode läuft nicht

Beitrag von kralle »

Moin,

ich habe die 2.1 installiert und damit läuft es.
Danke.

Gruß Heiko
OS: Manjaro Linux, Debian und Windows 10
FPC-Version: 3.2.2 , Lazarus 3.0
+ Delphi XE7SP1

Antworten