Skip to content

Conversation

@kouzinopoulos
Copy link
Contributor

No description provided.

@pzhristov pzhristov merged commit aafdfba into AliceO2Group:dev Oct 14, 2014
MohammadAlTurany pushed a commit that referenced this pull request Apr 20, 2016
Type conversion is supposed to use the iterators type cast operator.
Crash on mac architecture probably due to inappropriate use of static_cast
with the intention that operator HdrT() of the iterator is invoked. But
static_cast expects that the new type can be declared and initialized from
the expression. It seems to be undefined what takes precedence.

Crash log
* thread #1: tid = 0x597d9, 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77
   74          it != list.end();
   75          ++it) {
   76       // the iterator defines a conversion operator to the header type
-> 77       std::cout << static_cast<typename ListType::header_type>(it) << std::end;
   78       // dereferencing of the iterator gives the payload
   79       std::cout << *it << std::end;
   80     }
MohammadAlTurany pushed a commit that referenced this pull request Apr 20, 2016
When using clang, writing to output stream caused segmentation violation
because the stream object was not returned by the operator which has been
used just before.
Adding also some other return statements (though irrelevant for the crash).

Crash log
* thread #1: tid = 0x597d9, 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77
   74          it != list.end();
   75          ++it) {
   76       // the iterator defines a conversion operator to the header type
-> 77       std::cout << static_cast<typename ListType::header_type>(it) << std::end;
   78       // dereferencing of the iterator gives the payload
   79       std::cout << *it << std::end;
   80     }
aphecetche referenced this pull request in aphecetche/AliceO2 Jul 13, 2016
Type conversion is supposed to use the iterators type cast operator.
Crash on mac architecture probably due to inappropriate use of static_cast
with the intention that operator HdrT() of the iterator is invoked. But
static_cast expects that the new type can be declared and initialized from
the expression. It seems to be undefined what takes precedence.

Crash log
* thread #1: tid = 0x597d9, 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77
   74          it != list.end();
   75          ++it) {
   76       // the iterator defines a conversion operator to the header type
-> 77       std::cout << static_cast<typename ListType::header_type>(it) << std::end;
   78       // dereferencing of the iterator gives the payload
   79       std::cout << *it << std::end;
   80     }
aphecetche referenced this pull request in aphecetche/AliceO2 Jul 13, 2016
When using clang, writing to output stream caused segmentation violation
because the stream object was not returned by the operator which has been
used just before.
Adding also some other return statements (though irrelevant for the crash).

Crash log
* thread #1: tid = 0x597d9, 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x0000000100001f7f testMessageList`void print_list<AliceO2::Format::messageList<TestMsg, SimpleHeader_t> >(list=<unavailable>, hdrsel=<unavailable>) + 191 at testMessageList.cxx:77
   74          it != list.end();
   75          ++it) {
   76       // the iterator defines a conversion operator to the header type
-> 77       std::cout << static_cast<typename ListType::header_type>(it) << std::end;
   78       // dereferencing of the iterator gives the payload
   79       std::cout << *it << std::end;
   80     }
noferini referenced this pull request in noferini/AliceO2 May 29, 2018
pillot referenced this pull request in pillot/AliceO2 Mar 26, 2020
[MCH] From vector to span in dataDecoderSpec
dsekihat referenced this pull request in dsekihat/AliceO2 Aug 20, 2020
knopers8 referenced this pull request in knopers8/AliceO2 Sep 7, 2020
Fix incompatibility with fair logger
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Mar 10, 2021
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Jun 16, 2021
Please consider the following formatting changes to AliceO2Group#6440
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Jun 27, 2022
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Jul 18, 2022
Please consider the following formatting changes to AliceO2Group#9403
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Oct 11, 2022
EmilGorm pushed a commit to EmilGorm/AliceO2 that referenced this pull request Apr 15, 2023
* Fix axis setters

* Refactor code

* Add viridis as default colormap palette

* Minor fixes

* MegaLinter fixes (AliceO2Group#1)

Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Jun 30, 2023
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Sep 19, 2023
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Mar 22, 2024
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Aug 8, 2024
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Sep 4, 2024
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Nov 28, 2024
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Apr 11, 2025
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Jun 16, 2025
alibuild pushed a commit to alibuild/AliceO2 that referenced this pull request Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants