Skip to content
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

initialize members of struct to avoid problems with serialisation #4638

Merged
merged 1 commit into from
Jul 24, 2014

Conversation

apfeiffer1
Copy link
Contributor

This PR fixes a problem in the serialisatoin unit test seen in the CLANG builds, where a
non-initialised boolean variable causing problems as it's value was -1 (oxff) while the
C++ standard allows only 0 (false) and 1 (true), and the serialisation code (the EOS
portable binary archive) expects only the standard values.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @apfeiffer1 (Andreas Pfeiffer) for CMSSW_7_2_X.

initialize members of struct to avoid problems with serialisation

It involves the following packages:

CondFormats/RPCObjects

@apfeiffer1, @diguida, @cmsbuild, @nclopezo, @rcastello, @ggovi, @Degano can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@apfeiffer1
Copy link
Contributor Author

+1

On Mon, Jul 14, 2014 at 2:57 PM, cmsbuild notifications@github.com wrote:

A new Pull Request was created by @apfeiffer1
https://github.com/apfeiffer1 (Andreas Pfeiffer) for CMSSW_7_2_X.

initialize members of struct to avoid problems with serialisation

It involves the following packages:

CondFormats/RPCObjects

@apfeiffer1 https://github.com/apfeiffer1, @diguida
https://github.com/diguida, @cmsbuild https://github.com/cmsbuild,
@nclopezo https://github.com/nclopezo, @rcastello
https://github.com/rcastello, @ggovi https://github.com/ggovi, @Degano
https://github.com/degano can you please review it and eventually sign?
Thanks.
You can sign-off by replying to this message having '+1' in the first line
of your reply.
You can reject by replying to this message having '-1' in the first line
of your reply.


Reply to this email directly or view it on GitHub
#4638 (comment).

Thanks,
cheers, andreas

@davidlange6
Copy link
Contributor

Andreas - do you expect that these changes address the gcc490 issues with the new CondDB ? I tested them locally with both PR 4637 and 4638 but see the same exceptions as before.

On Jul 14, 2014, at 3:02 PM, Andreas Pfeiffer notifications@github.com wrote:

+1

On Mon, Jul 14, 2014 at 2:57 PM, cmsbuild notifications@github.com wrote:

A new Pull Request was created by @apfeiffer1
https://github.com/apfeiffer1 (Andreas Pfeiffer) for CMSSW_7_2_X.

initialize members of struct to avoid problems with serialisation

It involves the following packages:

CondFormats/RPCObjects

@apfeiffer1 https://github.com/apfeiffer1, @diguida
https://github.com/diguida, @cmsbuild https://github.com/cmsbuild,
@nclopezo https://github.com/nclopezo, @rcastello
https://github.com/rcastello, @ggovi https://github.com/ggovi, @Degano
https://github.com/degano can you please review it and eventually sign?
Thanks.
You can sign-off by replying to this message having '+1' in the first line
of your reply.
You can reject by replying to this message having '-1' in the first line
of your reply.


Reply to this email directly or view it on GitHub
#4638 (comment).

Thanks,
cheers, andreas

Reply to this email directly or view it on GitHub.

@apfeiffer1
Copy link
Contributor Author

Hi David,

Andreas - do you expect that these changes address the gcc490 issues with

the new CondDB ? I tested them locally with both PR 4637 and 4638 but see
the same exceptions as before.

well, yes, they fix the failing unit tests seen in the 490 and CLANG IBs.
What tests do you run which fail ?

Thanks,
cheers, andreas

@davidlange6
Copy link
Contributor

Many relvals:

eg

https://cmssdt.cern.ch/SDT/cgi-bin//showMatrixTestLogs.py/slc6_amd64_gcc490/www/sat/7.2-sat-14/CMSSW_7_2_X_2014-07-12-1400/pyRelValMatrixLogs/run/

On Jul 14, 2014, at 7:29 PM, Andreas Pfeiffer notifications@github.com
wrote:

Hi David,

Andreas - do you expect that these changes address the gcc490 issues with

the new CondDB ? I tested them locally with both PR 4637 and 4638 but see
the same exceptions as before.

well, yes, they fix the failing unit tests seen in the 490 and CLANG IBs.
What tests do you run which fail ?

Thanks,
cheers, andreas

Reply to this email directly or view it on GitHub.

@apfeiffer1
Copy link
Contributor Author

Many relvals:

eg

https://cmssdt.cern.ch/SDT/cgi-bin//showMatrixTestLogs.py/slc6_amd64_gcc490/www/sat/7.2-sat-14/CMSSW_7_2_X_2014-07-12-1400/pyRelValMatrixLogs/run/

OK, I'll have a look at these.

@ktf do you know if gcc490 has changed the handling of "legacy" bools
compared to oder versions ?
Concretely: if a bool is initialised with a number which is not 0 or 1 (as
the standard requires for false and true), is the behaviour defined or not
??

Thanks,
cheers, andreas

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@diguida
Copy link
Contributor

diguida commented Jul 24, 2014

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine).

ktf added a commit that referenced this pull request Jul 24, 2014
Initialize members of struct to avoid problems with serialization.
@ktf ktf merged commit 3eec7ee into cms-sw:CMSSW_7_2_X Jul 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants