Problem with stdint

Hi,

I have a problem with stdint types in deployer. Natively OROCOS doesn't support these types, there are only registered aliases for uint32 and int32. I have found stdint typekit on OROCOS github (https://github.com/orocos-toolchain/stdint_typekit) but I have following problem, after typing import("stdint") in deployer, process crash witch message

12.187 [ Warning][TypekitRepository::Import] RTT type repository already knows type 'int32' as type 'int'. Aliasing type 'int'
12.187 [ Warning][TypekitRepository::Import] RTT type repository already knows type 'uint32' as type 'uint'. Aliasing type 'uint'
Segmentation fault (core dumped)

Has anyone met this problem before? My setup is following: Ubuntu 12.04, ROS Hydro, OROCOS 2.8 (from git) build with catkin.

Best,
Mariusz

Problem with stdint

Hi Mariusz,

I could reproduce this issue with a similar setup. It looks like the last
commit (
https://github.com/orocos-toolchain/stdint_typekit/commit/b6d48396c7e327...)
is responsible for the segfault, as the type name int32 is not registered
as an alias of int anymore and ti->type("int32") in StdintTypekit.cpp:146
<https://github.com/orocos-toolchain/stdint_typekit/blob/master/StdintTypekit.cpp#L146>
returns
a zero pointer.

I created a pull request here:
https://github.com/orocos-toolchain/stdint_typekit/pull/1

Even if not related to the reported problem it should be noted that the
stdint_typekit package is neither a rosbuild (missing Makefile) nor a
catkin package (no package.xml). The pull request adds support for both by
adding the two files. It should not influence pure cmake builds.

Best,
Johannes

On Mon, Jul 27, 2015 at 10:39 AM, Mariusz Janiak <mariuszjaniak [..] ...>
wrote:

> Hi,
>
> I have a problem with stdint types in deployer. Natively OROCOS doesn't
> support these types, there are only registered aliases for uint32 and
> int32. I have found stdint typekit on OROCOS github (
> https://github.com/orocos-toolchain/stdint_typekit) but I have following
> problem, after typing import("stdint") in deployer, process crash witch
> message
>
> 12.187 [ Warning][TypekitRepository::Import] RTT type repository already
> knows type 'int32' as type 'int'. Aliasing type 'int'
> 12.187 [ Warning][TypekitRepository::Import] RTT type repository already
> knows type 'uint32' as type 'uint'. Aliasing type 'uint'
> Segmentation fault (core dumped)
>
> Has anyone met this problem before? My setup is following: Ubuntu 12.04,
> ROS Hydro, OROCOS 2.8 (from git) build with catkin.
>
> Best,
> Mariusz
>
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Problem with stdint

Hi Johannes,

> I could reproduce this issue with a similar setup. It looks like the last commit (https://github.com/orocos-toolchain/stdint_typekit/commit/b6d48396c7e327...) is responsible for the segfault, as the type name int32 is not registered as an alias of int anymore and ti->type("int32") in StdintTypekit.cpp:146 returns a zero pointer.
> I created a pull request here: https://github.com/orocos-toolchain/stdint_typekit/pull/1

I have fetched your commits and unfortunately I still get segmentation fault.

> Even if not related to the reported problem it should be noted that the stdint_typekit package is neither a rosbuild (missing Makefile) nor a catkin package (no package.xml). The pull request adds support for both by adding the two files. It should not influence pure cmake builds.

I know, I was able to handle this issue.

Mariusz

> Best,Johannes
>
>
> On Mon, Jul 27, 2015 at 10:39 AM, Mariusz Janiak <mariuszjaniak [..] ...> wrote:
> > Hi,
> >
> > I have a problem with stdint types in deployer. Natively OROCOS doesn't support these types, there are only registered aliases for uint32 and int32. I have found stdint typekit on OROCOS github (https://github.com/orocos-toolchain/stdint_typekit) but I have following problem, after typing import("stdint") in deployer, process crash witch message
> >
> > 12.187 [ Warning][TypekitRepository::Import] RTT type repository already knows type 'int32' as type 'int'. Aliasing type 'int'
> > 12.187 [ Warning][TypekitRepository::Import] RTT type repository already knows type 'uint32' as type 'uint'. Aliasing type 'uint'
> > Segmentation fault (core dumped)
> >
> > Has anyone met this problem before? My setup is following: Ubuntu 12.04, ROS Hydro, OROCOS 2.8 (from git) build with catkin.
> >
> > Best,
> > Mariusz
> >
> >
> > --
> > Orocos-Users mailing list
> > Orocos-Users [..] ...
> > http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
> >
>