rm5248 commented on issue #631:
URL: 
https://github.com/apache/logging-log4cxx/issues/631#issuecomment-4277056966

   This is interesting.  It has _something_ to do with how the inheritance is 
setup, but I can't quite figure out what it is.  It seems that there's a bad 
cast someplace, but I don't see exactly what the problem is at the moment.
   
   It seems that we create the `SampleASyncAppender` and then later in [DOM 
configurator we cast it to an 
`AppenderAttachable`](https://github.com/apache/logging-log4cxx/blob/23dee3b43f6216d1ae89983a3604c97157994222/src/main/cpp/domconfigurator.cpp#L381).
  This cast succeeds, but it seems to be pointing at bad memory(an invalid 
`priv` pointer of some kind with value 0x1 on my system).  I'm not quite sure 
why the cast to `AppenderAttachable` is working, as I don't see that in the 
class hierarchy at the moment.  I'm pretty sure that it _should_ work, but 
where is it coming in from?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to