#1 2023-10-15 19:59:46

rdevine
Member
Registered: 2014-02-20
Posts: 43

FPC Problem

I recently rebuilt a Linux daemon that was last built back in March 2023. I usually just pull the latest code from Github and with the latest I get a SIGSEGV. Using console and the debugger this occurs in TRestOrmServerDB.CreateMissingTables at the first line writing to the log - fDB.Log.Add.Log(sllDB, 'CreateMissingTables on %', [fDB], self); If I comment the logging then it runs fine.

I've moved back and forward through the commit history and it appears to have been introduced somewhere between 5bbf1ca70b862429dda76bf07f582209e6b5a433 (18/04) and 4ac661b0ce839456b17088d573c3c30d93b5efab (21/04).

Let me know if you want me to narrow it down a bit further.

I'm using the correct SQLite static file and FPC 3.2.3 on Fedora.

Cheers, Bob

Last edited by rdevine (2023-10-15 20:00:37)

Offline

#2 2023-10-16 19:10:24

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,237
Website

Re: FPC Problem

Are you sure it is still the case with the latest version?

Try to debug a little.
Where occurs the the GPF?
What does fDB contain? What does fDB.Log contain? What does fDB.Log.Add contain?

Offline

#3 2023-10-16 23:11:07

rdevine
Member
Registered: 2014-02-20
Posts: 43

Re: FPC Problem

The problem is still present with the latest code. I've debugged further and it first appears in commit:

e778e5e8bcf79a210f7a45c15542cb97861e2ede  20/04/2023 @ 15:28

It occurs in TSynLog.LogInternalFmt at the line:

fWriter.Add(TextFmt, TextArgs, twOnSameLine,
  [woDontStoreDefault, woDontStoreVoid, woFullExpand]);

At the time it occurs TextFmt contains 'CreateMissingTables on %'.

The only thing I can see that looks odd is a chinese-type character in VWideChar in TextArgs.

I'll try and find time tomorrow to dig a bit deeper.

Cheers, Bob

Offline

Board footer

Powered by FluxBB