On 12/14/2016 06:19 PM,
william....@intel.com wrote:
> I started with
> "ns3::SequentialRandomVariable[Min=0.0|Max=6.28|Consecutive=1|Increment=1.256]"
> as the value for the "Theta" attribute, but I get a SIGSEGV in the
> ObjectFactory that way. It apparently gets an error creating an Object
> based on the string "1.256" when it deserializes the Increment parameter.
>
> I did not see anything in the Doxygen documentation
> (
https://www.nsnam.org/docs/doxygen/classns3_1_1_sequential_random_variable.html)
> saying what type Increment should take, but
> ns3::SequentialRandomVariable::GetInterval() returns an
> ns3::RandomVariableStream. Not knowing any better, I guessed that I
> could probably just put a ns3::ConstantRandomVariable there using the
> same syntax as the top level attribute value :-)
>
> Before I got the crash on Increment, I got a similar SIGSEGV when I
> tried to use "Consecutive=1.0" instead of "Consecutive=1" (double where
> uint32_t is expected). So it was kind of fresh in my head that a type
> mismatch will cause a SIGSEGV, and that I might not have all the types
> right.
>
> As a secondary issue, it might be nice to get a "type mismatch error" of
> some kind instead of a SIGSEGV when the type is wrong.