TheAssassin has quit [Quit: No Ping reply in 180 seconds.]
TheAssassin has joined #openscad
howiemnt has joined #openscad
howiemnt1 has quit [Ping timeout: 260 seconds]
ccox has quit [Ping timeout: 272 seconds]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
ccox has joined #openscad
howiemnt has quit [Remote host closed the connection]
howiemnt has joined #openscad
J25k42 has quit [Quit: Client closed]
J25k42 has joined #openscad
howiemnt1 has joined #openscad
howiemnt has quit [Ping timeout: 276 seconds]
howiemnt has joined #openscad
howiemnt1 has quit [Ping timeout: 248 seconds]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
TheAssassin has quit [Remote host closed the connection]
L29Ah has joined #openscad
TheAssassin has joined #openscad
snaked has quit [Remote host closed the connection]
J25k42 has quit [Quit: Client closed]
J25k42 has joined #openscad
J25k42 has quit [Quit: Client closed]
J25k42 has joined #openscad
fling has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 264 seconds]
teepee_ is now known as teepee
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
GNUmoon has quit [Ping timeout: 264 seconds]
GNUmoon has joined #openscad
drfff has quit [Ping timeout: 244 seconds]
drfff has joined #openscad
deathonater has joined #openscad
Smeef has quit [Ping timeout: 252 seconds]
J25k42 has quit [Quit: Client closed]
J25k42 has joined #openscad
<dalias>
i'm getting segfaults in the form of a call to strlen(0) trying to export pngs from command line (but not in gui) right after debug output:
<dalias>
Camera: Camera()
<dalias>
Camera: Camera()
<dalias>
i know i should do a proper debug build but any ideas right off where i might should look?
<teepee>
what's the command line? any special flags?
<dalias>
happens with most basic
<dalias>
openscad -o foo.png foo.scad
<dalias>
i was using more options but took them off to test
<dalias>
it's a git snapshot made into a local distro package. updating that is a pain becuase i have to make hashes & refs for all the submodules to download to be built as a package
<dalias>
so i'll probably build a non-packaged version to debug if i need to, or edit the package to add -g
<dalias>
it's probably gonna be something stupid :/
<dalias>
the strlen call is direct from the openscad .text, not from any shared lib
<teepee>
no crash with some example file
<dalias>
any file does it
<dalias>
even empty or single-sphere test
<teepee>
both cube() and CSG example file are ok here
<dalias>
so it's something either about my build or about the snapshot version
<dalias>
not about the file contents
<teepee>
that's the package build, let me try a freshly built version
<dalias>
commit of my pkg is 39de7704dfe1a948dacb4fcef48f99fdcaf579ae
<teepee>
that's like 3 pages of commits in the past
<teepee>
and having older links to mimalloc, opencsg and manifold
<teepee>
well, lets see what that does anyway
<teepee>
no crash
<teepee>
lets see if release-mode makes a difference
<dalias>
oh i have an idea
<dalias>
ill read the disasm for adjacent calls thru the got..
<dalias>
then i can read the got entries to see what those calls are to
<dalias>
and that'll pinpoint where this code is from
<InPhase>
dalias: Step one. Please make sure you are doing a fully clean build.
<InPhase>
dalias: It either helps or it doesn't, but this is so much faster than a long chase through the code for mysterious problems. Incremental builds will segfault rarely, but just often enough that this is worth doing as a step one anytime you hit this scenario.
<InPhase>
Especially for a "how is this not happening for everyone?" segfault. :)
<InPhase>
In the meantime, I'll do a pull and clean build myself to check on my end.
<teepee>
no crash in release mode
<InPhase>
My cube worked with no crash.
<InPhase>
That's a 2 month old commit though. Not sure if it's worth even trying to downgrade to that. If there's a bug fixed since then, we should just move past it. :)