Forum > Operating Systems
OpenBSD error: Illegal character in format string.
Bart:
I keep pestering you:
Please open a ticket about this in the bugtracker.
Not all devels read the forum.
Issues on the bugtracker won't be forgotten.
Attach the backtrace there also.
You can add a link to this forum thread in the description.
If you dare: can you try to reproduce the issue with Lazarus trunk as well?
Bart
marcov:
That line seems to refer to fileagetostr which uses datetimetostr. That uses system locale (and afaik that is not related to IDE language which is gettext?)
It's a pity that there are no tracebacks into the FPC rtl.
crsc:
--- Quote from: Bart on January 01, 2016, 11:23:02 pm ---
I keep pestering you:
Please open a ticket about this in the bugtracker.
Not all devels read the forum.
Issues on the bugtracker won't be forgotten.
Attach the backtrace there also.
You can add a link to this forum thread in the description.
--- End quote ---
Hello Bart,
thank you. I'll open a ticket in the bugtracker soon. First I have to check, how to do it correctly. ;-)
--- Quote from: Bart on January 01, 2016, 11:23:02 pm ---
If you dare: can you try to reproduce the issue with Lazarus trunk as well?
--- End quote ---
The same with Lazarus trunk:
--- Quote ---
(gdb) run
Starting program: /home/cr/mystuff/workspace/src/lazarus/lazarus/lazarus
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/cr/.lazarus"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-openbsd-gtk2 New=x86_64-openbsd-gtk2 FPC=True LCL=False
TLazSourceFileManager.LoadLFM Creating designer for hidden component of /home/cr/mystuff/workspace/src/lazarus/projects/project1/unit1.pas
TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner
Hint: (lazarus) [TMainIDE.DoRunProject] INIT
Hint: [TFPCTargetConfigCache.NeedsUpdate] TargetOS="" TargetCPU="" Options="-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg" compiler file changed "/usr/local/bin/fpc" FileAge=1451348368 StoredAge=0
Hint: [TFPCTargetConfigCache.NeedsUpdate] /usr/local/bin/fpc TargetOS= TargetCPU= CompilerOptions=-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg ExtraOptions=-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg PATH=/home/cr/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:.:/home/cr/mystuff/workspace/bin
Hint: (lazarus) [RunTool] /usr/local/bin/fpc "-iWTOTP" "-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg" "-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg"
[New process 18413]
Hint: (lazarus) [RunTool] /usr/local/bin/fpc "-va" "-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg" "-Fr/home/cr/mystuff/workspace/src/lazarus/lazarus/components/codetools/fpc.errore.msg" "compilertest.pas"
Hint: [TFPCTargetConfigCache.Update] has changed
Hint: (lazarus) State file of LCL 1.7 is newer than state file of Project: project1
TApplication.HandleException Illegal character in format string
Stack trace:
$00000000008A232A
$00000000008A2BC7
$00000000008A1EF7
$0000000000E028B6 line 3352 of ../packager/packagesystem.pas
$0000000000F69DDD line 1257 of buildmanager.pas
$00000000008F7C79 line 6542 of main.pp
$00000000008F9368 line 6845 of main.pp
$00000000008F95A9 line 6872 of main.pp
$00000000008E9F6C line 3233 of main.pp
$0000000000D9320A line 1568 of ../designer/designer.pp
$0000000000D96AC9 line 2735 of ../designer/designer.pp
$0000000000D9799B line 2965 of ../designer/designer.pp
$0000000000AA0B22 line 2038 of include/control.inc
$0000000000A93C74 line 5383 of include/wincontrol.inc
$0000000000B66892 line 112 of lclmessageglue.pas
$0000000000B21965 line 3628 of gtk2proc.inc
$0000000000B1F385 line 1962 of gtk2proc.inc
Program received signal SIGSEGV, Segmentation fault.
0x0000000000914384 in BEGINCODETOOL (this=0x228fa4650, ADESIGNER=0x23bdb9b10,
ACTIVESRCEDIT=0x0, ACTIVEUNITINFO=0x0, FLAGS=1) at mainbase.pas:754
754 if (not (ctfSourceEditorNotNeeded in Flags)) and (SourceEditorManager.SourceEditorCount=0)
Current language: auto; currently minimal
(gdb) backtrace
#0 0x0000000000914384 in BEGINCODETOOL (this=0x228fa4650,
ADESIGNER=0x23bdb9b10, ACTIVESRCEDIT=0x0, ACTIVEUNITINFO=0x0, FLAGS=1)
at mainbase.pas:754
#1 0x000000000090073f in ONPROPHOOKPERSISTENTDELETING (this=0x228fa4650,
APERSISTENT=0x23bdbbbd0) at main.pp:8728
#2 0x0000000000cceb15 in PERSISTENTDELETING (this=0x211370860,
APERSISTENT=0x23bdbbbd0) at propedits.pp:5892
#3 0x0000000000d976a3 in DODELETEPERSISTENT (this=0x23bdb9b10,
APERSISTENT=0x23bdbbbd0, FREEIT=false) at ../designer/designer.pp:2924
#4 0x0000000000d97e5b in NOTIFICATION (this=0x23bdb9b10,
ACOMPONENT=0x23bdbbbd0, OPERATION=OPREMOVE) at ../designer/designer.pp:3076
#5 0x00000000008b8b3c in NOTIFICATION (this=0x23bdbbbd0,
ACOMPONENT=0x23bdbbbd0, OPERATION=OPREMOVE) at customform.inc:283
#6 0x00000000009425ce in CLASSES$_$TCOMPONENT_$__$$_DESTROY ()
#7 0x0000000228fa4650 in ?? ()
#8 0x00007f7ffffed2d0 in ?? ()
#9 0x00000002da6aa5e0 in ?? ()
#10 0x0000000000b2eb70 in GTK2PROC_$$_GTKMAP$PGTKWIDGET$POINTER$$BOOLEAN32 ()
#11 0x0000000000aa8035 in DESTROY (this=0x23bdbbbd0, vmt=0x0)
at control.inc:4857
#12 0x0000000000a965a2 in DESTROY (this=0x23bdbbbd0, vmt=0x0)
at wincontrol.inc:6569
#13 0x0000000000aaa881 in DESTROY (this=0x23bdbbbd0, vmt=0x0)
at customcontrol.inc:54
#14 0x00000000008b7691 in DESTROY (this=0x23bdbbbd0, vmt=0x0)
at scrollingwincontrol.inc:338
#15 0x00000000008b8881 in DESTROY (this=0x23bdbbbd0, vmt=0x1)
at customform.inc:207
#16 0x000000000087a310 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#17 0x0000000228fa4650 in ?? ()
#18 0x0000000000d7d21e in DESTROYJITCOMPONENT (this=0x27eb1c940, INDEX=0)
at ../designer/jitforms.pp:765
#19 0x0000000000d7cf4b in DESTROY (this=0x27eb1c940, vmt=0x1)
at ../designer/jitforms.pp:716
#20 0x000000000087a310 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#21 0x0000000228fa4650 in ?? ()
#22 0x00000000008abab7 in SYSUTILS_$$_FREEANDNIL$formal ()
#23 0x00000002df6d4a50 in ?? ()
#24 0x0000000000d9df99 in DESTROY (this=0x29e1f5ba0, vmt=0x1)
at customformeditor.pp:483
#25 0x000000000087a310 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#26 0x0000000214276040 in ?? ()
#27 0x0000000000d9cd12 in FREEFORMEDITOR () at formeditor.pp:79
#28 0x00000000008e1d44 in DESTROY (this=0x228fa4650, vmt=0x1) at main.pp:1646
#29 0x000000000087a310 in SYSTEM$_$TOBJECT_$__$$_FREE ()
#30 0x00000002de0eb710 in ?? ()
#31 0x00000000008c70d7 in DOBEFOREFINALIZATION (this=0x24cd472b0)
at application.inc:1081
#32 0x00000000008b47f6 in BEFOREFINALIZATION () at forms.pp:1850
#33 0x000000000087e9b9 in SYSTEM_$$_INTERNALEXIT ()
#34 0x00007f7ffffecae0 in ?? ()
#35 0x00000002d059ce58 in pthread_getspecific (key=Variable "key" is not available.
)
at /usr/src/lib/librthread/rthread_tls.c:132
#36 0x00000002e1300778 in ?? ()
---Type <return> to continue, or q <return> to quit---
#37 0x0000000000000000 in ?? ()
--- End quote ---
--- Quote from: marcov on January 01, 2016, 11:45:23 pm ---
That line seems to refer to fileagetostr which uses datetimetostr. That uses system locale (and afaik that is not related to IDE language which is gettext?)
It's a pity that there are no tracebacks into the FPC rtl.
--- End quote ---
Hello marcov,
the default system locale on OpenBSD is:
--- Quote ---
$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
--- End quote ---
Not sure it this is okay for Lazarus. The installed gettext version is ``gettext-0.19.6'' and ``gettext-tools-0.19.6''.
marcov:
Write a small program that imports "clocale" and sysutils and write out all fields of the formatsettings variable.
crsc:
Hello marcov,
thank you for your help. I've written a small console fpc program with following output:
--- Quote ---
CurrencyFormat = "1"
NegCurrFormat = "5"
Ord(ThousandSeparator) = "0"
Ord(DecimalSeparator) = "0"
CurrencyDecimals = "127"
DateSeparator = ":"
TimeSeparator = ":"
ListSeparator = ","
CurrencyString = ""
ShortDateFormat = "hh:nn:ss"
LongDateFormat = "hh:nn:ss"
TimeAMString = "PM"
TimePMString = "Sunday"
ShortTimeFormat = "hh:nn:ss ampm"
LongTimeFormat = "AM"
ShortMonthNames[1] = "Feb"
LongMonthNames[1] = "February"
ShortDayNames[1] = "Mon"
LongDayNames[1] = "Monday"
TwoDigitYearCenturyWindow = "50"
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page