[aspectc-user] Segmentation fault in ac++

Jens Schedel jens at schedel.org
Wed Jul 7 09:35:02 CEST 2010


Hi,

with debug symbols in the ag++ i manage to determinate the point of the
segmentation fault in ac++:

**********************************************************************
  - Weaving Singleton Aspects ...
  - Committing
==12225== Invalid read of size 4
==12225==    at 0x806BF5B: IncludeGraph::iterateNodes(Puma::PreTree*) (PreSonIterator.h:38)
==12225==    by 0x80AEAAB: Transformer::phase2(Puma::Unit*, Puma::CTranslationUnit*, ModelBuilder&) (Transformer.cc:171)
==12225==    by 0x80AF70D: Transformer::work(Puma::Unit*, Puma::Token*, Puma::Token*) (Transformer.cc:95)
==12225==    by 0x8050F40: ACWeaver::translate(Puma::VerboseMgr&, char const*, Transformer&) (ACWeaver.cc:546)
==12225==    by 0x8053B56: ACWeaver::weave() (ACWeaver.cc:180)
==12225==    by 0x804C161: main (ac++.cc:42)
==12225==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12225== 
==12225== 
==12225== Process terminating with default action of signal 11 (SIGSEGV)
==12225==  Access not within mapped region at address 0x0
==12225==    at 0x806BF5B: IncludeGraph::iterateNodes(Puma::PreTree*) (PreSonIterator.h:38)
==12225==    by 0x80AEAAB: Transformer::phase2(Puma::Unit*, Puma::CTranslationUnit*, ModelBuilder&) (Transformer.cc:171)
==12225==    by 0x80AF70D: Transformer::work(Puma::Unit*, Puma::Token*, Puma::Token*) (Transformer.cc:95)
==12225==    by 0x8050F40: ACWeaver::translate(Puma::VerboseMgr&, char const*, Transformer&) (ACWeaver.cc:546)
==12225==    by 0x8053B56: ACWeaver::weave() (ACWeaver.cc:180)
==12225==    by 0x804C161: main (ac++.cc:42)
**********************************************************************

In the compiled code i moved some global variables and types out from an
specific namespace. This produces the shown segmentation fault. But i
was not able to extract some piece of code leading to this segmentation
fault.

The segmentation fault is reproduceable with the following build
versions of ag++:
  * 206
  * 243
  * 245
  * 248
  * 257
  * 270

Regards,
Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3230 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20100707/1d908981/attachment.bin>


More information about the aspectc-user mailing list