Page 2 of 2

Re: FreeBSD and expat

Posted: Tue Aug 24, 2010 10:41 pm
by segfault
How do I feed the "./configure <your other parameters> --enable-debug" equivalent option when using cmake?

Re: FreeBSD and expat

Posted: Wed Aug 25, 2010 3:19 am
by klauss
"ccmake" shows a few options. In build type, you can type either RelWithDebInfo (which is release with debugging symbols, harder to debug but optimized and performant) or, preferrably, just Debug.

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 12:24 am
by segfault
alright it seems to just lock up whenever a crash occurs while debugging and I have to restart X. Not sure what to do about that.
I will keep fiddling with it and see if I can come up with some useful data.

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 12:29 am
by klauss
You can't debug in full screen - just in case you're trying ;)

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 2:10 am
by segfault
Ahh good to know!

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 2:42 am
by segfault
Aha I got it to crash in window mode.
Console output:

Code: Select all

*** still no contingency
import cargo_mission
temp=cargo_mission.cargo_mission('klkk', 0, 12, 2, 7280, 0, 0, 'Industrially_Manufactured_Goods/Agricultural', ['Crucible/Cephid_17', 'Crucible/Everett'], '')
temp=0
warning: Unknown tag: python
It wasnt found Hydroponics
Assumed exit on unit quadshield05(if not quitting, report error)
Assumed exit on unit quadshield10(if not quitting, report error)
Assumed exit on unit quadshield09(if not quitting, report error)
Assumed exit on unit quadshield08(if not quitting, report error)
Assumed exit on unit quadshield02(if not quitting, report error)
Assumed exit on unit quadshield09(if not quitting, report error)
Assumed exit on unit quadshield10(if not quitting, report error)
Assumed exit on unit quadshield05(if not quitting, report error)
Assumed exit on unit quadshield07(if not quitting, report error)
Assumed exit on unit quadshield05(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit stormfire(if not quitting, report error)
Assumed exit on unit razor_gun(if not quitting, report error)
Assumed exit on unit leech_gun(if not quitting, report error)
Assumed exit on unit Shield_Breaker(if not quitting, report error)
Assumed exit on unit tractor_heavy(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)
Unit file Basic Repair not found
Assumed exit on unit LOAD_FAILED(if not quitting, report error)
Assumed exit on unit laser(if not quitting, report error)

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 2b67e640 (LWP 100175)]
0x28cce545 in _alMixSources () from /usr/local/lib/libopenal.so.0
(gdb) 
Still got the gdb session open, let me know if you want something specific inspected.

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 2:52 am
by klauss
"bt" or "where" shows you a backtrace telling you specifically where the error happened.

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 2:59 am
by segfault

Code: Select all

#0  0x28cce545 in _alMixSources () from /usr/local/lib/libopenal.so.0
#1  0x0000401c in ?? ()
#2  0x2b67e640 in ?? ()
#3  0xbf9fefe8 in ?? ()
#4  0x28d6937e in pthread_mutex_lock () from /lib/libthr.so.3

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 3:24 am
by klauss
That's not very useful :(

Is it happening perhaps in OpenAL?

Why don't you try disabling all sound and music?

Re: FreeBSD and expat

Posted: Thu Aug 26, 2010 4:34 am
by segfault
Also realized that my xscreensaver seemed to be causing crashes perhaps (it was set to kick on after just 1min) and when it tried to take over the screen VS would fight it.
Disabled sound as perscribed as well.

So far so good. Can't seem to get it to crash any longer.
Will keep trying :wink:

Re: FreeBSD and expat

Posted: Fri Sep 03, 2010 7:07 pm
by segfault
Have not been able to cause a crash for over a week now. I think the remaining issue (regarding sound) can be differed to another thread to come.
Can this thread be renamed? i am wondering if it would better serve the community if it was named something more generic like "Issues compiling under FreeBSD".

Thanks again for the help.

Re: FreeBSD and expat

Posted: Fri Sep 03, 2010 7:22 pm
by klauss
I believe you can rename it (just edit your opening post)