From: Perry S. <pe...@gm...> - 2012-10-18 23:25:15
|
Hi Guys, I'm not sure where to file a bug report or if anyone cares. With flex-2.5.37 and .36, the code compiles to create an infinite loop causing a core dump. The fix is to change lib/realloc.c to be this: #include <config.h> #ifdef malloc #undef malloc #endif #ifdef realloc #undef realloc #endif #include <stdlib.h> ... (with the middle 9 lines new and two other lines used as reference points). On .35, the link fails with rpl_realloc undefined. The work around for .35 is to edit config.h to remove the #define malloc and #define realloc. With .37, the make check fails on 43 of 46 tests. The reason is that 38 fail to link because they can't find rpl_realloc and the other 5 fail because rpl_malloc and rpl_realloc were not prototyped. In my case, I'm running 6.1 TL07 SP03 with gcc 4.5.2. Hope this helps someone somewhere... Perry Smith |
From: Will E. <wes...@gm...> - 2012-10-18 23:33:27
|
Thanks for your bug report. I'll work it into the flex tree. On Thursday, 18 October 2012, 6:25 pm -0500, Perry Smith <pe...@gm...> wrote: > Hi Guys, > > I'm not sure where to file a bug report or if anyone cares. > > With flex-2.5.37 and .36, the code compiles to create an infinite > loop causing a core dump. > > The fix is to change lib/realloc.c to be this: > > #include <config.h> > > #ifdef malloc > #undef malloc > #endif > > #ifdef realloc > #undef realloc > #endif > > #include <stdlib.h> > ... > > (with the middle 9 lines new and two other lines used as > reference points). > > On .35, the link fails with rpl_realloc undefined. The work > around for .35 is to edit config.h to remove the #define malloc > and #define realloc. > > With .37, the make check fails on 43 of 46 tests. The reason is > that 38 fail to link because they can't find rpl_realloc and the > other 5 fail because rpl_malloc and rpl_realloc were not > prototyped. > > In my case, I'm running 6.1 TL07 SP03 with gcc 4.5.2. > > Hope this helps someone somewhere... > Perry Smith > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Flex-help mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-help -- Will Estes (wl...@us...) Flex Project Maintainer http://flex.sourceforge.net/ |