Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
RobWork
RobWork
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards
  • SDU Robotics
  • RobWorkRobWork
  • Issues
  • #6

Closed
Open
Opened Apr 29, 2016 by Lars Carøe Sørensen@LSorensenReporter

Memory issue in rwsim::dynamics::ContactCluster::normalThresClustering

==13220== Invalid write of size 4
==13220==    at 0xD4AA51: rwsim::dynamics::ContactCluster::normalThresClustering(rwsim::dynamics::ContactPoint*, int, int*, int*, rwsim::dynamics::ContactPoint*, double) (in /home/lsorensen/CARMEN-internal
/trunk/cluster/src/bin/release/cluster)
==13220==    by 0xD3A1E4: rwsim::contacts::ContactStrategyPQP::manifoldFilter(std::vector<rwsim::contacts::Contact, std::allocator<rwsim::contacts::Contact> > const&) (in /home/lsorensen/CARMEN-internal/tr
unk/cluster/src/bin/release/cluster)
==13220==    by 0xD3D6DE: rwsim::contacts::ContactStrategyPQP::findContacts(rw::common::Ptr<rw::proximity::ProximityModel>, rw::math::Transform3D<double> const&, rw::common::Ptr<rw::proximity::ProximityMod
el>, rw::math::Transform3D<double> const&, rwsim::contacts::ContactStrategyData&, rwsim::contacts::ContactStrategyTracking&, rwsim::log::SimulatorLogScope*) const (in /home/lsorensen/CARMEN-internal/trunk/
cluster/src/bin/release/cluster)
==13220==    by 0xD25C53: rwsim::contacts::ContactDetector::findContacts(rw::kinematics::State const&, rwsim::contacts::ContactDetectorData&, rwsim::contacts::ContactDetectorTracking&, rwsim::log::Simulato
rLogScope*) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x16FC8B8C: rwsimlibs::rwpe::RWPEIsland::doStep(double) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0x16FCBEA0: rwsimlibs::rwpe::RWPEIsland::step(double, rw::kinematics::State&) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0xD9022E: rwsim::simulator::AssemblySimulator::runSingle(unsigned long, rw::common::Ptr<rwsim::log::SimulatorLogScope>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/clu
ster)
==13220==    by 0xD91923: rwsim::simulator::AssemblySimulator::runAll() (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0xD91CFF: rwsim::simulator::AssemblySimulator::start(rw::common::Ptr<rw::common::ThreadTask>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x738760: KVMSimulator::run(rw::common::Ptr<rwlibs::assembly::AssemblyParameterization>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x7064DC: Learning::rewardFunction(rw::common::Ptr<Sample>, unsigned int) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x70B0E1: SamplingNaive::runSingle(unsigned int, bool) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==  Address 0x2b3044f0 is 0 bytes after a block of size 24,176 alloc'd
==13220==    at 0x4C2B800: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13220==    by 0xD39EEF: rwsim::contacts::ContactStrategyPQP::manifoldFilter(std::vector<rwsim::contacts::Contact, std::allocator<rwsim::contacts::Contact> > const&) (in /home/lsorensen/CARMEN-internal/tr
unk/cluster/src/bin/release/cluster)
==13220==    by 0xD3D6DE: rwsim::contacts::ContactStrategyPQP::findContacts(rw::common::Ptr<rw::proximity::ProximityModel>, rw::math::Transform3D<double> const&, rw::common::Ptr<rw::proximity::ProximityMod
el>, rw::math::Transform3D<double> const&, rwsim::contacts::ContactStrategyData&, rwsim::contacts::ContactStrategyTracking&, rwsim::log::SimulatorLogScope*) const (in /home/lsorensen/CARMEN-internal/trunk/
cluster/src/bin/release/cluster)
==13220==    by 0xD25C53: rwsim::contacts::ContactDetector::findContacts(rw::kinematics::State const&, rwsim::contacts::ContactDetectorData&, rwsim::contacts::ContactDetectorTracking&, rwsim::log::Simulato
rLogScope*) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x16FC8B8C: rwsimlibs::rwpe::RWPEIsland::doStep(double) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0x16FCBEA0: rwsimlibs::rwpe::RWPEIsland::step(double, rw::kinematics::State&) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0xD9022E: rwsim::simulator::AssemblySimulator::runSingle(unsigned long, rw::common::Ptr<rwsim::log::SimulatorLogScope>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/clu
ster)
==13220==    by 0xD91923: rwsim::simulator::AssemblySimulator::runAll() (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0xD91CFF: rwsim::simulator::AssemblySimulator::start(rw::common::Ptr<rw::common::ThreadTask>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x738760: KVMSimulator::run(rw::common::Ptr<rwlibs::assembly::AssemblyParameterization>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x7064DC: Learning::rewardFunction(rw::common::Ptr<Sample>, unsigned int) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x70B0E1: SamplingNaive::runSingle(unsigned int, bool) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220== 
==13220== Invalid read of size 4
==13220==    at 0xD3A2B8: rwsim::contacts::ContactStrategyPQP::manifoldFilter(std::vector<rwsim::contacts::Contact, std::allocator<rwsim::contacts::Contact> > const&) (in /home/lsorensen/CARMEN-internal/tr
unk/cluster/src/bin/release/cluster)
==13220==    by 0xD3D6DE: rwsim::contacts::ContactStrategyPQP::findContacts(rw::common::Ptr<rw::proximity::ProximityModel>, rw::math::Transform3D<double> const&, rw::common::Ptr<rw::proximity::ProximityMod
el>, rw::math::Transform3D<double> const&, rwsim::contacts::ContactStrategyData&, rwsim::contacts::ContactStrategyTracking&, rwsim::log::SimulatorLogScope*) const (in /home/lsorensen/CARMEN-internal/trunk/
cluster/src/bin/release/cluster)
==13220==    by 0xD25C53: rwsim::contacts::ContactDetector::findContacts(rw::kinematics::State const&, rwsim::contacts::ContactDetectorData&, rwsim::contacts::ContactDetectorTracking&, rwsim::log::Simulato
rLogScope*) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x16FC8B8C: rwsimlibs::rwpe::RWPEIsland::doStep(double) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0x16FCBEA0: rwsimlibs::rwpe::RWPEIsland::step(double, rw::kinematics::State&) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0xD9022E: rwsim::simulator::AssemblySimulator::runSingle(unsigned long, rw::common::Ptr<rwsim::log::SimulatorLogScope>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/clu
ster)
==13220==    by 0xD91923: rwsim::simulator::AssemblySimulator::runAll() (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0xD91CFF: rwsim::simulator::AssemblySimulator::start(rw::common::Ptr<rw::common::ThreadTask>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x738760: KVMSimulator::run(rw::common::Ptr<rwlibs::assembly::AssemblyParameterization>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x7064DC: Learning::rewardFunction(rw::common::Ptr<Sample>, unsigned int) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x70B0E1: SamplingNaive::runSingle(unsigned int, bool) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x6FF87E: Main::samplingDiscrete(int, char const**) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==  Address 0x2b3044f0 is 0 bytes after a block of size 24,176 alloc'd
==13220==    at 0x4C2B800: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13220==    by 0xD39EEF: rwsim::contacts::ContactStrategyPQP::manifoldFilter(std::vector<rwsim::contacts::Contact, std::allocator<rwsim::contacts::Contact> > const&) (in /home/lsorensen/CARMEN-internal/tr
unk/cluster/src/bin/release/cluster)
==13220==    by 0xD3D6DE: rwsim::contacts::ContactStrategyPQP::findContacts(rw::common::Ptr<rw::proximity::ProximityModel>, rw::math::Transform3D<double> const&, rw::common::Ptr<rw::proximity::ProximityMod
el>, rw::math::Transform3D<double> const&, rwsim::contacts::ContactStrategyData&, rwsim::contacts::ContactStrategyTracking&, rwsim::log::SimulatorLogScope*) const (in /home/lsorensen/CARMEN-internal/trunk/
cluster/src/bin/release/cluster)
==13220==    by 0xD25C53: rwsim::contacts::ContactDetector::findContacts(rw::kinematics::State const&, rwsim::contacts::ContactDetectorData&, rwsim::contacts::ContactDetectorTracking&, rwsim::log::Simulato
rLogScope*) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x16FC8B8C: rwsimlibs::rwpe::RWPEIsland::doStep(double) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0x16FCBEA0: rwsimlibs::rwpe::RWPEIsland::step(double, rw::kinematics::State&) (in /home/lsorensen/RobWork/RobWorkSim/libs/release/librwpe_plugin.rwplugin.so)
==13220==    by 0xD9022E: rwsim::simulator::AssemblySimulator::runSingle(unsigned long, rw::common::Ptr<rwsim::log::SimulatorLogScope>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/clu
ster)
==13220==    by 0xD91923: rwsim::simulator::AssemblySimulator::runAll() (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0xD91CFF: rwsim::simulator::AssemblySimulator::start(rw::common::Ptr<rw::common::ThreadTask>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x738760: KVMSimulator::run(rw::common::Ptr<rwlibs::assembly::AssemblyParameterization>) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x7064DC: Learning::rewardFunction(rw::common::Ptr<Sample>, unsigned int) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220==    by 0x70B0E1: SamplingNaive::runSingle(unsigned int, bool) (in /home/lsorensen/CARMEN-internal/trunk/cluster/src/bin/release/cluster)
==13220== 
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: sdurobotics/RobWork#6