Processing [14/127]: coroutines-01.flx
sh: line 1: 371 Segmentation fault
STUPID clang. Code works fine with -O1.
I reduced it to no optimisation and now it fails.
--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org
---
On 04/11/2011, at 11:17 PM, john skaller wrote:
> Another day another bug .. :)
>
> generated code giving error:
> //-
> //EMIT USER BODY CODE
>
>void _rev(_poly_5493t_29757* plt)
>void _rev(_poly_5493t_29764* plt)
>{ // in place reversal
>
On 04/11/2011, at 11:17 PM, john skaller wrote:
> Another day another bug .. :)
This particular problem with polymorphic insertions will occur whenever two
distinct Felix types map to distinct C typedef names for the same type.
It won't occur with, for example:
type A = "int"
type B = "int"
Another day another bug .. :)
~/felix>flx --test=build/release -c --static lt
./lt.cpp: In function ‘void _rev(void**)’:
./lt.cpp:28: error: redefinition of ‘void _rev(void**)’
compilation terminated due to -Wfatal-errors.
list.flx
// in place list reversal: unsafe!
proc rev[T,PLT=&list[T]]
On 02/11/2011, at 6:21 PM, john skaller wrote:
>
> On 01/11/2011, at 4:27 PM, john skaller wrote:
>
>>
>> On 01/11/2011, at 1:30 PM, john skaller wrote:
>>>
>>> Grrr ..
>>>
>>> ~/felix>tools/flx_ls . '.*\.flx'
>>> Segmentation fault
>>
>>
>> Sigh .. looks like a bug in RE2 corrupting memo
On 01/11/2011, at 4:27 PM, john skaller wrote:
>
> On 01/11/2011, at 1:30 PM, john skaller wrote:
>>
>> Grrr ..
>>
>> ~/felix>tools/flx_ls . '.*\.flx'
>> Segmentation fault
>
>
> Sigh .. looks like a bug in RE2 corrupting memory.. all these bugs are
> tiresome ..
> the idea of Felix is to
1. Download the latest RE2 tarball
2. cd src/re2/re2
3. rm -r * (be careful here :) )
4. extract the tarball in that directory
5. recompile felix
if everything worked:
6. cd src/re2/re2
7. git add .
6. git gui (make sure everything looks good)
7. commit re2 and push
8. cd ../../ && git gui (add
Erick .. what's the procedure for upgrading RE2 in the repository?
--
john skaller
skal...@users.sourceforge.net
--
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
On 01/11/2011, at 1:30 PM, john skaller wrote:
>
> Grrr ..
>
> ~/felix>tools/flx_ls . '.*\.flx'
> Segmentation fault
Sigh .. looks like a bug in RE2 corrupting memory.. all these bugs are tiresome
..
the idea of Felix is to get rid of these bugs ..:]
src/re2/re2/re2/re2.cc:509: Invalid RE2
This works:
~/felix>tools/flx_cp . '(.*).flx' 'xxx\1.xxx' --test
but this:
~/felix>tools/flx_cp .. '(.*).flx' 'xxx\1.xxx' --test
doesn't:
~/felix>gdb tools/flx_cp
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB i
10 matches
Mail list logo