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
realpath(..., NULL) busted on OS X 10.5 #4433
Comments
The newest version of fish supported on OS X 10.5 is version 2.4. You might be able to get 2.6.0 or newer to compile and run if you've satisfied the C++11 libc requirement but it's not supported. Having said that if you do From the README.md file:
|
iBook G4, that's remarkable! @snigel can you please try launching it with gdb and showing a backtrace when it crashes? |
@krader1961 sorry about that. I should have seen those lines in the readme. I have barely used gdb before, so I hope I'm doing it right.
Trying with sudo.
and sudo + coredump
|
See also https://trac.macports.org/ticket/54974. I tried building it with both gcc6 and gcc7, same outcome. Here is my crashdump:
|
On MacPorts we use gcc6 and gcc7 in "GCC4ABI compatible mode" so that the new string calls are compatible with the older libstdc++ in the 10.5 system. Looking at the std::basic_string call just before the crash, that may be relevant. |
and a gdb run
|
Looks like
|
Yep - that appears to have fixed it, with 15 minutes testing. How those dumps I posted led you right to this fix is something I would dearly love to understand someday ;> Thanks. I'll put this patch into the MacPorts portfile for now, and we'll wait for a new version that I presume might include this later. |
@kencu The stack trace shows that we're dying while trying
NULL is 0 - it's not doing what we think it should with that NULL argument. |
We used to check for that, but it looks like it was removed in 7fd3079. |
That looks like the perfect fix, removed. I think we should just revert it. |
A bit more work than that might be needed, it looks like it was removed out of convenience to make some other changes on the other implementation easier. |
Just to confirm that with this patch and one extra #define, fish @2.6.0 now builds and runs correctly on systems back to and including MacOSX 10.4 Tiger. |
@ridiculousfish - the commit |
Cherry-picked as 99b72c0 for 2.7.0. |
OSX 10.5 powerpc
Using gcc 4.9, autoconf 2.69 and automake 1.15.1 from macports
fish 2.6.0 via tarball.
Configuring and compiling fish works as expected.
Starting fish does not.
The text was updated successfully, but these errors were encountered: