| Anonymous | Login | Signup for a new account | 2013-05-23 11:43 CEST | ![]() |
| All Projects | FPC | Lazarus: Packages, Patches | Lazarus CCR | Mantis | fpGUI | fpcprojects: fpprofiler |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0021607 | FPC | Compiler | public | 2012-03-30 15:28 | 2012-04-20 20:14 | ||||
| Reporter | Joost van der Sluis | ||||||||
| Assigned To | Florian | ||||||||
| Priority | normal | Severity | crash | Reproducibility | sometimes | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | x86_64 | OS | linux | OS Version | Fedora 15 | ||||
| Product Version | 2.7.1 | Product Build | r20583 | ||||||
| Target Version | Fixed in Version | 2.6.1 | |||||||
| Summary | 0021607: Compiler AV when a unit's source can not be found when a ppu needs a recompile | ||||||||
| Description | When 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 | ||||||||
| Tags | No tags attached. | ||||||||
| FPCOldBugId | 0 | ||||||||
| Fixed in Revision | 20944 | ||||||||
| Attached Files | |||||||||
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 |
| Main | My View | View Issues | Change Log | Roadmap |



