These are chat archives for boostorg/hana

7th
Mar 2016
Jason Rice
@ricejasonf
Mar 07 2016 03:57
(lldb) run
Process 3105 launched: './test/test.ext.boost.tuple.orderable' (x86_64)
Process 3105 stopped
* thread #1: tid = 0x31a0e, 0x0000000200059acb, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x200059acb)
    frame #0: 0x0000000200059acb
error: memory read failed for 0x200059a00
(lldb) bt
* thread #1: tid = 0x31a0e, 0x0000000200059acb, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x200059acb)
  * frame #0: 0x0000000200059acb
not really informative there, lldb
Jason Rice
@ricejasonf
Mar 07 2016 04:43
I was trying to isolate code and step through it, but I will have to play with it more tomorrow. Note that I am using Boost 1.59 if that says anything :beer:
Louis Dionne
@ldionne
Mar 07 2016 13:55
@ricejasonf I’m almost there, thanks. I think I’ll manage to find it on my own. See https://travis-ci.org/boostorg/hana/builds/114127555#L192
Jason Rice
@ricejasonf
Mar 07 2016 15:55
@ldionne did you find it?
Louis Dionne
@ldionne
Mar 07 2016 16:17
Not yet, lol.
I’m doing 1k things at the same time, to be fair.
hia3
@hia3
Mar 07 2016 16:38
There are 2 variants of std::transform - for 1 and for 2 sequences, but only one hana::transform. I can zip, then transform and fuse, but zip will make a copy, right?
Louis Dionne
@ldionne
Mar 07 2016 16:38
Use zip_with.
zip_with(function, sequence1, …, sequenceN).
hia3
@hia3
Mar 07 2016 16:40
Exactly what I need! Thank you! :-)
Louis Dionne
@ldionne
Mar 07 2016 16:40
My pleasure!
Jason Rice
@ricejasonf
Mar 07 2016 18:31
I was able to get a decent backtrace but that's about it. :P
Louis Dionne
@ldionne
Mar 07 2016 18:32
Don’t sweat over it, I’ll find the problem eventually. I’m slowly reducing the test case on Travis.
It seems to be related to boost::tuple anyway, so it’s not a priority.
Jason Rice
@ricejasonf
Mar 07 2016 18:32
I tried isolating the code, but then it wouldn't reproduce it.
Louis Dionne
@ldionne
Mar 07 2016 18:33
Yeah, it disapears almost randomly. To keep seeing it, you need to Valgrind the executable.