You can subscribe to this list here.
| 2004 |
Jan
(6) |
Feb
(5) |
Mar
(1) |
Apr
(5) |
May
(4) |
Jun
|
Jul
(3) |
Aug
(23) |
Sep
|
Oct
(7) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
|
Feb
|
Mar
(4) |
Apr
(20) |
May
(3) |
Jun
(5) |
Jul
(7) |
Aug
(2) |
Sep
(11) |
Oct
(28) |
Nov
(7) |
Dec
(12) |
| 2006 |
Jan
(23) |
Feb
(9) |
Mar
(11) |
Apr
(48) |
May
(39) |
Jun
(1) |
Jul
(8) |
Aug
(5) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2007 |
Jan
(3) |
Feb
(9) |
Mar
|
Apr
(9) |
May
(10) |
Jun
(2) |
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(4) |
Mar
(2) |
Apr
(11) |
May
(20) |
Jun
|
Jul
(10) |
Aug
(1) |
Sep
(9) |
Oct
(2) |
Nov
(6) |
Dec
(22) |
| 2009 |
Jan
(10) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(1) |
Nov
|
Dec
(1) |
| 2010 |
Jan
(4) |
Feb
(1) |
Mar
(60) |
Apr
(2) |
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2011 |
Jan
(3) |
Feb
|
Mar
|
Apr
(2) |
May
(11) |
Jun
(4) |
Jul
|
Aug
(4) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
(6) |
Aug
(3) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
| 2015 |
Jan
(6) |
Feb
(11) |
Mar
(10) |
Apr
(3) |
May
(1) |
Jun
|
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
1
|
2
(2) |
3
(1) |
4
|
5
|
6
|
7
|
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
|
22
|
23
|
24
|
25
|
26
(4) |
27
(2) |
28
|
|
29
|
30
|
|
|
|
|
|
|
From: SourceForge.net <no...@so...> - 2007-04-27 14:43:04
|
Bugs item #1708378, was opened at 2007-04-26 23:28 Message generated for change (Comment added) made by helly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Fixed Priority: 7 Private: No Submitted By: Jakob Hirsch (jayball) Assigned to: Marcus Börger (helly) Summary: segfault in actions.cc Initial Comment: Happens in 0.10.8, 0.11.3 and trunk. Example file is attached (auto-generated by sa-compile of SpamAssassin 3.2.0-rc3) $ gdb /tmp/re2c GNU gdb Red Hat Linux (6.5-15.fc6rh) ... This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -b -o scanner1.c scanner1.re Starting program: /tmp/re2c -i -b -o scanner1.c scanner1.re Program received signal SIGSEGV, Segmentation fault. 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 290 CharPtn *x = s.rep[c], *a = x->nxt; (gdb) p c $1 = 2807696 (gdb) p r->lb $2 = 2807696 (gdb) bt full #0 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 x = (re2c::CharPtn *) 0x833c540 a = (re2c::CharPtn *) 0xbfbc8388 c = 2807696 r = (re2c::Range *) 0x833c598 #1 0x08062ee0 in re2c::CatOp::split (this=0x833c5e8, s=@0xbfbc8388) at actions.cc:445 No locals. #2 0x08062ec1 in re2c::CatOp::split (this=0x833c668, s=@0xbfbc8388) at actions.cc:444 No locals. ... #170 0x08062d47 in re2c::AltOp::split (this=0x83befc8, s=@0xbfbc8388) at actions.cc:412 No locals. #171 0x08063808 in re2c::genCode (o=@0xbfbc86f8, ind=@0x8077240, re=0x83befc8, specMap=0x0, condName=@0xbfbc843c, isLastCond=false) at actions.cc:1012 cs = {fix = 0x0, freeHead = 0x83bf664, freeTail = 0x83bfffc, rep = 0x83beff8, ptn = 0x83bf400} j = 3009063 rep = (Char *) 0x806d00b ins = (re2c::Ins *) 0x806d00b eoi = (re2c::Ins *) 0xbfbc8443 dfa = (re2c::DFA *) 0xba5f0b #172 0x08060922 in re2c::parse (i=@0xbfbc8788, o=@0xbfbc86f8, h=0x0) at parser.y:422 __PRETTY_FUNCTION__ = "void re2c::parse(re2c::Scanner&, std::ostream&, std::ostream*)" #173 0x0805bab4 in main (argc=6, argv=0xbfbc88f4) at main.cc:374 null_source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308448}, <No data fields>} null_dev = {<> = {<No data fields>}, null_buf = 0x83085e8} null_scanner = {<re2c::line_number> = {_vptr.line_number = 0x806e0a8}, in = @0xbfbc84a0, out = @0xbfbc86f8, bot = 0x8368aa0 "\n\t\"auslaenderkriminalitaet\"", ' ' <repeats 12 times>, "{RET(\"__ZMIRASSISMUSBD_10\");}\n\t\"auslaendischer 'gesundheitstouristen'\"", ' ' <repeats 12 times>, "{RET(\"__DOS_BODY_SUN __ZMIRASSISMUSBD_9\");}\n\t\"ausweitung unseres marketings und"..., tok = 0x836a505 "\n}\n", ptr = 0x836a4f3 " return NULL; }\n*/\n}\n", cur = 0x836a505 "\n}\n", pos = 0x836a503 "*/\n}\n", lim = 0x836a508 "", top = 0x836aaa1 "", eof = 0x836a509 "", ctx = 0x0, tchar = 0, tline = 215, cline = 215, iscfg = 0} c = -1 sourceFileName = 0xbfbca675 "scanner1.re" outputFileName = 0xbfbca66a "scanner1.c" headerFileName = 0x0 source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308050}, <No data fields>} Tried compiling without -O2, no change. $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) $ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) ---------------------------------------------------------------------- >Comment By: Marcus Börger (helly) Date: 2007-04-27 16:43 Message: Logged In: YES user_id=271023 Originator: NO You should go with 0.12.0 which i will release around 1st may, testing it on different platforms meanwhile. Trunk version comes with a major non ready feature addition. That feature required a change in the generated code. For that no feedback is available yet. But you are of course always welcome to try trunk. ---------------------------------------------------------------------- Comment By: Jakob Hirsch (jayball) Date: 2007-04-27 12:37 Message: Logged In: YES user_id=1779537 Originator: YES Ok, I updated trunk to revision 710, and now it runs fine, even if compiled with gcc/g++ 4.1.1. Thanks for the quick fix. Would you recommend using trunk or tags/RELEASE_0_12_0? ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-27 01:19 Message: Logged In: YES user_id=271023 Originator: NO Actually i highly suggest you use cvs version of either 0.12.0 (unreleased) or even HEAD. It appears the generated code is wrong using the older re2c versions. I discoverd this while fixing the crash. So in 0.12.0 and HEAD both issues are resolved. ---------------------------------------------------------------------- Comment By: Jakob Hirsch (jayball) Date: 2007-04-27 01:10 Message: Logged In: YES user_id=1779537 Originator: YES Ok, I've tried gcc/g++ 3.4.6 (compat-gcc-34-c++ from FC6) and it works. The code re2c generates is the same (I think, at least :), so that's ok. Thanks for the hint. ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-27 00:15 Message: Logged In: YES user_id=271023 Originator: NO For the moment you could try an older gcc. Version 4.0 appears to work for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-27 10:37:37
|
Bugs item #1708378, was opened at 2007-04-26 23:28 Message generated for change (Comment added) made by jayball You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Fixed Priority: 7 Private: No Submitted By: Jakob Hirsch (jayball) Assigned to: Marcus Börger (helly) Summary: segfault in actions.cc Initial Comment: Happens in 0.10.8, 0.11.3 and trunk. Example file is attached (auto-generated by sa-compile of SpamAssassin 3.2.0-rc3) $ gdb /tmp/re2c GNU gdb Red Hat Linux (6.5-15.fc6rh) ... This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -b -o scanner1.c scanner1.re Starting program: /tmp/re2c -i -b -o scanner1.c scanner1.re Program received signal SIGSEGV, Segmentation fault. 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 290 CharPtn *x = s.rep[c], *a = x->nxt; (gdb) p c $1 = 2807696 (gdb) p r->lb $2 = 2807696 (gdb) bt full #0 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 x = (re2c::CharPtn *) 0x833c540 a = (re2c::CharPtn *) 0xbfbc8388 c = 2807696 r = (re2c::Range *) 0x833c598 #1 0x08062ee0 in re2c::CatOp::split (this=0x833c5e8, s=@0xbfbc8388) at actions.cc:445 No locals. #2 0x08062ec1 in re2c::CatOp::split (this=0x833c668, s=@0xbfbc8388) at actions.cc:444 No locals. ... #170 0x08062d47 in re2c::AltOp::split (this=0x83befc8, s=@0xbfbc8388) at actions.cc:412 No locals. #171 0x08063808 in re2c::genCode (o=@0xbfbc86f8, ind=@0x8077240, re=0x83befc8, specMap=0x0, condName=@0xbfbc843c, isLastCond=false) at actions.cc:1012 cs = {fix = 0x0, freeHead = 0x83bf664, freeTail = 0x83bfffc, rep = 0x83beff8, ptn = 0x83bf400} j = 3009063 rep = (Char *) 0x806d00b ins = (re2c::Ins *) 0x806d00b eoi = (re2c::Ins *) 0xbfbc8443 dfa = (re2c::DFA *) 0xba5f0b #172 0x08060922 in re2c::parse (i=@0xbfbc8788, o=@0xbfbc86f8, h=0x0) at parser.y:422 __PRETTY_FUNCTION__ = "void re2c::parse(re2c::Scanner&, std::ostream&, std::ostream*)" #173 0x0805bab4 in main (argc=6, argv=0xbfbc88f4) at main.cc:374 null_source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308448}, <No data fields>} null_dev = {<> = {<No data fields>}, null_buf = 0x83085e8} null_scanner = {<re2c::line_number> = {_vptr.line_number = 0x806e0a8}, in = @0xbfbc84a0, out = @0xbfbc86f8, bot = 0x8368aa0 "\n\t\"auslaenderkriminalitaet\"", ' ' <repeats 12 times>, "{RET(\"__ZMIRASSISMUSBD_10\");}\n\t\"auslaendischer 'gesundheitstouristen'\"", ' ' <repeats 12 times>, "{RET(\"__DOS_BODY_SUN __ZMIRASSISMUSBD_9\");}\n\t\"ausweitung unseres marketings und"..., tok = 0x836a505 "\n}\n", ptr = 0x836a4f3 " return NULL; }\n*/\n}\n", cur = 0x836a505 "\n}\n", pos = 0x836a503 "*/\n}\n", lim = 0x836a508 "", top = 0x836aaa1 "", eof = 0x836a509 "", ctx = 0x0, tchar = 0, tline = 215, cline = 215, iscfg = 0} c = -1 sourceFileName = 0xbfbca675 "scanner1.re" outputFileName = 0xbfbca66a "scanner1.c" headerFileName = 0x0 source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308050}, <No data fields>} Tried compiling without -O2, no change. $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) $ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) ---------------------------------------------------------------------- >Comment By: Jakob Hirsch (jayball) Date: 2007-04-27 12:37 Message: Logged In: YES user_id=1779537 Originator: YES Ok, I updated trunk to revision 710, and now it runs fine, even if compiled with gcc/g++ 4.1.1. Thanks for the quick fix. Would you recommend using trunk or tags/RELEASE_0_12_0? ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-27 01:19 Message: Logged In: YES user_id=271023 Originator: NO Actually i highly suggest you use cvs version of either 0.12.0 (unreleased) or even HEAD. It appears the generated code is wrong using the older re2c versions. I discoverd this while fixing the crash. So in 0.12.0 and HEAD both issues are resolved. ---------------------------------------------------------------------- Comment By: Jakob Hirsch (jayball) Date: 2007-04-27 01:10 Message: Logged In: YES user_id=1779537 Originator: YES Ok, I've tried gcc/g++ 3.4.6 (compat-gcc-34-c++ from FC6) and it works. The code re2c generates is the same (I think, at least :), so that's ok. Thanks for the hint. ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-27 00:15 Message: Logged In: YES user_id=271023 Originator: NO For the moment you could try an older gcc. Version 4.0 appears to work for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-26 23:19:39
|
Bugs item #1708378, was opened at 2007-04-26 23:28 Message generated for change (Comment added) made by helly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 7 Private: No Submitted By: jayball (jayball) Assigned to: Marcus Börger (helly) Summary: segfault in actions.cc Initial Comment: Happens in 0.10.8, 0.11.3 and trunk. Example file is attached (auto-generated by sa-compile of SpamAssassin 3.2.0-rc3) $ gdb /tmp/re2c GNU gdb Red Hat Linux (6.5-15.fc6rh) ... This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -b -o scanner1.c scanner1.re Starting program: /tmp/re2c -i -b -o scanner1.c scanner1.re Program received signal SIGSEGV, Segmentation fault. 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 290 CharPtn *x = s.rep[c], *a = x->nxt; (gdb) p c $1 = 2807696 (gdb) p r->lb $2 = 2807696 (gdb) bt full #0 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 x = (re2c::CharPtn *) 0x833c540 a = (re2c::CharPtn *) 0xbfbc8388 c = 2807696 r = (re2c::Range *) 0x833c598 #1 0x08062ee0 in re2c::CatOp::split (this=0x833c5e8, s=@0xbfbc8388) at actions.cc:445 No locals. #2 0x08062ec1 in re2c::CatOp::split (this=0x833c668, s=@0xbfbc8388) at actions.cc:444 No locals. ... #170 0x08062d47 in re2c::AltOp::split (this=0x83befc8, s=@0xbfbc8388) at actions.cc:412 No locals. #171 0x08063808 in re2c::genCode (o=@0xbfbc86f8, ind=@0x8077240, re=0x83befc8, specMap=0x0, condName=@0xbfbc843c, isLastCond=false) at actions.cc:1012 cs = {fix = 0x0, freeHead = 0x83bf664, freeTail = 0x83bfffc, rep = 0x83beff8, ptn = 0x83bf400} j = 3009063 rep = (Char *) 0x806d00b ins = (re2c::Ins *) 0x806d00b eoi = (re2c::Ins *) 0xbfbc8443 dfa = (re2c::DFA *) 0xba5f0b #172 0x08060922 in re2c::parse (i=@0xbfbc8788, o=@0xbfbc86f8, h=0x0) at parser.y:422 __PRETTY_FUNCTION__ = "void re2c::parse(re2c::Scanner&, std::ostream&, std::ostream*)" #173 0x0805bab4 in main (argc=6, argv=0xbfbc88f4) at main.cc:374 null_source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308448}, <No data fields>} null_dev = {<> = {<No data fields>}, null_buf = 0x83085e8} null_scanner = {<re2c::line_number> = {_vptr.line_number = 0x806e0a8}, in = @0xbfbc84a0, out = @0xbfbc86f8, bot = 0x8368aa0 "\n\t\"auslaenderkriminalitaet\"", ' ' <repeats 12 times>, "{RET(\"__ZMIRASSISMUSBD_10\");}\n\t\"auslaendischer 'gesundheitstouristen'\"", ' ' <repeats 12 times>, "{RET(\"__DOS_BODY_SUN __ZMIRASSISMUSBD_9\");}\n\t\"ausweitung unseres marketings und"..., tok = 0x836a505 "\n}\n", ptr = 0x836a4f3 " return NULL; }\n*/\n}\n", cur = 0x836a505 "\n}\n", pos = 0x836a503 "*/\n}\n", lim = 0x836a508 "", top = 0x836aaa1 "", eof = 0x836a509 "", ctx = 0x0, tchar = 0, tline = 215, cline = 215, iscfg = 0} c = -1 sourceFileName = 0xbfbca675 "scanner1.re" outputFileName = 0xbfbca66a "scanner1.c" headerFileName = 0x0 source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308050}, <No data fields>} Tried compiling without -O2, no change. $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) $ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) ---------------------------------------------------------------------- >Comment By: Marcus Börger (helly) Date: 2007-04-27 01:19 Message: Logged In: YES user_id=271023 Originator: NO Actually i highly suggest you use cvs version of either 0.12.0 (unreleased) or even HEAD. It appears the generated code is wrong using the older re2c versions. I discoverd this while fixing the crash. So in 0.12.0 and HEAD both issues are resolved. ---------------------------------------------------------------------- Comment By: jayball (jayball) Date: 2007-04-27 01:10 Message: Logged In: YES user_id=1779537 Originator: YES Ok, I've tried gcc/g++ 3.4.6 (compat-gcc-34-c++ from FC6) and it works. The code re2c generates is the same (I think, at least :), so that's ok. Thanks for the hint. ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-27 00:15 Message: Logged In: YES user_id=271023 Originator: NO For the moment you could try an older gcc. Version 4.0 appears to work for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-26 23:10:20
|
Bugs item #1708378, was opened at 2007-04-26 23:28 Message generated for change (Comment added) made by jayball You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 7 Private: No Submitted By: jayball (jayball) Assigned to: Marcus Börger (helly) Summary: segfault in actions.cc Initial Comment: Happens in 0.10.8, 0.11.3 and trunk. Example file is attached (auto-generated by sa-compile of SpamAssassin 3.2.0-rc3) $ gdb /tmp/re2c GNU gdb Red Hat Linux (6.5-15.fc6rh) ... This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -b -o scanner1.c scanner1.re Starting program: /tmp/re2c -i -b -o scanner1.c scanner1.re Program received signal SIGSEGV, Segmentation fault. 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 290 CharPtn *x = s.rep[c], *a = x->nxt; (gdb) p c $1 = 2807696 (gdb) p r->lb $2 = 2807696 (gdb) bt full #0 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 x = (re2c::CharPtn *) 0x833c540 a = (re2c::CharPtn *) 0xbfbc8388 c = 2807696 r = (re2c::Range *) 0x833c598 #1 0x08062ee0 in re2c::CatOp::split (this=0x833c5e8, s=@0xbfbc8388) at actions.cc:445 No locals. #2 0x08062ec1 in re2c::CatOp::split (this=0x833c668, s=@0xbfbc8388) at actions.cc:444 No locals. ... #170 0x08062d47 in re2c::AltOp::split (this=0x83befc8, s=@0xbfbc8388) at actions.cc:412 No locals. #171 0x08063808 in re2c::genCode (o=@0xbfbc86f8, ind=@0x8077240, re=0x83befc8, specMap=0x0, condName=@0xbfbc843c, isLastCond=false) at actions.cc:1012 cs = {fix = 0x0, freeHead = 0x83bf664, freeTail = 0x83bfffc, rep = 0x83beff8, ptn = 0x83bf400} j = 3009063 rep = (Char *) 0x806d00b ins = (re2c::Ins *) 0x806d00b eoi = (re2c::Ins *) 0xbfbc8443 dfa = (re2c::DFA *) 0xba5f0b #172 0x08060922 in re2c::parse (i=@0xbfbc8788, o=@0xbfbc86f8, h=0x0) at parser.y:422 __PRETTY_FUNCTION__ = "void re2c::parse(re2c::Scanner&, std::ostream&, std::ostream*)" #173 0x0805bab4 in main (argc=6, argv=0xbfbc88f4) at main.cc:374 null_source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308448}, <No data fields>} null_dev = {<> = {<No data fields>}, null_buf = 0x83085e8} null_scanner = {<re2c::line_number> = {_vptr.line_number = 0x806e0a8}, in = @0xbfbc84a0, out = @0xbfbc86f8, bot = 0x8368aa0 "\n\t\"auslaenderkriminalitaet\"", ' ' <repeats 12 times>, "{RET(\"__ZMIRASSISMUSBD_10\");}\n\t\"auslaendischer 'gesundheitstouristen'\"", ' ' <repeats 12 times>, "{RET(\"__DOS_BODY_SUN __ZMIRASSISMUSBD_9\");}\n\t\"ausweitung unseres marketings und"..., tok = 0x836a505 "\n}\n", ptr = 0x836a4f3 " return NULL; }\n*/\n}\n", cur = 0x836a505 "\n}\n", pos = 0x836a503 "*/\n}\n", lim = 0x836a508 "", top = 0x836aaa1 "", eof = 0x836a509 "", ctx = 0x0, tchar = 0, tline = 215, cline = 215, iscfg = 0} c = -1 sourceFileName = 0xbfbca675 "scanner1.re" outputFileName = 0xbfbca66a "scanner1.c" headerFileName = 0x0 source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308050}, <No data fields>} Tried compiling without -O2, no change. $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) $ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) ---------------------------------------------------------------------- >Comment By: jayball (jayball) Date: 2007-04-27 01:10 Message: Logged In: YES user_id=1779537 Originator: YES Ok, I've tried gcc/g++ 3.4.6 (compat-gcc-34-c++ from FC6) and it works. The code re2c generates is the same (I think, at least :), so that's ok. Thanks for the hint. ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-27 00:15 Message: Logged In: YES user_id=271023 Originator: NO For the moment you could try an older gcc. Version 4.0 appears to work for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-26 22:15:47
|
Bugs item #1708378, was opened at 2007-04-26 23:28 Message generated for change (Comment added) made by helly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None >Priority: 7 Private: No Submitted By: jayball (jayball) >Assigned to: Marcus Börger (helly) Summary: segfault in actions.cc Initial Comment: Happens in 0.10.8, 0.11.3 and trunk. Example file is attached (auto-generated by sa-compile of SpamAssassin 3.2.0-rc3) $ gdb /tmp/re2c GNU gdb Red Hat Linux (6.5-15.fc6rh) ... This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -b -o scanner1.c scanner1.re Starting program: /tmp/re2c -i -b -o scanner1.c scanner1.re Program received signal SIGSEGV, Segmentation fault. 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 290 CharPtn *x = s.rep[c], *a = x->nxt; (gdb) p c $1 = 2807696 (gdb) p r->lb $2 = 2807696 (gdb) bt full #0 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 x = (re2c::CharPtn *) 0x833c540 a = (re2c::CharPtn *) 0xbfbc8388 c = 2807696 r = (re2c::Range *) 0x833c598 #1 0x08062ee0 in re2c::CatOp::split (this=0x833c5e8, s=@0xbfbc8388) at actions.cc:445 No locals. #2 0x08062ec1 in re2c::CatOp::split (this=0x833c668, s=@0xbfbc8388) at actions.cc:444 No locals. ... #170 0x08062d47 in re2c::AltOp::split (this=0x83befc8, s=@0xbfbc8388) at actions.cc:412 No locals. #171 0x08063808 in re2c::genCode (o=@0xbfbc86f8, ind=@0x8077240, re=0x83befc8, specMap=0x0, condName=@0xbfbc843c, isLastCond=false) at actions.cc:1012 cs = {fix = 0x0, freeHead = 0x83bf664, freeTail = 0x83bfffc, rep = 0x83beff8, ptn = 0x83bf400} j = 3009063 rep = (Char *) 0x806d00b ins = (re2c::Ins *) 0x806d00b eoi = (re2c::Ins *) 0xbfbc8443 dfa = (re2c::DFA *) 0xba5f0b #172 0x08060922 in re2c::parse (i=@0xbfbc8788, o=@0xbfbc86f8, h=0x0) at parser.y:422 __PRETTY_FUNCTION__ = "void re2c::parse(re2c::Scanner&, std::ostream&, std::ostream*)" #173 0x0805bab4 in main (argc=6, argv=0xbfbc88f4) at main.cc:374 null_source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308448}, <No data fields>} null_dev = {<> = {<No data fields>}, null_buf = 0x83085e8} null_scanner = {<re2c::line_number> = {_vptr.line_number = 0x806e0a8}, in = @0xbfbc84a0, out = @0xbfbc86f8, bot = 0x8368aa0 "\n\t\"auslaenderkriminalitaet\"", ' ' <repeats 12 times>, "{RET(\"__ZMIRASSISMUSBD_10\");}\n\t\"auslaendischer 'gesundheitstouristen'\"", ' ' <repeats 12 times>, "{RET(\"__DOS_BODY_SUN __ZMIRASSISMUSBD_9\");}\n\t\"ausweitung unseres marketings und"..., tok = 0x836a505 "\n}\n", ptr = 0x836a4f3 " return NULL; }\n*/\n}\n", cur = 0x836a505 "\n}\n", pos = 0x836a503 "*/\n}\n", lim = 0x836a508 "", top = 0x836aaa1 "", eof = 0x836a509 "", ctx = 0x0, tchar = 0, tline = 215, cline = 215, iscfg = 0} c = -1 sourceFileName = 0xbfbca675 "scanner1.re" outputFileName = 0xbfbca66a "scanner1.c" headerFileName = 0x0 source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308050}, <No data fields>} Tried compiling without -O2, no change. $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) $ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) ---------------------------------------------------------------------- >Comment By: Marcus Börger (helly) Date: 2007-04-27 00:15 Message: Logged In: YES user_id=271023 Originator: NO For the moment you could try an older gcc. Version 4.0 appears to work for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-26 21:28:38
|
Bugs item #1708378, was opened at 2007-04-26 23:28 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: jayball (jayball) Assigned to: Nobody/Anonymous (nobody) Summary: segfault in actions.cc Initial Comment: Happens in 0.10.8, 0.11.3 and trunk. Example file is attached (auto-generated by sa-compile of SpamAssassin 3.2.0-rc3) $ gdb /tmp/re2c GNU gdb Red Hat Linux (6.5-15.fc6rh) ... This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -i -b -o scanner1.c scanner1.re Starting program: /tmp/re2c -i -b -o scanner1.c scanner1.re Program received signal SIGSEGV, Segmentation fault. 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 290 CharPtn *x = s.rep[c], *a = x->nxt; (gdb) p c $1 = 2807696 (gdb) p r->lb $2 = 2807696 (gdb) bt full #0 0x08062a8d in re2c::MatchOp::split (this=0x833c5c0, s=@0xbfbc8388) at actions.cc:290 x = (re2c::CharPtn *) 0x833c540 a = (re2c::CharPtn *) 0xbfbc8388 c = 2807696 r = (re2c::Range *) 0x833c598 #1 0x08062ee0 in re2c::CatOp::split (this=0x833c5e8, s=@0xbfbc8388) at actions.cc:445 No locals. #2 0x08062ec1 in re2c::CatOp::split (this=0x833c668, s=@0xbfbc8388) at actions.cc:444 No locals. ... #170 0x08062d47 in re2c::AltOp::split (this=0x83befc8, s=@0xbfbc8388) at actions.cc:412 No locals. #171 0x08063808 in re2c::genCode (o=@0xbfbc86f8, ind=@0x8077240, re=0x83befc8, specMap=0x0, condName=@0xbfbc843c, isLastCond=false) at actions.cc:1012 cs = {fix = 0x0, freeHead = 0x83bf664, freeTail = 0x83bfffc, rep = 0x83beff8, ptn = 0x83bf400} j = 3009063 rep = (Char *) 0x806d00b ins = (re2c::Ins *) 0x806d00b eoi = (re2c::Ins *) 0xbfbc8443 dfa = (re2c::DFA *) 0xba5f0b #172 0x08060922 in re2c::parse (i=@0xbfbc8788, o=@0xbfbc86f8, h=0x0) at parser.y:422 __PRETTY_FUNCTION__ = "void re2c::parse(re2c::Scanner&, std::ostream&, std::ostream*)" #173 0x0805bab4 in main (argc=6, argv=0xbfbc88f4) at main.cc:374 null_source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308448}, <No data fields>} null_dev = {<> = {<No data fields>}, null_buf = 0x83085e8} null_scanner = {<re2c::line_number> = {_vptr.line_number = 0x806e0a8}, in = @0xbfbc84a0, out = @0xbfbc86f8, bot = 0x8368aa0 "\n\t\"auslaenderkriminalitaet\"", ' ' <repeats 12 times>, "{RET(\"__ZMIRASSISMUSBD_10\");}\n\t\"auslaendischer 'gesundheitstouristen'\"", ' ' <repeats 12 times>, "{RET(\"__DOS_BODY_SUN __ZMIRASSISMUSBD_9\");}\n\t\"ausweitung unseres marketings und"..., tok = 0x836a505 "\n}\n", ptr = 0x836a4f3 " return NULL; }\n*/\n}\n", cur = 0x836a505 "\n}\n", pos = 0x836a503 "*/\n}\n", lim = 0x836a508 "", top = 0x836aaa1 "", eof = 0x836a509 "", ctx = 0x0, tchar = 0, tline = 215, cline = 215, iscfg = 0} c = -1 sourceFileName = 0xbfbca675 "scanner1.re" outputFileName = 0xbfbca66a "scanner1.c" headerFileName = 0x0 source = {<re2c::basic_fstream_lc<char,std::basic_istream<char, std::char_traits<char> >,_S_in,std::char_traits<char> >> = {<> = {<No data fields>}, <re2c::line_number> = {_vptr.line_number = 0x806cb60}, mybuf = 0x8308050}, <No data fields>} Tried compiling without -O2, no change. $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) $ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.1 20070105 (Red Hat 4.1.1-51) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1708378&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-03 07:08:33
|
Bugs item #1692718, was opened at 2007-04-02 10:25 Message generated for change (Comment added) made by freddy77 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Frediano Ziglio (freddy77) Assigned to: Marcus Börger (helly) Summary: re2c not working Initial Comment: I tried both 0.11.3 and 0.10.8. I tried with example from man page. This is the result of my small test: $ cat foo.c char *scan(char *p) { /*!re2c re2c:define:YYCTYPE = "unsigned char"; re2c:define:YYCURSOR = p; re2c:yyfill:enable = 0; re2c:yych:conversion = 1; re2c:indent:top = 1; [0-9]+ {return p;} [\000-\377] {return (char*)0;} */ } $ hexdump -C foo.c 00000000 63 68 61 72 20 2a 73 63 61 6e 28 63 68 61 72 20 |char *scan(char | 00000010 2a 70 29 0a 7b 0a 2f 2a 21 72 65 32 63 0a 09 72 |*p).{./*!re2c..r| 00000020 65 32 63 3a 64 65 66 69 6e 65 3a 59 59 43 54 59 |e2c:define:YYCTY| 00000030 50 45 20 20 3d 20 22 75 6e 73 69 67 6e 65 64 20 |PE = "unsigned | 00000040 63 68 61 72 22 3b 0a 09 72 65 32 63 3a 64 65 66 |char";..re2c:def| 00000050 69 6e 65 3a 59 59 43 55 52 53 4f 52 20 3d 20 70 |ine:YYCURSOR = p| 00000060 3b 0a 09 72 65 32 63 3a 79 79 66 69 6c 6c 3a 65 |;..re2c:yyfill:e| 00000070 6e 61 62 6c 65 20 20 20 3d 20 30 3b 0a 09 72 65 |nable = 0;..re| 00000080 32 63 3a 79 79 63 68 3a 63 6f 6e 76 65 72 73 69 |2c:yych:conversi| 00000090 6f 6e 20 3d 20 31 3b 0a 09 72 65 32 63 3a 69 6e |on = 1;..re2c:in| 000000a0 64 65 6e 74 3a 74 6f 70 20 20 20 20 20 20 3d 20 |dent:top = | 000000b0 31 3b 0a 09 5b 30 2d 39 5d 2b 20 20 20 20 20 20 |1;..[0-9]+ | 000000c0 20 20 20 20 7b 72 65 74 75 72 6e 20 70 3b 7d 0a | {return p;}.| 000000d0 09 5b 5c 30 30 30 2d 5c 33 37 37 5d 20 20 20 20 |.[\000-\377] | 000000e0 20 7b 72 65 74 75 72 6e 20 28 63 68 61 72 2a 29 | {return (char*)| 000000f0 30 3b 7d 0a 2a 2f 0a 7d 0a 0a |0;}.*/.}..| 000000fa $ ./re2c -is foo.c re2c: error: line 4, column 40: unrecognized configuration name or illegal string value freddy77 ---------------------------------------------------------------------- >Comment By: Frediano Ziglio (freddy77) Date: 2007-04-03 09:08 Message: Logged In: YES user_id=75766 Originator: YES I tried again today and got no problem. Perhaps was related to a problem of my cache at work. Sorry to waste your time. freddy77 ---------------------------------------------------------------------- Comment By: Marcus Börger (helly) Date: 2007-04-03 00:08 Message: Logged In: YES user_id=271023 Originator: NO Cannot reproduce under either linux or windows. Try re2c -v to ensure you are using the correct re2c version. The features you are using require at least 0.11.2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-02 22:08:31
|
Bugs item #1692718, was opened at 2007-04-02 10:25 Message generated for change (Comment added) made by helly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Frediano Ziglio (freddy77) >Assigned to: Marcus Börger (helly) Summary: re2c not working Initial Comment: I tried both 0.11.3 and 0.10.8. I tried with example from man page. This is the result of my small test: $ cat foo.c char *scan(char *p) { /*!re2c re2c:define:YYCTYPE = "unsigned char"; re2c:define:YYCURSOR = p; re2c:yyfill:enable = 0; re2c:yych:conversion = 1; re2c:indent:top = 1; [0-9]+ {return p;} [\000-\377] {return (char*)0;} */ } $ hexdump -C foo.c 00000000 63 68 61 72 20 2a 73 63 61 6e 28 63 68 61 72 20 |char *scan(char | 00000010 2a 70 29 0a 7b 0a 2f 2a 21 72 65 32 63 0a 09 72 |*p).{./*!re2c..r| 00000020 65 32 63 3a 64 65 66 69 6e 65 3a 59 59 43 54 59 |e2c:define:YYCTY| 00000030 50 45 20 20 3d 20 22 75 6e 73 69 67 6e 65 64 20 |PE = "unsigned | 00000040 63 68 61 72 22 3b 0a 09 72 65 32 63 3a 64 65 66 |char";..re2c:def| 00000050 69 6e 65 3a 59 59 43 55 52 53 4f 52 20 3d 20 70 |ine:YYCURSOR = p| 00000060 3b 0a 09 72 65 32 63 3a 79 79 66 69 6c 6c 3a 65 |;..re2c:yyfill:e| 00000070 6e 61 62 6c 65 20 20 20 3d 20 30 3b 0a 09 72 65 |nable = 0;..re| 00000080 32 63 3a 79 79 63 68 3a 63 6f 6e 76 65 72 73 69 |2c:yych:conversi| 00000090 6f 6e 20 3d 20 31 3b 0a 09 72 65 32 63 3a 69 6e |on = 1;..re2c:in| 000000a0 64 65 6e 74 3a 74 6f 70 20 20 20 20 20 20 3d 20 |dent:top = | 000000b0 31 3b 0a 09 5b 30 2d 39 5d 2b 20 20 20 20 20 20 |1;..[0-9]+ | 000000c0 20 20 20 20 7b 72 65 74 75 72 6e 20 70 3b 7d 0a | {return p;}.| 000000d0 09 5b 5c 30 30 30 2d 5c 33 37 37 5d 20 20 20 20 |.[\000-\377] | 000000e0 20 7b 72 65 74 75 72 6e 20 28 63 68 61 72 2a 29 | {return (char*)| 000000f0 30 3b 7d 0a 2a 2f 0a 7d 0a 0a |0;}.*/.}..| 000000fa $ ./re2c -is foo.c re2c: error: line 4, column 40: unrecognized configuration name or illegal string value freddy77 ---------------------------------------------------------------------- >Comment By: Marcus Börger (helly) Date: 2007-04-03 00:08 Message: Logged In: YES user_id=271023 Originator: NO Cannot reproduce under either linux or windows. Try re2c -v to ensure you are using the correct re2c version. The features you are using require at least 0.11.2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864 |
|
From: SourceForge.net <no...@so...> - 2007-04-02 08:25:10
|
Bugs item #1692718, was opened at 2007-04-02 10:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Frediano Ziglio (freddy77) Assigned to: Nobody/Anonymous (nobody) Summary: re2c not working Initial Comment: I tried both 0.11.3 and 0.10.8. I tried with example from man page. This is the result of my small test: $ cat foo.c char *scan(char *p) { /*!re2c re2c:define:YYCTYPE = "unsigned char"; re2c:define:YYCURSOR = p; re2c:yyfill:enable = 0; re2c:yych:conversion = 1; re2c:indent:top = 1; [0-9]+ {return p;} [\000-\377] {return (char*)0;} */ } $ hexdump -C foo.c 00000000 63 68 61 72 20 2a 73 63 61 6e 28 63 68 61 72 20 |char *scan(char | 00000010 2a 70 29 0a 7b 0a 2f 2a 21 72 65 32 63 0a 09 72 |*p).{./*!re2c..r| 00000020 65 32 63 3a 64 65 66 69 6e 65 3a 59 59 43 54 59 |e2c:define:YYCTY| 00000030 50 45 20 20 3d 20 22 75 6e 73 69 67 6e 65 64 20 |PE = "unsigned | 00000040 63 68 61 72 22 3b 0a 09 72 65 32 63 3a 64 65 66 |char";..re2c:def| 00000050 69 6e 65 3a 59 59 43 55 52 53 4f 52 20 3d 20 70 |ine:YYCURSOR = p| 00000060 3b 0a 09 72 65 32 63 3a 79 79 66 69 6c 6c 3a 65 |;..re2c:yyfill:e| 00000070 6e 61 62 6c 65 20 20 20 3d 20 30 3b 0a 09 72 65 |nable = 0;..re| 00000080 32 63 3a 79 79 63 68 3a 63 6f 6e 76 65 72 73 69 |2c:yych:conversi| 00000090 6f 6e 20 3d 20 31 3b 0a 09 72 65 32 63 3a 69 6e |on = 1;..re2c:in| 000000a0 64 65 6e 74 3a 74 6f 70 20 20 20 20 20 20 3d 20 |dent:top = | 000000b0 31 3b 0a 09 5b 30 2d 39 5d 2b 20 20 20 20 20 20 |1;..[0-9]+ | 000000c0 20 20 20 20 7b 72 65 74 75 72 6e 20 70 3b 7d 0a | {return p;}.| 000000d0 09 5b 5c 30 30 30 2d 5c 33 37 37 5d 20 20 20 20 |.[\000-\377] | 000000e0 20 7b 72 65 74 75 72 6e 20 28 63 68 61 72 2a 29 | {return (char*)| 000000f0 30 3b 7d 0a 2a 2f 0a 7d 0a 0a |0;}.*/.}..| 000000fa $ ./re2c -is foo.c re2c: error: line 4, column 40: unrecognized configuration name or illegal string value freddy77 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864 |