View Issue Details

IDProjectCategoryView StatusLast Update
0037187FPCCompilerpublic2020-08-04 15:30
Reporteravk Assigned ToSven Barth  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSLinux 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0037187: FPC crashes when compiling LGenerics.
DescriptionStarting with revision 45457, fpc crashes when compiling LGenerics:

Hint: (11030) Start of reading config file /home_dev/fpc/bin/x86_64-linux/fpc.cfg
Hint: (11031) End of reading config file /home_dev/fpc/bin/x86_64-linux/fpc.cfg
Free Pascal Compiler version 3.3.1-r45457 [2020/06/09] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling LGenerics.pas
(3104) Compiling LGAbstractContainer.pas
(3104) Compiling LGUtils.pas
(3104) Compiling LGStrConst.pas
(1010) Writing Resource String Table file: LGStrConst.rsj
(3104) Compiling LGHelpers.pas
(3104) Compiling LGHash.pas
/home_dev/projects/LGenerics/lgenerics/LGHash.pas(320,59) Hint: (4079) Converting the operands to "QWord" before doing the add could prevent overflow errors.
/home_dev/projects/LGenerics/lgenerics/LGHash.pas(1067,40) Hint: (4081) Converting the operands to "Int64" before doing the multiply could prevent overflow errors.
/home_dev/projects/LGenerics/lgenerics/LGHash.pas(1069,40) Hint: (4081) Converting the operands to "Int64" before doing the multiply could prevent overflow errors.
/home_dev/projects/LGenerics/lgenerics/LGHelpers.pas(668,36) Hint: (4055) Conversion between ordinals and pointers is not portable
(3104) Compiling LGArrayHelpers.pas
(3104) Compiling LGAsync.pas
(3104) Compiling LGQueue.pas
An unhandled exception occurred at $000000000057857A:
EAccessViolation: Access violation
  $000000000057857A
  $00000000005DF451
  $00000000005DF451
  $00000000005DF451
  $00000000005DF451

/home_dev/projects/LGenerics/lgenerics/LGUtils.pas(149,66) Error: (1026) Compilation raised exception internally
Fatal: (1018) Compilation aborted
Error: /home_dev/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
Tagsgenerics
Fixed in Revision46218
FPCOldBugId
FPCTarget-
Attached Files

Activities

Cyrax

2020-06-08 20:22

reporter   ~0123342

Can you rebuild your FPC version with debug info enabled?

avk

2020-06-09 04:30

reporter   ~0123348

I just tried to compile fpc3.3.1-r45457 with -gl options and got this output:

Hint: (11030) Start of reading config file /home_dev/fpc/bin/x86_64-linux/fpc.cfg
Hint: (11031) End of reading config file /home_dev/fpc/bin/x86_64-linux/fpc.cfg
Free Pascal Compiler version 3.3.1-r45457 [2020/06/09] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling LGenerics.pas
(3104) Compiling LGAbstractContainer.pas
(3104) Compiling LGUtils.pas
(3104) Compiling LGStrConst.pas
(1010) Writing Resource String Table file: LGStrConst.rsj
(3104) Compiling LGHelpers.pas
(3104) Compiling LGHash.pas
/home_dev/projects/LGenerics/lgenerics/LGHash.pas(320,59) Hint: (4079) Converting the operands to "QWord" before doing the add could prevent overflow errors.
/home_dev/projects/LGenerics/lgenerics/LGHash.pas(1067,40) Hint: (4081) Converting the operands to "Int64" before doing the multiply could prevent overflow errors.
/home_dev/projects/LGenerics/lgenerics/LGHash.pas(1069,40) Hint: (4081) Converting the operands to "Int64" before doing the multiply could prevent overflow errors.
/home_dev/projects/LGenerics/lgenerics/LGHelpers.pas(668,36) Hint: (4055) Conversion between ordinals and pointers is not portable
(3104) Compiling LGArrayHelpers.pas
(3104) Compiling LGAsync.pas
(3104) Compiling LGQueue.pas
An unhandled exception occurred at $000000000057B78A:
EAccessViolation: Access violation
  $000000000057B78A PASS_TYPECHECK, line 2967 of ninl.pas
  $00000000005E2671 READ_NAMED_TYPE, line 1881 of ptype.pas
  $00000000005E2671 READ_NAMED_TYPE, line 1881 of ptype.pas
  $00000000005E2671 READ_NAMED_TYPE, line 1881 of ptype.pas
  $00000000005E2671 READ_NAMED_TYPE, line 1881 of ptype.pas

/home_dev/projects/LGenerics/lgenerics/LGUtils.pas(149,66) Error: (1026) Compilation raised exception internally
Fatal: (1018) Compilation aborted
Error: /home_dev/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode

Julian Puhl

2020-08-02 20:34

reporter   ~0124516

Any news on this? I would like to try your containers, but they do not work with current trunk.

Sven Barth

2020-08-03 23:54

manager   ~0124530

Please test and close if okay.

avk

2020-08-04 15:29

reporter   ~0124543

Thank you very much.

Issue History

Date Modified Username Field Change
2020-06-08 19:50 avk New Issue
2020-06-08 20:22 Cyrax Note Added: 0123342
2020-06-09 04:30 avk Note Added: 0123348
2020-06-09 06:44 Cyrax Tag Attached: generics
2020-08-02 20:34 Julian Puhl Note Added: 0124516
2020-08-03 21:50 Sven Barth Assigned To => Sven Barth
2020-08-03 21:50 Sven Barth Status new => assigned
2020-08-03 23:54 Sven Barth Status assigned => resolved
2020-08-03 23:54 Sven Barth Resolution open => fixed
2020-08-03 23:54 Sven Barth Fixed in Version => 3.3.1
2020-08-03 23:54 Sven Barth Fixed in Revision => 46218
2020-08-03 23:54 Sven Barth FPCTarget => -
2020-08-03 23:54 Sven Barth Note Added: 0124530
2020-08-04 15:29 avk Note Added: 0124543
2020-08-04 15:30 avk Status resolved => closed