<adrien>
basically, ld makes it possible to wrap some symbol into others
<adrien>
the C code is in the first two functions
<adrien>
and if in the first chunk of code, I comment out the "indent += 2;" and "indent -= 2;", then it works (i.e. doesn't crash)
<adrien>
otherwise, I get segfault in oldify_local_roots
<adrien>
I've tried making the C functions ocaml-callable but that hasn't changed anything
<adrien>
I'm not giving a full testcase (yet) because I'm leaving soon and it only segfaults after something like a hundred modules (I think that linking against lablgtk should be enough to trigger the issue)
cdidd has quit [Ping timeout: 276 seconds]
skchrko has joined #ocaml
<xlq>
A function in List overflowed the stack. The backtrace is truncated, so how can I find out what called the function in List?
<mrvn>
printf
<xlq>
:(
Tobu has quit [Ping timeout: 260 seconds]
<flux>
doesn't mean your code has a bug
<flux>
you could just make use of a tail-recursive variant of the function you're using
Tobu has joined #ocaml
<mrvn>
I find usualy the problem is finding where the call is that overflows.
<xlq>
It's definitely a bug (I'm not testing with nearly enough data to warrant an overflow). I do need to find out what's calling the list function.
<xlq>
Perhaps I created a looped list somehow.
<mrvn>
any Obj.magic?
<_habnabit>
xlq, .byte or .native?
<xlq>
_habnabit: I don't mind.
<xlq>
But I've been using native.
<xlq>
mrvn: No.
<_habnabit>
xlq, .native tends to inline more aggressively
<_habnabit>
xlq, whenever I want a better traceback, I rerun it with the .byte version
<mrvn>
xlq: then how would a list end up looped?
<xlq>
mrvn: let rec x = () :: x
<xlq>
But yeah, without that specific syntax (which is obvious to find), you can't get a looped list.
<mrvn>
xlq: well, that kind is quite hard to do accidentally.
<xlq>
Yeah. OK so it's not that ;)
<xlq>
Thanks, I still don't get the whole stack but I can see the closure that List is calling.
<_habnabit>
xlq, this is why our build system compiles and installs both the .byte and .native versions
<xlq>
Aargh, I got caught out with the semicolon-after-if problem *again* :(
<xlq>
if x then a; b; c
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
Submarine has quit [Read error: Connection reset by peer]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
Zedrikov has joined #ocaml
iago has joined #ocaml
ggherdov has quit [Remote host closed the connection]
ggherdov has joined #ocaml
Tobu has quit [Ping timeout: 260 seconds]
Tobu has joined #ocaml
alxbl has quit [Ping timeout: 245 seconds]
ggherdov has quit [Ping timeout: 250 seconds]
ggherdov has joined #ocaml
eikke has quit [Ping timeout: 250 seconds]
ggherdov has quit [Remote host closed the connection]
ggherdov has joined #ocaml
ggherdov has quit [Remote host closed the connection]
ggherdov has joined #ocaml
Submarine has quit [Remote host closed the connection]
ggherdov has quit [Ping timeout: 246 seconds]
ggherdov has joined #ocaml
emmanuelux has joined #ocaml
skchrko has quit [Ping timeout: 246 seconds]
skchrko has joined #ocaml
eikke has joined #ocaml
JuzorBNC is now known as Juzor
Juzor is now known as JuzorBNC
fraggle_ has quit [Read error: Connection reset by peer]
ggherdov has left #ocaml []
skchrko has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120314111819]]
avsm has joined #ocaml
xlq has quit [Ping timeout: 260 seconds]
fraggle_ has joined #ocaml
Zedrikov has quit [Quit: Bye all, see you next time!]
albacker has joined #ocaml
albacker has quit [Changing host]
albacker has joined #ocaml
iago has quit [Quit: Leaving]
fraggle__ has joined #ocaml
fraggle__ has quit [Read error: Connection reset by peer]