View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0021607FPCCompilerpublic2012-03-30 15:282012-04-20 20:14
ReporterJoost van der Sluis 
Assigned ToFlorian 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusclosedResolutionfixed 
Platformx86_64OSlinuxOS VersionFedora 15
Product Version2.7.1Product Buildr20583 
Target VersionFixed in Version2.6.1 
Summary0021607: Compiler AV when a unit's source can not be found when a ppu needs a recompile
DescriptionWhen a unit can't be found, the compiler crashes instead of printing an error. This is introduced in r20583, the following patch hides the problem but is not a real solution, offcourse.

Index: compiler/fppu.pas
===================================================================
--- compiler/fppu.pas (revision 20668)
+++ compiler/fppu.pas (working copy)
@@ -1629,9 +1629,9 @@
                               break;
                             pu:=tused_unit(pu.next);
                           end;
- if assigned(pu) then
+ {if assigned(pu) then
                           MessagePos2(pu.unitsym.fileinfo,unit_f_cant_find_ppu,realmodulename^,loaded_from.realmodulename^)
- else
+ else}
                           Message2(unit_f_cant_find_ppu,realmodulename^,loaded_from.realmodulename^);
                       end
                     else


Compiler backtrace:
CompilinAn unhandled exception occurred at $0000000000581D50:
EAccessViolation: Access violation
  $0000000000581D50 line 1633 of fppu.pas
  $0000000000581507 line 1374 of fppu.pas
  $0000000000581BEA line 1599 of fppu.pas
  $0000000000581507 line 1374 of fppu.pas
  $0000000000581BEA line 1599 of fppu.pas
  $0000000000581507 line 1374 of fppu.pas
  $0000000000581BEA line 1599 of fppu.pas
  $00000000005812CA line 1312 of fppu.pas
  $0000000000581BEA line 1599 of fppu.pas
  $00000000005812CA line 1312 of fppu.pas
  $0000000000581BEA line 1599 of fppu.pas
  $00000000005812CA line 1312 of fppu.pas
  $0000000000581BEA line 1599 of fppu.pas
  $000000000058CFE8 line 842 of pmodules.pas
  $000000000058DF6D line 1212 of pmodules.pas
  $0000000000572E68 line 395 of parser.pasg dmmain.pp
Fatal: Compilation aborted
TagsNo tags attached.
FPCOldBugId0
Fixed in Revision20944
Attached Files

- Relationships
child of 0021776closedFlorian wrong error line on compilation 

-  Notes
(0058274)
Pierre Muller (developer)
2012-04-03 09:29

Commit 20696 should fix the issue,
please test and confirm.

Pierre Muller

- Issue History
Date Modified Username Field Change
2012-03-30 15:28 Joost van der Sluis New Issue
2012-03-30 15:28 Joost van der Sluis Status new => assigned
2012-03-30 15:28 Joost van der Sluis Assigned To => Florian
2012-03-30 15:28 Joost van der Sluis FPCOldBugId => 0
2012-04-03 09:29 Pierre Muller Fixed in Revision => 20696
2012-04-03 09:29 Pierre Muller Status assigned => resolved
2012-04-03 09:29 Pierre Muller Fixed in Version => 2.7.1
2012-04-03 09:29 Pierre Muller Resolution open => fixed
2012-04-03 09:29 Pierre Muller Note Added: 0058274
2012-04-15 19:53 Jonas Maebe Relationship added child of 0021776
2012-04-20 15:47 Joost van der Sluis Status resolved => closed
2012-04-20 20:14 Jonas Maebe Fixed in Revision 20696 => 20944
2012-04-20 20:14 Jonas Maebe Fixed in Version 2.7.1 => 2.6.1



MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker