logs archiveBotHelp.net / Freenode / #ada / 2015 / July / 17 / 5
Guest89543
run under gdb and rummage around when it gets the signal
sigsegv
Natacha
I don't really feel capable of debugging valgrind...
Lucretia
charlie5, Visaoni: yeah, indies ar doing better but it still takes a long time and money and a lot are still not making any money, http://www.greenheartgames.com/2013/04/29/what-happens-when-pirates-play-a-game-development-simulator-and-then-go-bankrupt-because-of-piracy/ (from https://www.reddit.com/r/IndieGaming)
charlie5: if you want gameart, people post in r/gameassets on reddit
marino_
Lucretia: i tend to think you are right. or at least anythink the bolts llvm on will have to be gplv3 itself
the comparison with plugins is a good one I think
Lucretia
yeah, that simon wright, I think is a bit thick as he just doesn't get it
Guest89543
Natacha: I meant, run your program under gdb
Lucretia
marino_: I mean, it's there in black and white
so for gnat to be put onto llvm and still have a viable free runtime, the runtime needs to be rewritten
Natacha
Guest89543, oh, then I don't see the point, either it works fine and I have no profiling data, or it SIGSEGV at the point as the coredump
Guest89543
Natacha: it shouldn't core dump, the signal should be converted into an exception by the Ada runtime. In your stack trace above you see that the runtime is trying to turn it into an exception
Natacha
I do have that, it's the task init
Guest89543
Natacha: by running in gdb you will discover the origin of the signal, which is earlier than the above core dump
Natacha: what platform are you on and what compiler?
Natacha
thread_start(), calling system.tasking.stages.task_wrapper, calling pthread_setspecific(), calling calloc(), triggering signal
FreeBSD, with gcc-aux 4.9.2
Guest89543
that looks a lot like it trying to allocate the stack for the task
and just running out of memory
how big is the amount passed to calloc?
what processor family?
charlie5
hey luke ... gotta few days off ? ... (w/e(
)
Natacha
amd64
I don't seem to reach within calloc() part though
charlie5
heya Guest89543 .... do you think that swig thing is worth plugging along with ?
Guest89543
charlie5: I never found it useful personally, but that makes for a very small sample size :)
Natacha
but I thought out-of-memory was supposed to make calloc return NULL, not trigger a signal
charlie5
lol
Guest89543
or rather, it was useful maybe once
Natacha: correct, but probably the runtime then tries to dereference the result, at which point you get the signal
charlie5
Guest89543: you were the only sample size ... bar one
Guest89543
so I'd expect the signal to occur shortly after the calloc
Natacha
but if it's trying to dereference a returned-NULL, then calloc is no longer un the stack frame
here calloc hasn't returned yet
Guest89543
check the disassembler to see what it's doing
if you built with optimization then the back trace might be a bit misleading
disassembly
Natacha
I don't have a debug version of libphtread
charlie5
balders, still doing ada mostly ?
Natacha
(it's a calloc() called by pthread_setspecific())
charlie5
Guest89543: nm, can't imagine you swithing to java
Guest89543
I can't imagine it either :)
still mostly Ada
a little bit of python
charlie5
Natacha: bsd ?
Natacha
yes
charlie5
marino_ is probly the man to ask
mm, python seems museful to know
-m
Natacha
(Action) hates duck typing
Guest89543
python sucks in many ways, but it is good for small scripts and such like
charlie5
(Action) hates duck taping
Guest89543
(Action) is with Natacha
specing
quack
python is never a good choice for small scripts
why? because they always grow big
Guest89543
Natacha: I think you are going to have to poke around in the assembler to understand what is going on
specing: mine haven't so far :)
but I hear what you are saying
Natacha
I admit using python for one-liners, but I don't put them to disk to ensure they won't grow big
having to type stuff is a good way of ensuring non-bigness
charlie5
with ada.Script; use ada.Script;
specing
charlie5: SparForte?
charlie5
yes, bash scripts/etc have slighty easier syntax .. but given a decent ada.OS or ada.Script pkg then ada 'script' becomes easier ... doesn't it ?
specing
try splitting stuff into subfunction with bash
oh the horror
charlie5
.. and who really cares if you have to compile tonce ? ... (all of 2 secs)
-t
specing: heh, you lost me with SparForte
specing
charlie5: why?
charlie5
(Action) 's use of bash (or any shell script) boils down to what i type to often in a term/get sick of it/and finallly do a script
to -> too
specing
(Action) does 1000-line bash scripts
charlie5
(Action) faints
specing
my latest one like 200 lines
with associative arrays
and whatnot
charlie5
(Action) goes from faint to coma
(Action) hopes specing gets paind a fortune
um, piad
specing
nope, these are for my own stuff
<- student
charlie5
('paind' was an honest typo)
student ?!
specing
I still have no idea how Im supposed to get experience lol
(for jobs)
charlie5
stay here :)
you going for ada jobs ?
specing
there is a system in place that makes student work cheap
charlie5
yeah, i'm not surprised
specing
but it is impossible to work and actually study
near everyone I know that works has flunked
well 'flunked'... repeating a year
charlie5
study thru net. maybe ... no adivce re work, sorry :/
specing
I have no idea what jobs I'll be hunting
digital design is interesting
ada is interesting, though the most experience I have with Ada is chatting here
charlie5
glug
« prev 1 2 3 4 5 6 7 8 9 10 11 next »