Skip to content

Release fixes - #511

Merged
flyingmutant merged 6 commits into
cmus:masterfrom
mahkoh:release-fixes
Sep 26, 2016
Merged

flyingmutant merged 6 commits into
cmus:masterfrom
mahkoh:release-fixes

Conversation

@mahkoh

@mahkoh mahkoh commented Sep 3, 2016

Copy link
Copy Markdown
Member

Addresses the issues raised in #507 and some more.

Coincidentally 3a8091b might (or might not) fix #505.

@mahkoh

mahkoh commented Sep 3, 2016

Copy link
Copy Markdown
Member Author

The compilers on travis are too old (2011.)

Comment thread ui_curses.c Outdated
}

static sig_atomic_t ctrl_c_pressed = 0;
static _Atomic int ctrl_c_pressed = 0;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a static assertion somewhere here that checks that _Atomic int is lock free. Unfortunately clang is bugged and doesn't define the correct macros. We could assert it at runtime but that's probably overkill since _Atomic int will probably be lock free everywhere.

@mahkoh
mahkoh force-pushed the release-fixes branch 5 times, most recently from 917db58 to 22ff142 Compare September 22, 2016 07:15
@mahkoh

mahkoh commented Sep 22, 2016

Copy link
Copy Markdown
Member Author

This should work now.

Comment thread .travis.yml Outdated
- sourceline: 'deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.8 main'
packages:
- gcc-6
- clang-3.8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are pretty bleeding edge versions. We should probably use something older in Travis, so that we will not get situations like «it compiles in Travis, but fails in SOME_POPULAR_DISTRO».

@flyingmutant

Copy link
Copy Markdown
Member

FYI — this does not fix #505.

Having multiple threads mess around before everything has been
initialized is fishy to beging with. In particular the worker will
access the cache which will access options which might not yet have been
loaded.
This warning is mostly useless. The behavior of missing fields is
completely defined by the C standard (they are initialized to their null
value.) This feature is often deliberately used and in some cases it's
the only well-defined way to initialize a structure. (memset to 0 is not
equilavent.)
@mahkoh

mahkoh commented Sep 26, 2016

Copy link
Copy Markdown
Member Author

Changed to gcc5, clang3.7.

@flyingmutant
flyingmutant merged commit fd58205 into cmus:master Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI corruption at startup

2 participants