Segmentation fault #718
Unanswered
crsengineering
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi to all,
I am a newbie about rtklib and cross compilation, I was trying to run rtkrcv but I get "segmentation fault"....
I need to run rtklib on this hardware: OpenWrt on MIPS 74Kc V4.12 (Atheros AR9344 rev 3)
Here my steps:
First step, run rtklib on Ubuntu on my laptop.
I download and unzip rtklib from git (from here [((https://github.com/rtklibexplorer/RTKLIB)] due I've read it was correctly working on Raspberry), I go on str2str folder, make clean and make for both str2str and rtkrcv.
I connect GPS receiver via USB, I start str2str
str2str -in serial://ttyACM0:115200:8:o:1:off#ubx -out tcpsvr://:2222and it works, then I start rtk2rcv using configuration file
rtkrcv_mips -p 2950 -o /etc/rtklib/rtkrcv.curr.confThen I telnet to port 2950, I login, start command and status command, all ok.
Now let's move onto new hardware.
Both packages are already available on OpenWrt, so I install packages using opkg.
str2str correctly works, but using rtkrcv, I login, I start server, but when requesting status I get "segmentation fault".
I supposed it was due to old rtklib version available, that's why I tried using cross-compilation.
I get the same "segmentation fault" issue.
That happens when I call prstatus(vt), I put line
printf("[my debug] it's all ok until here (39)\r\n");
just before calling prstatus, then
printf("[my debug] it's all ok until here (40)\r\n");
as first instruction of prstatus.
I get segmentation fault just after printf("[my debug] it's all ok until here (39)\r\n");
I am newbie about OpenWrt, rtklib and cross compilation, so I have no idea about where could be the matter.
Any suggestion?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions