View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035965 | FPC | RTL | public | 2019-08-15 07:12 | 2019-08-15 15:31 |
Reporter | Thaddy de Koning | Assigned To | Sven Barth | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | armhf | OS | Raspbian | ||
Product Version | 3.3.1 | ||||
Fixed in Version | 3.3.1 | ||||
Summary | 0035965: function TObject.UnitName does not work any more | ||||
Description | The function function Tobject.Username does not work any more on Raspbian. It returns either garbage or nothing at all. This also breaks Lazarus into an unusable state. | ||||
Steps To Reproduce | Compile this on Raspbian 10, armhf: program test; {$mode delphi} uses classes; begin Test(); O := TObject.Create; writeln(O.UnitName); end. Outputs: System(� IUnknown�FSystem��`� TClassX� | ||||
Additional Information | This is discovered by rvk in a forum topic related to not being able to use Lazarus. Reproduced by many. Lazarus is broken because of it, | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 42697 | ||||
FPCOldBugId | |||||
FPCTarget | - | ||||
Attached Files |
|
|
|
|
example of one of the many issues that this causes in Lazarus. See duscussion here https://forum.lazarus.freepascal.org/index.php/topic,46291.msg329546.html#msg329546 |
|
Probably yet another RTTI related alignment problem... *sigh* |
|
I tracked down the problem version. Compiling FPC with rev.42475 gave a correct result, with rev.42476 a wrong result. (even on Raspberry Pi Debian 9.9 Stretch / arm) I hope this will prevent a developer from searching too much :) [quote]Revision: 42476 Author: florian Date: zondag 21 juli 2019 10:28:29 Message: * more fixes to rtti after attribute branch merging ---- Modified : /trunk/compiler/ncgrtti.pas Modified : /trunk/compiler/symconst.pas Modified : /trunk/rtl/inc/dynarr.inc Modified : /trunk/rtl/inc/rtti.inc Modified : /trunk/rtl/inc/rttidecl.inc Modified : /trunk/rtl/objpas/typinfo.pp[/quote] |
|
@Rik van Kekem: I already know what caused it, it was the source of many headaches since I reintegrated it. The main problem is to solve it. Though this one was thankfully easy... Please test and close if okay. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-08-15 07:12 | Thaddy de Koning | New Issue | |
2019-08-15 07:19 | Thaddy de Koning | File Added: codetoolsbug.png | |
2019-08-15 07:19 | Thaddy de Koning | Note Added: 0117677 | |
2019-08-15 11:21 | Sven Barth | Summary | function Tobject.Username does not work any more => function TObject.UnitName does not work any more |
2019-08-15 11:21 | Sven Barth | FPCTarget | => - |
2019-08-15 11:22 | Sven Barth | Note Added: 0117682 | |
2019-08-15 13:37 | Rik van Kekem | Note Added: 0117685 | |
2019-08-15 15:30 | Sven Barth | Assigned To | => Sven Barth |
2019-08-15 15:30 | Sven Barth | Status | new => resolved |
2019-08-15 15:30 | Sven Barth | Resolution | open => fixed |
2019-08-15 15:30 | Sven Barth | Fixed in Version | => 3.3.1 |
2019-08-15 15:30 | Sven Barth | Fixed in Revision | => 42697 |
2019-08-15 15:30 | Sven Barth | Note Added: 0117688 | |
2019-08-15 15:31 | Sven Barth | Note Edited: 0117688 | View Revisions |