Why running in VERBOSE mode but not in normal mode?

Asked by Rahamatullah on 2009-08-12

Dear all,
Right now, I am getting an strange error in running the simulator in normal mode which is SIGSEGV (segmentation violation).
For tracking the error, I used gdb. But, in gdb, the simulator was running showing no error. But, then, the debugging mode of both dll and common was changed to VERBOSE (mode 3). Using VERBOSE mode, the simulator was running without error.

I wonder what could be the problem? Is it a bug of openWNS?

Thanking you,
Rahamatullah

Question information

Language:
English Edit question
Status:
Answered
For:
openWNS WiFiMAC Edit question
Assignee:
No assignee Edit question
Last query:
2009-08-12
Last reply:
2009-08-13
Harald Radke (rat-comnets) said : #1

Hello Rahamatullah,

just a wild guess, but maybe you have some code that is relevant for proper execution inside a MESSAGE statement/block (MESSAGE_SINGLE/MESSAGE_BEGIN - MESSAGE_END) which only gets executed on VERBOSE debug level...I suggest that you check all MESSAGE_* code for any statement that does more than simply retrieving data for debug output and reimplement it outside the debugging code

Hope that helps,

Harald Radke

It might even be "irrelevant" code like "somePointer->printInfo()" you
execute in MESSAGE_*. If you don't need somePointer anywhere else but
somePointer is NULL you only run in trouble in dbg mode.

> Question #79832 on openWNS WiFiMAC changed:
> https://answers.launchpad.net/openwns-wifimac/+question/79832
>
> Status: Open => Answered
>
> Harald Radke proposed the following answer:
> Hello Rahamatullah,
>
> just a wild guess, but maybe you have some code that is relevant for
> proper execution inside a MESSAGE statement/block
> (MESSAGE_SINGLE/MESSAGE_BEGIN - MESSAGE_END) which only gets executed on
> VERBOSE debug level...I suggest that you check all MESSAGE_* code for
> any statement that does more than simply retrieving data for debug
> output and reimplement it outside the debugging code
>
> Hope that helps,
>
> Harald Radke
>
> --
> You received this question notification because you are a member of
> ComNets, RWTH Aachen, University, which is an answer contact for openWNS
> WiFiMAC.
> _______________________________________________
> Develop mailing list
> <email address hidden>
> https://lists.comnets.rwth-aachen.de/mailman/listinfo/develop
>

Can you help with this problem?

Provide an answer of your own, or ask Rahamatullah for more information if necessary.

To post a message you must log in.