Has anyone been able to successfully get the latest cvs code of Syncterm to run on OSX?
I can get it to compile just fine but the second it starts, it crashes.
I just recently got a hand-me-down MacBook, so I'll be playing with it soon. You can nudge/remind me if you don't see any activity (e.g. in
CVS) soon. :-)
Has anyone been able to successfully get the latest cvs code of Syncterm to run on OSX?
I can get it to compile just fine but the second it starts, it crashes.
frank!netsurge!demonic
disksh0p!bbs ! bbs.diskshop.ca ! mystic goodness
So I was having the same issue because i adjusted the screen size by
using the window and making the screen larger..
I don't remember what I did to fix it.. I want to say i edited a file..
Im not around my mac right now but i had to fix the window size and once
i did that, it started to work again with no problems.
Once i get back to my mac, i will try and look up what that problem was and the file i edited to fix it.. I can tell you that it worked after
that and i haven't had any trouble since then..
Re: Re: Syncterm / OSX
By: Digital Man to Frank Linhares on Mon May 27 2019 12:26 am
Re: Re: Syncterm / OSX
By: Frank Linhares to Jason on Sun May 26 2019 04:07 am
Rob (DM) also said he just got a mac and will be playing around with compiling SyncTerm.
Where/how did you get the sdl-1.2-dev prerequisite?
I got past that by installing the "Runtime library" package from https://www.libsdl.org/download-1.2.php (which apparently includes the dev files).
Working on XQuartz install now.
Rob (DM) also said he just got a mac and will be playing around with compiling SyncTerm.
Re: Re: Syncterm / OSX
By: Frank Linhares to Jason on Sun May 26 2019 04:07 am
Rob (DM) also said he just got a mac and will be playing around with compiling SyncTerm.
Where/how did you get the sdl-1.2-dev prerequisite?
I got past that by installing the "Runtime library" package from https://www.libsdl.org/download-1.2.php (which apparently includes the
dev files).
I got past that by installing the "Runtime library" package from https://www.libsdl.org/download-1.2.php (which apparently includes the dev files).
I was able to compile it without any errors after satisfying the needed dependences, it's running it that cashes a crash.
Did you install XQuartz or how did you get SDL and X prereq's met?
Where/how did you get the sdl-1.2-dev prerequisite?
I haven't had a crash, but I haven't been able to get it to run in SDL
or X mode either (the pre-built SyncTERM 1.0 runs in SDL mode just fine however).
I haven't had a crash, but I haven't been able to get it to run in SDL or X mode either (the pre-built SyncTERM 1.0 runs in SDL mode just fine however).
You can find the dump here: https://pastebin.com/nJM6Ch9k
I haven't had a crash, but I haven't been able to get it to run in SDL or X mode either (the pre-built SyncTERM 1.0 runs in SDL mode just fine however).
You can find the dump here: https://pastebin.com/nJM6Ch9k
You can find the dump here: https://pastebin.com/nJM6Ch9k
And how are you running it (from a terminal or ...)?
Also, have you tried running it with all the different "-i" option
values to see if you get different behavior?
When I try to run it from a terminal (bash) prompt with -i[s|o|x], I
get "CIOLIB initialization failed!" - maybe I missed something in the XQuartz installation/setup. <shrug>
On Monday May 27, 2019, Digital Man said to Frank Linhares...
You can find the dump here: https://pastebin.com/nJM6Ch9k
And how are you running it (from a terminal or ...)?
Also, have you tried running it with all the different "-i" option values to see if you get different behavior?
When I try to run it from a terminal (bash) prompt with -i[s|o|x], I get "CIOLIB initialization failed!" - maybe I missed something in the XQuartz installation/setup. <shrug>
I tried with all three, -io -is -ix and all of them give me the same crash and a "Bus error: 10" on the command line.
It's crashing in nanosleep() which is a standard C library function, so that is
odd/unexpected. The call to nanosleep that is crashing is in the Synchronet conio/SDL support (sdl_con.c), so as an experiment, try
this:
Replace the following line in src/conio/sdl_con.c (line 1515):
SLEEP(1); with this:
usleep(1000);
Re-build, re-install if necessary (e.g. if you're running it from /usr/local/bin) and see if that makes any difference.
In the mean-time, I'll keep trying to get my build running in SDL or X modes.
It's crashing in nanosleep() which is a standard C library function, so that is
odd/unexpected. The call to nanosleep that is crashing is in the Synchronet conio/SDL support (sdl_con.c), so as an experiment, try this:
Replace the following line in src/conio/sdl_con.c (line 1515):
SLEEP(1); with this:
usleep(1000);
Re-build, re-install if necessary (e.g. if you're running it from /usr/local/bin) and see if that makes any difference.
In the mean-time, I'll keep trying to get my build running in SDL or X modes.
Tried as you suggested, same issue. Here is the output: https://pastebin.com/gqx314YR
I got it working SDL mode (X still fails with "CIOLIB initialization failed!") and did observe the same crash in the call to memset() ... sometimes. And commenting out that line can allow it to run more or
less, but still crashing in other places seemingly randomly. I suspect there's some stack corruption going on which can manifest in all kinds
of different crashes in different places that don't make sense. It'll
take some work to find out the root-cause here.
Re: Re: Syncterm / OSX
By: Digital Man to Frank Linhares on Mon May 27 2019 08:27 pm
In the mean-time, I'll keep trying to get my build running in SDL or X modes.
I got it working SDL mode
In the mean-time, I'll keep trying to get my build running in SDL or X modes.
I got it working SDL mode (X still fails with "CIOLIB initialization failed!") and did observe the same crash in the call to memset() ... sometimes. And commenting out that line can allow it to run more or less, but still crashing in other places seemingly randomly. I suspect there's some stack corruption going on which can manifest in all kinds of different crashes in different places that don't make sense. It'll take some work to find out the root-cause here.
You da man. Thanks Rob.
So you don't get the CIOLIB initialization failed! error when running syncterm with '-iX'?
So you don't get the CIOLIB initialization failed! error when running syncterm with '-iX'?
I do, sorry I should have been clearer. I made the changes to bbslist.c as you suggested and now it doesn't crash, but like you said, can't get it running on X.
I'm still seeing crashes without that call to memset(), so I don't think the root-problem is actually resolved. You'll likely still see some crashing until we find/fix it.
First off, thanks for helping with all you do to keep this hobby alive. Secondly, thanks for helping with this specific problem. There are a lot of us OS X users, putting time into this only helps to keep/bring people into the hobby. My hat is off to you sir.
I'm here to guinea pig for you.
I'm still seeing crashes without that call to memset(), so I don't think the root-problem is actually resolved. You'll likely still see some crashing until we find/fix it.
Letting me know if/when you see more crashes and providing the crash reports is helpful. If you're familiar with valgrind or other runtime analysis tools, they may help to identify serious issues that could be causing what we're seeing here.
Did you install XQuartz or how did you get SDL and X prereq's met?
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 28 |
Nodes: | 8 (0 / 8) |
Uptime: | 190:23:26 |
Calls: | 2,005 |
Calls today: | 2 |
Files: | 11,114 |
Messages: | 942,281 |