-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfaults on OS X after attempted tplay. #1
Comments
unfortunately i don't have access to a macos x box, so i can't fix the tplay problems (but if i do get access, i will look into it) |
Hello I did some more digging and managed to get basic functionality (did not do very deep testing) running on OSX natively. tplay
For some reason (did not get to the bottom of it, just did a quick fix) the shell interpreting tplay did not honor $PATH when invoked by popen(), so I specified full path names explicitly. Also I added a $TPLAY_PREFIX variable as I wanted to be able to install the /tetra tree elsewhere than the root. telive.c
A few changes I did while trying to figure out the segfault. The most relevant is using pclose() in place of fclose() for the file descriptor returned by popen(), which should be the correct way. With your changes and these two you should be able to get tplay to work. Worked for me. Let me know how it goes! Matteo |
thanks. apparently closing a FILE* opened by popen() by fclose() works in linux (but is incorrect anyway). i've added this fix. also now i fall back to normal fnmatch behavious when FNM_EXTMATCH is it isn't defined. please check if it works for you. btw i've not changed the libosmocore library yet , but instead of patching it maybe we should see if a new version works correctly? (and if it doesn't, maybe sending the patch to the osmocom guys would be a better idea). unfortunately i don't have access to a osx box to test. |
First off. Thanks heaps for writing this program.
I've been playing with getting this running in OS X. I'm able to start up telive (via rxx) and can see Tetra things happening but as soon as it goes to tplay it'll throw the
PLAYBACK PROBLEM!! (fix tplay)
file followed by a segfault./rxx: line 70: 19020 Segmentation fault: 11 (core dumped) ./telive
.I'll post some gdb info once I get gdb running (never used it on OS X before).
I'm currently working on setting up a replacement for aplay (most likely sox play) but in the mean time I'd be ok with this just saving to file for me to play later.
I've tried replacing the tplay script with just a cat command to dump the contents to a text file however the text file never fills up with anything.
My main concern is if this is actually related to tplay at all or if this is another problem I'll have to solve
Hacks for certain files to get them to compile on OS X - somewhat unrelated to this issue
(no seriously these are pretty bad hacks - I don't intend on fixing these properly but if someone was keen to make a proper macport I think it would be an awesome idea).
install gnuradio via macports
symlink/opt/local/bin/python -> /opt/local/bin/python2.7
osmo-tetra-sq5bpf
libosmocore-sq5bpf
The text was updated successfully, but these errors were encountered: