Recent

Author Topic: Lazarus caught AV, seems to be related to FpDebug  (Read 453 times)

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 305
  • I use FPC [main] 💪🐯💪
Lazarus caught AV, seems to be related to FpDebug
« on: November 11, 2025, 09:55:43 am »
Sorry, I can't repeat it. I tried, but it doesn't work...
But I took a screenshot and saved it, maybe it will give you some ideas.

I may seem rude - please don't take it personally

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 305
  • I use FPC [main] 💪🐯💪
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #1 on: November 11, 2025, 09:58:17 am »
I also have the CPU-View package from Alexander Bagel installed.

I don't know if this could have any effect, because as far as I understand, it is closely integrated.
I may seem rude - please don't take it personally

n7800

  • Hero Member
  • *****
  • Posts: 583
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #2 on: November 11, 2025, 11:05:17 am »
It would be helpful if you provided the commit hash of your trunk.

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 305
  • I use FPC [main] 💪🐯💪
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #3 on: November 11, 2025, 11:25:44 am »
I may seem rude - please don't take it personally

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11916
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #4 on: November 11, 2025, 11:33:57 am »
The sha1 wont make much of a diff, since there hadn't been many changes in trunk.

Unfortunately its not much to go on.

It looks like (but could be something else too) some enumerator was not freed (or not removed from the map).
But I can't find any potential enumerator use for this in the source.



Which version of FPC?

Because both, 3.2.2 and 3.3.1 have issues in the peephole optimizer (at -O1 and up), so unless you compiled with -O- (no opts)...

3.2.3 seems to be ok.

n7800

  • Hero Member
  • *****
  • Posts: 583
  • Lazarus IDE contributor
    • GitLab profile
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #5 on: November 11, 2025, 11:46:00 am »
I also have the CPU-View package from Alexander Bagel installed.

I don't know if this could have any effect, because as far as I understand, it is closely integrated.

This project? Yeah, it looks pretty serious.

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 305
  • I use FPC [main] 💪🐯💪
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #6 on: November 11, 2025, 11:59:28 am »
Unfortunately its not much to go on.
  :-\ Sigh…

Quote from: Martin_fr
Which version of FPC?
FPC [main] of course!  :D

Quote from: Martin_fr
Because both, 3.2.2 and 3.3.1 have issues in the peephole optimizer (at -O1 and up), so unless you compiled with -O- (no opts)...

-O- -O2 -gw3 -gl -gh -gt -Co -Cr -Ci -Sa

Different from the default, I experimented with this



This project?
Yes, it is )
I may seem rude - please don't take it personally

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11916
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus caught AV, seems to be related to FpDebug
« Reply #7 on: November 11, 2025, 12:20:47 pm »
Quote from: Martin_fr
Which version of FPC?
FPC [main] of course!  :D

Just in the last few weeks I run into 2 (maybe 1 and a half, if they are related) peephole issues in 3.3.1. => I.e. FPC generates incorrect asm code. And the effects of that, can of course manifest deferred, in some semi unrelated code.

https://gitlab.com/freepascal.org/fpc/source/-/issues/41422
https://gitlab.com/freepascal.org/fpc/source/-/issues/41466

 

TinyPortal © 2005-2018