[aspectc-user] Problems building SVN version of Puma
vimml at selgrad.org
vimml at selgrad.org
Tue Mar 24 02:03:48 CET 2009
Hi Matthias,
thanks, I was able to build the pre3-version with your help. Sadly I had
to rebuild to get a debug-version of the tools, since the situation
described earlier didn't change.
$ which ac++
/home/kai/aspectc/ac-woven-1.0pre3/AspectC++/bin/linux-release/ac++
Ok, this is the one I just built.
Puma $ make
...
Weaving PUMA for TARGET=linux-release
Weaver = ac++ -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/CCExprResolveCC.ah -a /home/kai/aspectc/AspectC++-Proje ct/Puma/gen-release/step1/aspects/CCExprResolveH.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveCC.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/CExprResolveH.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/s tep1/aspects/WinIfExists.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/WinImportHandler.ah -a /home/kai/aspectc/Asp ectC++-Project/Puma/gen-release/step1/aspects/WinMacros.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/WinAsm.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/WinDeclSpecs.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/ste p1/aspects/WinMemberExplSpec.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/WinTypeKeywords.ah -a /home/kai/aspectc/ AspectC++-Project/Puma/gen-release/step1/aspects/WinFriend.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/ExtAC.ah - a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/ExtACBuilderH.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/ step1/aspects/ExtACBuilderCC.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/ExtACSyntaxH.ah -a /home/kai/aspectc/Asp ectC++-Project/Puma/gen-release/step1/aspects/ExtACSyntaxCC.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/ExtACTree .ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/ExtACKeywords.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-rel ease/step1/aspects/ExtGnu.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/ExtGnuCSemDeclSpecs.ah -a /home/kai/aspectc /AspectC++-Project/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects /PragmaOnce.ah -a /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/aspects/TraceSyntax.ah -a /home/kai/aspectc/AspectC++-Project/Pum a/gen-release/step1/aspects/CMatchSyntax.ah -DNDEBUG -I /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/inc -I /home/kai/aspectc/A spectC++-Project/Puma/gen-release/step1/aspects -I /home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/src -r /home/kai/aspectc/AspectC ++-Project/Puma/gen-release/puma.acp --config /home/kai/aspectc/AspectC++-Project/Puma/gen-release/puma.cfg --gen_size_type __SIZE_TYPE__
---
Copying sources not to weave...
Weaving aspects into PreFileIncluder.cc...
make[2]: ***
[/home/kai/aspectc/AspectC++-Project/Puma/gen-release/step2/src/PreFileIncluder.cc]
Segmentation fault
make[1]: *** [step2] Error 2
make: *** [src] Error 2
I modified src/weave.mk to get the line that causes trouble and plugged all in gdb. Sorry for the large chunk:
Program received signal SIGSEGV, Segmentation fault.
Puma::CSemantic::introduce_function_post (this=0xbfff19c8, func=0xabd6898, node=0xabd6370)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSemantic.cc:39742
39742 CFunctionInfo *aspect_of () const { return _aspectof; }
(gdb) l
39737
39738 /** Set the aspectOf() function declared in the aspect.
39739 * \param a The function info of the aspectOf() function. */
39740 void aspect_of (CFunctionInfo *a) { _aspectof = a; }
39741 /** Get the function info of the aspectOf() function. */
39742 CFunctionInfo *aspect_of () const { return _aspectof; }
39743 };
39744
39745 inline ACAspectInfo::ACAspectInfo (CClassInfo *node) :
39746 _class (node), _intro_count (0), _advice_count (0), _aspectof (0) {}
(gdb) bt
#0 Puma::CSemantic::introduce_function_post (this=0xbfff19c8, func=0xabd6898, node=0xabd6370)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSemantic.cc:39742
#1 0x080d9e92 in Puma::CCSemantic::introduce_function (this=0xbfff19c8)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSemantic.cc:62341
#2 0x080f241e in Puma::CCSyntax::fct_def (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:91628
#3 0x080f6c37 in Puma::TJP__ZN4Puma8CCSyntax11member_declEv_1::__action_func (action=@0xbffe051c)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:49234
#4 0x080edcc8 in Puma::CCSyntax::member_decl (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:14
#5 0x081304a0 in Puma::Syntax::catch_error<Puma::CSyntax> (this=0xbffe91dc, rule=<error reading variable>,
msg=0x8365d18 "invalid member declaration", finish_tokens=0xbffe05dc, skip_tokens=0xbffe05e4)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#6 0x081306fe in Puma::TJP__ZN4Puma7CSyntax11member_specEv_0::__action_func (action=@0xbffe061c)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:81794
#7 0x08129798 in Puma::CSyntax::member_spec (this=0xbffe91dc) at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:14
#8 0x080ef051 in Puma::CCSyntax::rule_class_spec (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:49234
#9 0x080f21e0 in Puma::CCSyntax::class_spec (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:49234
#10 0x081255d4 in Puma::CSyntax::rule_type_spec (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:80714
#11 0x0812ec10 in Puma::CSyntax::type_spec (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#12 0x0812a538 in Puma::CSyntax::rule_decl_spec (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:80541
#13 0x0812eed0 in Puma::CSyntax::decl_spec (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#14 0x081257c5 in Puma::CSyntax::decl_spec_seq1 (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:80655
#15 0x0812fdfd in parse<Puma::CSyntax> (this=0xbffe91dc, rule=<error reading variable>)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#16 0x08130211 in Puma::TJP__ZN4Puma7CSyntax13decl_spec_seqEv_0::__action_func (action=@0xbffe080c)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48916
#17 0x0812a478 in Puma::CSyntax::decl_spec_seq (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:14
#18 0x0812efb8 in Puma::CSyntax::simple_decl (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#19 0x080ea247 in Puma::CCSyntax::simple_decl (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:90929
#20 0x080f3b3d in Puma::CCSyntax::block_decl (this=0xbffe91dc)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:49234
#21 0x080f3f0f in Puma::CCSyntax::decl (this=0xbffe91dc) at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSyntax.cc:49234
#22 0x081304a0 in Puma::Syntax::catch_error<Puma::CSyntax> (this=0xbffe91dc, rule=<error reading variable>,
msg=0x8365d33 "invalid declaration", finish_tokens=0xbffe0a34, skip_tokens=0xbffe0a28)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#23 0x0812ae2e in Puma::CSyntax::decl_seq (this=0xbffe91dc) at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:80366
#24 0x081303b8 in Puma::TJP__ZN4Puma7CSyntax10trans_unitEv_0::__action_func (action=@0xbffe0a9c)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:48911
#25 0x0812ad22 in Puma::CSyntax::trans_unit (this=0xbffe91dc) at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CSyntax.cc:14
#26 0x08145a66 in Puma::Syntax::run (this=0xbffe91dc, tp=@0xbffe0b40)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/Syntax.cc:13999
#27 0x0814a66d in Puma::Parser::parse (this=0xbffe91d0, arg0=@0x841e438, arg1=@0xbfffad7c, arg2=0)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/Parser.cc:33505
#28 0x0809aa6f in Transformer::phase1 (this=0xbffe90e0, unit=0x841e438, tunit=@0xbffe8da0, context=@0xbffe8d9c, plan=@0xbffe8cbc)
at ../Puma/include/Puma/CCParser.h:127
#29 0x0809c97c in Transformer::work (this=0xbffe90e0, unit=0x841e438, primary_start=0x841db88, primary_end=0x84cf838) at Transformer.cc:79
#30 0x0804d882 in ACWeaver::translate (this=0xbfffacb0, vm=@0xbfffa998,
file=0x841eda0 "/home/kai/aspectc/AspectC++-Project/Puma/gen-release/step1/src/PreFileIncluder.cc", transformer=@0xbffe90e0)
at ACWeaver.cc:548
#31 0x0804ec6e in ACWeaver::weave (this=0xbfffacb0) at ACWeaver.cc:177
#32 0x0809fabf in main (argc=-1073762948, argv=0xbfffae44) at ac++.cc:42
(gdb) up
#1 0x080d9e92 in Puma::CCSemantic::introduce_function (this=0xbfff19c8)
at /home/kai/aspectc/ac-woven-1.0pre3/Puma/gen-release/step2/src/CCSemantic.cc:62341
62341 tjp->that ()->introduce_function_post (func, node);
(gdb) l
62336 CTree *node = *tjp->result ();
62337 if (!node)
62338 return;
62339
62340 // do the necessary post processing
62341 tjp->that ()->introduce_function_post (func, node);
62342 }
I don't know if this might help you, if you cannot reproduce it I guess not.
Since it is ac++ that crashes, and I built it myself, I do no longer think, that this is a platform issue.
Any ideas?
Is it possible to get a woven build of Puma (no extensions) from you somehow? I know that given the existence of a
bootstrapping process it is not the best solution, but if you cannot reproduce this bug it might get really hard
to track it.
This does in no way mean, that I'm not willing to help you get it :)
Regards,
Kai
PS: I'm a gdb-novice, so please be kind, I will try your suggestions, but may need a little context ;)
More information about the aspectc-user
mailing list