#1 2017-11-04 22:20:12

hnb
Member
Registered: 2015-06-15
Posts: 291

SIGSEGV for TSynLocker and Pointers

Hi,

current implementation of TSynLocker is nonfunctional/buggy for pointers. Simple example will raise SIGSEGV

uses
  SynCommons;

var
  Locker: TSynLocker;
begin
  Locker.Init;
  Locker.LockedPointer[0] := Pointer(1);
  Locker.Done;
end. 

bug is very simple to fix:

https://github.com/synopse/mORMot/pull/49

I wonder why my pull request is still not accepted...

Last edited by hnb (2017-11-07 08:32:20)


best regards,
Maciej Izak

Offline

#2 2017-11-07 08:33:42

hnb
Member
Registered: 2015-06-15
Posts: 291

Re: SIGSEGV for TSynLocker and Pointers

I forgot to add Init/Done in example but SIGSEGV of course still occurs.


best regards,
Maciej Izak

Offline

Board footer

Powered by FluxBB