Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-16 Thread Jonas Maebe
On 16 Mar 2013, at 02:35, Paul Ishenin wrote: 16.03.13, 1:54, Martin wrote: revision 23848 As reported recently: make clean make.exe allLINKSMART=1 CREATESMART=1 DEBUG=1 OPTIMIZE=0 OPT=-gl -O2 No, it does not work. It definitely should work (there's even a special extcycle

[fpc-devel] problem with TStringLists and delete in glibc

2013-03-16 Thread Stefan Fischer
Hi, I've get the following error and I don't know how to solve it: *** glibc detected *** ./rfm: free(): invalid pointer: 0xb6d0a01c *** code-pieces: ## type T_IniFileDesc = record inifilbuf : TStringList; caching, blockchange,

Re: [fpc-devel] arm-embedded apps crash in exception handler initialization because heapmanager is not initialized

2013-03-16 Thread Florian Klämpfl
Am 03.03.2013 11:04, schrieb Michael Ring: In r23853 I committed a patch which creates automatically a heap on the embedded targets if heapmgr is used. Further, sysutils depends now on heapmgr. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-16 Thread Paul Ishenin
16.03.13, 17:55, Jonas Maebe пишет: It definitely should work (there's even a special extcycle target in the compiler Makefile to test it), and has worked mostly in the past. It's not always checked and occasionally does get broken though. I tried to run a testsuite with compiler and packages

Re: [fpc-devel] problem with TStringLists and delete in glibc

2013-03-16 Thread Marco van de Voort
In our previous episode, Stefan Fischer said: var IniFileDescriptor:T_IniFileDesc; name_idx:longint; ... with IniFileDescriptor do begin inifilbuf:=TStringList.create; for name_idx:= 1 to 220 inifilbuf.add('something'); name_idx:=5; inifilbuf.insert (name_idx-1,

[fpc-devel] Strange behaviour with Synapse

2013-03-16 Thread Geoffray Levasseur-Brandin
Hi everybody, I'm mailing you as I have a very strange behaviour of a program I'm making using FPC 2.6.2 and Lazarus from trunk (updated this morning). As far as I know it's either a compiler bug or a Synapse bug. Let me explain... The project is a GUI for the Spack package manager used by a

Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-16 Thread Martin
On 16/03/2013 09:55, Jonas Maebe wrote: On 16 Mar 2013, at 02:35, Paul Ishenin wrote: 16.03.13, 1:54, Martin wrote: revision 23848 As reported recently: make clean make.exe allLINKSMART=1 CREATESMART=1 DEBUG=1 OPTIMIZE=0 OPT=-gl -O2 No, it does not work. It definitely should work

Re: [fpc-devel] problem with TStringLists and delete in glibc

2013-03-16 Thread Mattias Gaertner
On Sat, 16 Mar 2013 15:37:14 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: [...] Maybe tstringlist doesn't store dupes by default[...] Are you kidding? Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Fwd: [fpc-devel] problem with TStringLists and delete in glibc

2013-03-16 Thread Stefan Fischer
Hi, I have 220 strings in the list. Also the code works in a small sample program. I put the code in a unit an used the function in a bigger project with multiple units. In that environment, the code fails in glibc. The content of the string list was the same in both programs. In the small

Re: [fpc-devel] Strange behaviour with Synapse

2013-03-16 Thread Ludo Brands
On 03/16/2013 03:48 PM, Geoffray Levasseur-Brandin wrote: I'm mailing you as I have a very strange behaviour of a program I'm making using FPC 2.6.2 and Lazarus from trunk (updated this morning). As far as I know it's either a compiler bug or a Synapse bug. That is always a dangerous

Re: [fpc-devel] Strange behaviour with Synapse

2013-03-16 Thread Geoffray Levasseur-Brandin
Le samedi 16 mars 2013 18:25:20 Ludo Brands a écrit : There is quite more needed to get the code running. I can't get it compiled on my kubuntu 12.04. It complains about duplicate resources. Hum maybe you have Synapse installed in your Lazarus as I'm briging it with the application (and it's

Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-16 Thread Flávio Etrusco
The particular crash in question is by cstringpattern: AnsiString; len:=length(cstringpattern); recordtokenbuf.write(cstringpattern[1],len); with a len of zero, writing 0 bytes from an address that is out of range. Could be solved by using {$PUSH} {$R-}

Re: [fpc-devel] Strange behaviour with Synapse

2013-03-16 Thread Geoffray Levasseur-Brandin
Le samedi 16 mars 2013 19:29:15 Geoffray Levasseur-Brandin a écrit : There is quite more needed to get the code running. I can't get it compiled on my kubuntu 12.04. It complains about duplicate resources. Hum maybe you have Synapse installed in your Lazarus as I'm briging it with the

Re: [fpc-devel] Strange behaviour with Synapse

2013-03-16 Thread Ludo Brands
On 03/16/2013 07:29 PM, Geoffray Levasseur-Brandin wrote: Hum maybe you have Synapse installed in your Lazarus as I'm briging it with the application (and it's appearing in project manage). Synapse is not in my default path. So that is not the problem. It complained about a duplicate resource

Re: Fwd: [fpc-devel] problem with TStringLists and delete in glibc

2013-03-16 Thread waldo kitty
On 3/16/2013 11:36, Stefan Fischer wrote: Hi, I have 220 strings in the list. Also the code works in a small sample program. I put the code in a unit an used the function in a bigger project with multiple units. In that environment, the code fails in glibc. The content of the string list was the

Fwd: [fpc-devel] problem with TStringLists and delete in glibc

2013-03-16 Thread Stefan Fischer
If I'm not using this piece of code, I have no error. I'm pretty sure that this piece of code generates the error. Mit freundlichen Gruessen / with best regards, Anfang der weitergeleiteten E‑Mail: Von: waldo kitty wkitt...@windstream.net An: fpc-devel@lists.freepascal.org Betreff: Re: