<html><body>
<p>Hi,<br>
<br>
Yes, I have the next puma.config:<br>
<br>
// ------ 8< -------------<br>
<br>
--skip-bodies-non-prj<br>
-D __puma<br>
-D __STDC__<br>
-D _GNU_SOURCE<br>
-D __CHAR_BIT__=8<br>
-D __DBL_DENORM_MIN__=4.9406564584124654e-324<br>
-D __DBL_DIG__=15<br>
-D __DBL_EPSILON__=2.2204460492503131e-16<br>
-D __DBL_HAS_INFINITY__<br>
-D __DBL_HAS_QUIET_NAN__<br>
-D __DBL_MANT_DIG__=53<br>
-D __DBL_MAX_10_EXP__=308<br>
-D __DBL_MAX_EXP__=1024<br>
-D __DBL_MAX__=1.7976931348623157e+308<br>
-D __DBL_MIN_10_EXP__=(-307)<br>
-D __DBL_MIN_EXP__=(-1021)<br>
-D __DBL_MIN__=2.2250738585072014e-308<br>
-D __DECIMAL_DIG__=21<br>
-D __DEPRECATED<br>
-D __ELF__<br>
-D __EXCEPTIONS<br>
-D __FINITE_MATH_ONLY__=0<br>
-D __FLT_DENORM_MIN__=1.40129846e-45F<br>
-D __FLT_DIG__=6<br>
-D __FLT_EPSILON__=1.19209290e-7F<br>
-D __FLT_EVAL_METHOD__=2<br>
-D __FLT_HAS_INFINITY__<br>
-D __FLT_HAS_QUIET_NAN__<br>
-D __FLT_MANT_DIG__=24<br>
-D __FLT_MAX_10_EXP__=38<br>
-D __FLT_MAX_EXP__=128<br>
-D __FLT_MAX__=3.40282347e+38F<br>
-D __FLT_MIN_10_EXP__=(-37)<br>
-D __FLT_MIN_EXP__=(-125)<br>
-D __FLT_MIN__=1.17549435e-38F<br>
-D __FLT_RADIX__=2<br>
-D __GNUC_MINOR__=0<br>
-D __GNUC_PATCHLEVEL__<br>
-D __GNUC__=4<br>
--gnu<br>
-D __GNUG__=4<br>
-D __GXX_ABI_VERSION=1002<br>
-D __GXX_WEAK__<br>
-D __INTMAX_MAX__=9223372036854775807LL<br>
-D __INTMAX_TYPE__=long long int<br>
-D __INT_MAX__=2147483647<br>
-D __LDBL_DENORM_MIN__=3.64519953188247460253e-4951L<br>
-D __LDBL_DIG__=18<br>
-D __LDBL_EPSILON__=1.08420217248550443401e-19L<br>
-D __LDBL_HAS_INFINITY__<br>
-D __LDBL_HAS_QUIET_NAN__<br>
-D __LDBL_MANT_DIG__=64<br>
-D __LDBL_MAX_10_EXP__=4932<br>
-D __LDBL_MAX_EXP__=16384<br>
-D __LDBL_MAX__=1.18973149535723176502e+4932L<br>
-D __LDBL_MIN_10_EXP__=(-4931)<br>
-D __LDBL_MIN_EXP__=(-16381)<br>
-D __LDBL_MIN__=3.36210314311209350626e-4932L<br>
-D __LONG_LONG_MAX__=9223372036854775807LL<br>
-D __LONG_MAX__=2147483647L<br>
-D __NO_INLINE__<br>
-D __PTRDIFF_TYPE__=int<br>
--ptrdiff-type "int"<br>
-D __REGISTER_PREFIX__<br>
-D __SCHAR_MAX__=127<br>
-D __SHRT_MAX__=32767<br>
-D __SIZE_TYPE__=unsigned int<br>
--size-type "unsigned int"<br>
-D __STDC_HOSTED__<br>
-D __UINTMAX_TYPE__=long long unsigned int<br>
-D __USER_LABEL_PREFIX__<br>
-D __VERSION__="4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)"<br>
-D __WCHAR_MAX__=2147483647<br>
-D __WCHAR_TYPE__=long int<br>
-D __WINT_TYPE__=unsigned int<br>
-D __cplusplus<br>
-D __gnu_linux__<br>
-D __i386<br>
-D __i386__<br>
-D __linux<br>
-D __linux__<br>
-D __tune_i586__<br>
-D __tune_pentium__<br>
-D __unix<br>
-D __unix__<br>
-D i386<br>
-D linux<br>
-D unix<br>
-I /usr/include<br>
-I /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/include<br>
-I /usr/local/include<br>
-I /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/backward<br>
-I /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1/i586-mandriva-linux-gnu<br>
-I /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/../../../../include/c++/4.0.1<br>
<br>
// ------ 8< -------------<br>
<br>
This file has been generated from the ac-1.0pre1. I downloaded the 'ac-1.0pre1.tar.gz' and <br>
'ac-bin-linux-1.0pre1.tar.gz' file and modified the 'Puma/Makefile' to point to the correct ac++:<br>
<br>
AC ?= $(ROOT)/../ac++<br>
<br>
Then, in the puma.config is generated in 'Puma/gen-release/puma.cfg' and with 'make install'<br>
this file is copied to /etc/puma.config.<br>
<br>
What's your testing platform ? Mine is Mandriva 2006. In my last update to AspectC++ 0.9.1 and<br>
Mandrake 10.1 I had similar problems with the new compilers and libs.<br>
<br>
Regards,<br>
Jorge<br>
<br>
<br>
<tt>Olaf Spinczyk <Olaf.Spinczyk@informatik.uni-erlangen.de> escribió el 15/12/2005 15:34:46:<br>
<br>
> Hi,<br>
> <br>
> what about the parser configuration file (e.g. puma.config)? Do you have <br>
> one? How did you generate it?<br>
> <br>
> We tested to parse the code with 1.0pre1 and with the upcomimg 1.0pre2 <br>
> and there was no crash in both tests. We believe that the problem has to <br>
> do with your execution environment.<br>
> <br>
> Olaf<br>
> <br>
> jorgefm@cirsa.com wrote:<br>
> > Hello,<br>
> > <br>
> > I've recently updated my system to Mandriva 2006, and then I've update <br>
> > my AspectC++<br>
> > from 0.9.1 to 1.0pre1. Mainly, I only use the Puma library to parse some <br>
> > headers files to<br>
> > generate a custom CORBA idl files. With the old version it was working <br>
> > ok, but now I<br>
> > get segmentation faults parsing the files.<br>
> > <br>
> > I've tested the ccparser from the Puma/examples/ccparser directory with <br>
> > the same<br>
> > result.<br>
> > <br>
> > My test header file to parse is:<br>
> > <br>
> > // == IXaviText.h ==== 8< ==================<br>
> > <br>
> > #ifndef __ITEST_H_<br>
> > #define __ITEST_H_<br>
> > <br>
> > typedef struct<br>
> > {<br>
> > char test1;<br>
> > char test2;<br>
> > char test3;<br>
> > char test4;<br>
> > char test5;<br>
> > } TCrbi18nRepresentation;<br>
> > <br>
> > class IXaviTest<br>
> > {<br>
> > public:<br>
> > virtual ~IXaviTest(){};<br>
> > virtual bool GetBasicRepresentation( const char * country, const char * <br>
> > lang, TCrbi18nRepresentation * repr ) = 0;<br>
> > virtual bool SetBasicRepresentation( const char * country, const char * <br>
> > lang, TCrbi18nRepresentation repr ) = 0;<br>
> > };<br>
> > <br>
> > #endif<br>
> > <br>
> > // ==== 8< ==================<br>
> > <br>
> > Then I set my environment to generate core dumps when a segmentation <br>
> > fault occurs:<br>
> > <br>
> > <br>
> > $ ulimit -c unlimited<br>
> > <br>
> > $ ./ccparser IXaviTest.h<br>
> > Starting parse process...<br>
> > Segmentation fault (core dumped)<br>
> > <br>
> > $ gdb ./ccparser core.25204<br>
> > GNU gdb 6.3-5mdk (Mandriva Linux release 2006.0)<br>
> > Copyright 2004 Free Software Foundation, Inc.<br>
> > GDB is free software, covered by the GNU General Public License, and you are<br>
> > welcome to change it and/or distribute copies of it under certain <br>
> > conditions.<br>
> > Type "show copying" to see the conditions.<br>
> > There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
> > This GDB was configured as "i586-mandriva-linux-gnu"...Using host <br>
> > libthread_db library "/lib/tls/libthread_db.so.1".<br>
> > <br>
> > Reading symbols from shared object read from target memory...done.<br>
> > Loaded system supplied DSO at 0xffffe000<br>
> > Core was generated by `./ccparser IXaviTest.h'.<br>
> > Program terminated with signal 11, Segmentation fault.<br>
> > <br>
> > warning: svr4_current_sos: Can't read pathname for load map: Error de <br>
> > entrada/salida<br>
> > <br>
> > Reading symbols from /usr/lib/libstdc++.so.6...done.<br>
> > Loaded symbols for /usr/lib/libstdc++.so.6<br>
> > Reading symbols from /lib/tls/libm.so.6...done.<br>
> > Loaded symbols for /lib/tls/libm.so.6<br>
> > Reading symbols from /lib/libgcc_s.so.1...done.<br>
> > Loaded symbols for /lib/libgcc_s.so.1<br>
> > Reading symbols from /lib/tls/libc.so.6...done.<br>
> > Loaded symbols for /lib/tls/libc.so.6<br>
> > Reading symbols from /lib/ld-linux.so.2...done.<br>
> > Loaded symbols for /lib/ld-linux.so.2<br>
> > #0 0x0806b8e7 in Puma::CT_List::CT_List$base ()<br>
> > (gdb) bt<br>
> > #0 0x0806b8e7 in Puma::CT_List::CT_List$base ()<br>
> > #1 0x080b58e5 in Puma::CBuilder::simple_name ()<br>
> > #2 0x080d7fcb in Puma::CSyntax::identifier ()<br>
> > #3 0x080a733e in Puma::CCSyntax::member_declarator ()<br>
> > #4 0x080d72e7 in Puma::CSyntax::member_declarator_list ()<br>
> > #5 0x080a2918 in Puma::CCSyntax::member_decl1 ()<br>
> > #6 0x080aa90f in <br>
> > Puma::TJP__ZN4Puma8CCSyntax11member_declEv_1::__action_func ()<br>
> > #7 0x080a2822 in Puma::CCSyntax::member_decl ()<br>
> > #8 0x080e011e in Puma::Syntax::catch_error<Puma::CSyntax> ()<br>
> > #9 0x080e036e in <br>
> > Puma::TJP__ZN4Puma7CSyntax11member_specEv_0::__action_func ()<br>
> > #10 0x080dd402 in Puma::CSyntax::member_spec ()<br>
> > #11 0x080a26d0 in Puma::CCSyntax::rule_class_spec ()<br>
> > #12 0x080a6edb in Puma::CCSyntax::class_spec ()<br>
> > #13 0x080d4466 in Puma::CSyntax::rule_type_spec ()<br>
> > #14 0x080da90b in Puma::CSyntax::type_spec ()<br>
> > #15 0x080da3a8 in Puma::CSyntax::rule_decl_spec ()<br>
> > #16 0x080da55b in Puma::CSyntax::decl_spec ()<br>
> > #17 0x080d4793 in Puma::CSyntax::decl_spec_seq1 ()<br>
> > #18 0x080dfa46 in <br>
> > Puma::TJP__ZN4Puma7CSyntax13decl_spec_seqEv_0::__action_func ()<br>
> > #19 0x080da692 in Puma::CSyntax::decl_spec_seq ()<br>
> > #20 0x080da2c6 in Puma::CSyntax::simple_decl ()<br>
> > #21 0x0809e8f1 in Puma::CCSyntax::simple_decl ()<br>
> > #22 0x080a5437 in Puma::CCSyntax::block_decl ()<br>
> > #23 0x080a52d0 in Puma::CCSyntax::decl ()<br>
> > #24 0x080e011e in Puma::Syntax::catch_error<Puma::CSyntax> ()<br>
> > #25 0x080dd349 in Puma::CSyntax::decl_seq ()<br>
> > #26 0x080dfadc in <br>
> > Puma::TJP__ZN4Puma7CSyntax10trans_unitEv_0::__action_func ()<br>
> > #27 0x080d8281 in Puma::CSyntax::trans_unit ()<br>
> > #28 0x080f1cff in Puma::Syntax::run ()<br>
> > #29 0x080f5acd in Puma::Parser::parse ()<br>
> > #30 0x0804e389 in Puma::CCParser::parse (this=0xbfab4ee4, u=@0x818d9e8, <br>
> > p=@0xbfac6348, m=0)<br>
> > at <br>
> > /home/jorge/cvs-sgd/develop/Electronica/Soft/Genesis/contrib/ac-1.<br>
> 0pre1/Puma/gen-release/step1/inc/Puma/CCParser.h:51<br>
> > #31 0x0804b855 in run (argc=2, argv=0xbfac6584) at ccparser.cc:112<br>
> > #32 0x0804bd12 in main (argc=2, argv=0xbfac6584) at ccparser.cc:150<br>
> > (gdb)<br>
> > <br>
> > <br>
> > Any help is welcome!<br>
> > <br>
> > Best regards,<br>
> > Jorge<br>
> > <br>
> > <br>
> > ------------------------------------------------------------------------<br>
> > <br>
> > _______________________________________________<br>
> > aspectc-user mailing list<br>
> > aspectc-user@aspectc.org<br>
> > <a href="http://www.aspectc.org/mailman/listinfo/aspectc-user">http://www.aspectc.org/mailman/listinfo/aspectc-user</a><br>
> <br>
</tt></body></html>