crash report - anyone help?

BlitzMax Forums/BlitzMax Programming/crash report - anyone help?

AdamStrange(Posted 2015) [#1]
OK, This is on a mac

Just got a repeated crash. compiles, then attempts to run and I get the following (unhelpful) dialog 'xxxx quit unexpectedly'

The top of the report is:
Process:               mood [33873]
Path:                  /Users/USER/Documents/*/mood.app/Contents/MacOS/mood
Identifier:            mood
Version:               0
Code Type:             X86 (Native)
Parent Process:        bmk [33856]
Responsible:           MaxIDE CE [33221]
User ID:               502

Date/Time:             2015-09-11 08:40:04.521 +0100
OS Version:            Mac OS X 10.10.5 (14F27)
Report Version:        11
Anonymous UUID:        D2FC3FB8-2F7D-F0D0-3F12-5038E3B0DC32

Sleep/Wake UUID:       A6AF13FB-983B-4265-903C-231B2853C1DE

Time Awake Since Boot: 77000 seconds
Time Since Wake:       9600 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000073657266

VM Regions Near 0x73657266:
    MALLOC_LARGE           000000000494c000-00000000049ca000 [  504K] rw-/rwx SM=PRV  
--> 
    MALLOC_TINY            000000007be00000-000000007bf00000 [ 1024K] rw-/rwx SM=COW  

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                           	0x73657266 0 + 1936028262
1   mood                          	0x0034c17f _brl_stream_TStreamWrapper_WriteByte + 27
2   mood                          	0x0034577b _brl_textstream_TTextStream__WriteByte + 24
3   mood                          	0x003455d0 313 + 29
4   mood                          	0x00345423 19 + 24
5   mood                          	0x00345324 _brl_textstream_TTextStream_WriteLine + 44
6   mood                          	0x00344bdd brl_standardio_Print + 29
7   mood                          	0x001ee04d bb_SetSeed + 84
8   mood                          	0x001ee0c8 _bb_TStaticRand_Init + 23
9   mood                          	0x00172053 1636 + 21
10  mood                          	0x0015f381 577 + 30
11  mood                          	0x0015e144 194 + 20
12  mood                          	0x0012c93c 219 + 25
13  mood                          	0x001251ee 1299 + 20
14  mood                          	0x0010d949 1262 + 35
15  mood                          	0x000e453f 602 + 20
16  mood                          	0x000e3ec0 4 + 20
17  mood                          	0x000e44fe run + 78
18  mood                          	0x000e40ab -[BlitzMaxAppDelegate applicationDidFinishLaunching:] + 267
19  com.apple.Foundation  


Which sort of looks like a memory issue with Max itself. Anyone know how I can trap or trace into and find a solution for this?


Brucey(Posted 2015) [#2]
Try rebuilding *everything*


AdamStrange(Posted 2015) [#3]
Thanks Brucey, I'll just do that and report :)


AdamStrange(Posted 2015) [#4]
mmm, not quite - I was trying to modify bmk and when reinstalled the original files - it all worked fine ;/

What are the best steps to recompile bmk in your opinion?
(I was trying to do the mod to allow BlitzMax to work on El Capitan)


Brucey(Posted 2015) [#5]
I was trying to modify bmk and when reinstalled the original files

Ah, you failed to mention that useful snippet of information in your original post :-p

What are you changing, exactly?


AdamStrange(Posted 2015) [#6]
ah ok.

I was following the advice here:
http://www.blitzbasic.com/Community/posts.php?topic=104728

about changing the bmk lines:
Line 154:    opts:+" -mmacosx-version-min=10.9"
Line 263:    cmd:+" -mmacosx-version-min=10.9"


What I did was use the src folder, edit the bmkutilities file, compile and copy the resulting files into the bin folder

I probably did something stooopid?


Brucey(Posted 2015) [#7]
Yeah, that should probably be fine.

You could always try a build with no changes and see if that breaks too...


I've currently got my bmk_ng set to use min 10.5 for OSX version >= 10.8, which works fine for 10.10.
I suppose I may need to add another line in the script to support 10.11+, although I can't see why it wouldn't support a reasonable number there.


xlsior(Posted 2015) [#8]
although I can't see why it wouldn't support a reasonable number there.


Have you ever used any of Apple's products, ever?

:-?


Brucey(Posted 2015) [#9]
No ?

But I am trying to be helpful :-p