[ros-users] segmentation fault using ROS

sh2723 at columbia.edu sh2723 at columbia.edu
Fri Oct 8 17:17:04 UTC 2010


Hi,

I encountered the same problem after upgrading the ROS boxturtle from  
1.0.2 to 1.0.5 on Ubuntu 9.10. Any solution would be appreciated.

Best,
Soonhac Hong


Quoting ibwood <ianbenjiman at hotmail.com>:

>
> Hi everyone,
>
> Upon trying to run a node, the file "rosrun" came up with a segmentation
> fault: Here is my file..
> It said the error was in line 35 (last line) with "$exepath "$@"":
>
>
> #!/bin/bash
> if [ $# -lt 2 ]; then
>   echo "Usage: rosrun PACKAGE EXECUTABLE [ARGS]"
>   echo "  rosrun will locate PACKAGE and try to find"
>   echo "  an executable named EXECUTABLE in the PACKAGE tree."
>   echo "  If it finds it, it will run it with ARGS."
>   exit 1
> fi
> pkgdir=`${ROS_ROOT}/bin/rospack find $1` || exit 2
> # The -perm /mode usage is not available in find on the Mac
> #exepathlist=(`find $pkgdir -name $2 -type f -perm /u+x,g+x,o+x`)
> exepathlist=(`find $pkgdir -name $2 -type f  -perm +111 ! -regex
> ".*$pkgdir\/build\/.*"`)
> if [[ ${#exepathlist[@]} == 0 ]] ; then
>     echo "[rosrun] Couldn't find executable named $2 below $pkgdir"
>     nonexepathlist=(`find $pkgdir -name $2`)
>     if [[ ${#nonexepathlist[@]} != 0 ]] ; then
>       echo "[rosrun] Found the following, but they're either not files, "
>       echo "[rosrun] or not executable:"
>       for p in ${nonexepathlist[@]}; do
>         echo "[rosrun]   ${p}"
>       done
>     fi
>     exit 3
> elif [[ ${#exepathlist[@]} -gt 1 ]] ; then
>     echo "[rosrun] You have chosen a non-unique executable, please pick one
> of the following:"
>     select opt in ${exepathlist[@]}; do
>         exepath=$opt
>         break
>     done
> else
>     exepath=${exepathlist[0]}
> fi
> shift
> shift
> $exepath "$@"
>
>
> What is the issue here?
>
> Thanks,
> Ian
>
>
> --
> View this message in context:   
> http://ros-users.122217.n3.nabble.com/segmentation-fault-using-ROS-tp978619p978619.html
> Sent from the ROS-Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> ros-users mailing list
> ros-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ros-users
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>





More information about the ros-users mailing list