From: Eshwaran V. <esh...@gm...> - 2008-02-02 21:08:25
|
Hi again, I found to ways to solve the bug. Its mostly a hack that solves it. 1. After the Declaration of the robot i.e ex: Playerclient robot("localhost"), the sonar proxy should be immediately defined. I don't really understand why that prevents the segmentation fault from appearing but if the sonar proxy is declared after the Position2dProxy the fault appears. 2. If case we determine if we are actually getting some data by while(sp.GetCount() == 0) { robot.Read(); } Then it appears that the order of declaration doesn't matter. Regards Eshwaran On Jan 30, 2008 1:23 AM, Toby Collett <tco...@pl...> wrote: > Hi, > This looks like it is a bug in the client proxy, hopefully I will get a > chance to look into it later today. > > > Toby > > On 30/01/2008, Eshwaran VijayKumar <esh...@gm...> wrote: > > > > Hi again, > > > > I am using Player 2.1.0 rc1 and Stage 2.1.0 rc1. No I am not working > > with a real robot. Just the simulated robot. I have provided the gdb run and > > backtrace output: > > > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > > RUN OUTPUT > > Starting program: /home/swarm/Desktop/player-2.1.0rc1/examples/libplayerc++/sonarobstacleavoid > > > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/ac/2eeb206486bb7315d6ac4cd64de0cb50838ff6.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/e8/38ce6093590b08883fd28e6008fb91964ef067.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/59/2af63ddff2a1ff221065e557f938cc2cb25cc7.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/88/27308433e33aeefb560f42fb133577c8936f20.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/92/8ab51a53627c59877a85dd9afecc1619ca866c.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/db/8cb95645d5df469d4aece301cdb5e60087be21.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/ba/4ea1118691c826426e9410cafb798f25cefad5.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/6c/1cdbb38ae2a292613c8c31195417ee80ea7e1e.debug > > [Thread debugging using libthread_db enabled] > > [New process 9865] > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/d0/b716d925c00494a40cff204a21530d0b96df8b.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/e3/3448de964a5ca97b70edbdcea227c6ea5d3657.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/04/aefaf601793e8d276f6b6c6f4da080babe3faf.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/07/b722c2a7fed5b96cf4b40ce0f2a06eb0f8d2fc.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/db/a292aff9720bfc3f25c53fa8e469168460a894.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/59/90d96516d0966b3e75c018e6129eee43965a6a.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/fa/4de2ee94deb82d3b7b6dddba32b4cbfb94dd8e.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/cc/a2a51671562775f944bce85a9476972b6994c8.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/03/5807c541381466da2f8457545e62c87066fd4f.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/90/ebf9c172c9332feed316b7c0fdff30ce1a15ae.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/8a/cc903fa48e73406552c64938e7866699a10801.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/54/97ce83a1cf21660e17bef3f4831e2f24afe795.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/41/b572ad1b8e3fac8fb0dadf6bcc2b61ef6e08a9.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/60/d593e7987c4f31a338bf509b15d713aa1fe1fb.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/7c/f32ecc91202c1747b80e3356a6828ae7ee97e7.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/13/e7ce3022231431f7402aed8afd467f81d091f0.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/0d/605d38e5e2d23fb14837dd95144b2d330b946c.debug > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/87/d66bafb3c5d1af9e5a91a447ef5efcc0a3ec3c.debug > > [New Thread -1208792352 (LWP 9865)] > > > > warning: Missing the separate debug info file: > > /usr/lib/debug/.build-id/a7/eabb854181ef5ff0c22b78c3e5048c64a2ebb8.debug > > localhost: 6665 > > > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread -1208792352 (LWP 9865)] > > 0x08049f7d in PlayerCc::ClientProxy::GetVar<double> (this=0xbf9ebe88, > > aV=@0x10) > > at /home/swarm/player/include/player-2.1 > > /libplayerc++/clientproxy.h:133 > > 133 T v = aV; > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------- > > > > BACKTRACE OUTPUT: > > > > #0 0x08049f7d in PlayerCc::ClientProxy::GetVar<double> > > (this=0xbf9ebe88, > > aV=@0x10) > > at /home/swarm/player/include/player-2.1 > > /libplayerc++/clientproxy.h:133 > > #1 0x08049fc2 in PlayerCc::SonarProxy::GetScan (this=0xbf9ebe88, > > aIndex=2) > > at /home/swarm/player/include/player-2.1 > > /libplayerc++/playerc++.h:2311 > > #2 0x08049fdc in PlayerCc::SonarProxy::operator[] (this=0xbf9ebe88, > > aIndex=2) > > at /home/swarm/player/include/player-2.1 > > /libplayerc++/playerc++.h:2314 > > #3 0x080498f6 in main (argc=Cannot access memory at address 0x1 > > ) at sonarobstacleavoid.cc:54 > > > > > > Thanks again. Sorry if the email is a bit long. > > > > Regards > > Eshwaran > > > > On Jan 29, 2008 11:51 PM, Toby Collett <tco...@pl...> > > wrote: > > > > > A few things we need to know... > > > * what versions of player and stage are you using > > > * you talk about simple.cfg which implies a simulated robot, are you > > > also working with a real robot? > > > > > > also, can you provide a gdb backtrace of the segfault. > > > > > > Toby > > > > > > On 30/01/2008, Eshwaran VijayKumar <esh...@gm...> > > > wrote: > > > > > > > Hi, > > > > I have been trying to use the sonar interface with the pioneer2dx > > > > robot . However when i try to run ./sonarobstacleavoid after running the > > > > simple.cfg file i get an error as > > > > localhost : 6665 > > > > Segmentation fault > > > > > > > > Can any one help me out with this error? The strange thing is if I > > > > run both laserobstacleavoid and sonarobstacleavoid on the same robot using > > > > the simple.cfg file and shut down laserobstacleavoid after letting > > > > it run first. The sonar seems to be working ok. > > > > > > > > Regards > > > > Eshwaran > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Playerstage-users mailing list > > > > Pla...@li... > > > > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > > > > > > > > > > > > > > > -- > > > This email is intended for the addressee only and may contain > > > privileged and/or confidential information > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Playerstage-users mailing list > > > Pla...@li... > > > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Playerstage-users mailing list > > Pla...@li... > > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > > > > > -- > This email is intended for the addressee only and may contain privileged > and/or confidential information > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > |