On 24/08/2016, Sage Weil wrote: [snip] > This is appealing, except: > > > > Note that using the system assert isn't a total disaster: system > > > assert will trigger an abort, which will trigger the SIGABRT handler > > > which *also* dumps a stack trace to the debug log. The problem is > > > that it doesn't show the assertion condition and line number. [snip] > I think not getting the assertion condition and line number in the > ceph log is a deal breaker. We should be able to get the condition and line number in the log, they're passed to __assert_fail() so we could pass them to ceph_assert_fail (see the commit that Casey linked to.) I can see arguments either way, the main one I would make AGAINST this approach is that it makes portability/building more complicated. -- Senior Software Engineer Red Hat Storage, Ann Arbor, MI, US IRC: Aemerson@{RedHat, OFTC, Freenode} 0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C 7C12 80F7 544B 90ED BFB9 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html