Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Macs need better crash logs #1601

Open
wzdev-ci opened this issue Feb 16, 2010 · 7 comments
Open

Macs need better crash logs #1601

wzdev-ci opened this issue Feb 16, 2010 · 7 comments

Comments

@wzdev-ci
Copy link
Contributor

keyword_log_crash type_task | by dak180


The following are some links that may help with this.

http://briksoftware.com/blog/?p=58

http://blogs.embarcadero.com/eboling/2009/11/10/5628

http://www.brianweb.net/misc/mach_exceptions_demo.c


Issue migrated from trac:1601 at 2022-04-15 21:07:08 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 8, 2010

Buginator commented


Here is a example of the crashlog that we need the mac's to look like.

http://developer.wz2100.net/attachment/ticket/2242/warzone2100.gdmp-dCeF0K

Program: Downloads/warzone2100-pre-3.0-1/src/warzone2100(warzone2100)
2	Command line: "Downloads/warzone2100-pre-3.0-1/src/warzone2100"
3	Version: Version pre-3.0-1 - DEBUG
4	Distributor: UNKNOWN
5	Compiled on: Oct 19 2010 14:53:04
6	Compiled by: GCC 4.4.3
7	Compiled mode: Debug build
8	Executed on: Tue Oct 19 15:25:38 2010
9	Operating system: Linux
10	Node name: linux-toshiba-laptop
11	Release: 2.6.35-020635rc1-generic
12	Version: #020635rc1 SMP Tue Jun 1 17:27:30 UTC 2010
13	Machine: x86_64
14	
15	Pointers: 64bit
16	
17	Compiled against PhysicsFS version: 2.0.0
18	Running with PhysicsFS version: 2.0.0
19	
20	Misc Data:
21	[15:25:38]OpenGL Vendor : NVIDIA Corporation
22	[15:25:38]OpenGL Renderer : GeForce 310M/PCI/SSE2
23	[15:25:38]OpenGL Version : 3.2.0 NVIDIA 195.36.24
24	[15:25:38]Video Mode 1366 x 686 (32 bpp) (window)
25	[15:25:38]OpenGL GLSL Version : 1.50 NVIDIA via Cg compiler
26	[15:25:39]OpenAL Vendor: OpenAL Community
27	[15:25:39]OpenAL Version: 1.1 ALSOFT 1.12.854
28	[15:25:39]OpenAL Renderer: OpenAL Soft
29	[15:25:39]OpenAL Extensions: AL_EXTX_buffer_sub_data AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_mode
30	[15:25:39]Using language: System locale
31	[15:25:48]Current Level/map is Sk-Rush
32	
33	Dump caused by signal: SIGSEGV: Invalid memory reference: Address not mapped to object

All that is missing from mac's current crash reports.
Showing the local vars would also be very nice to have.

Something like:


201	#4  0x00000000005e51c1 in checkFireLine (psViewer=0x0, psTarget=0x374e9b0,
202	    weapon_slot=0, wallsBlock=true, direct=true) at visibility.c:981
203	        pos # {x 0, y # 1091648016, z 58302944}
204	        dest # {x 0, y # 1091648016, z 1913437062}
205	        start # {x 38, y = 0}
206	        diff # {x 0, y = 0}
207	        current # {x 7049402, y = 0}
208	        halfway # {x -32, y = 3}
209	        next # {x 394814064, y = 32767}
210	        part # {x 394814048, y = 32767}
211	        muzzle # {x 8.81331181e-25, y # 4.59163468e-41, z 8.09112256e-39}
212	        distSq = 4787515
213	        partSq = 32767
214	        oldPartSq = 394813888
215	        angletan = 4.4561911614717309e-313
216	        __FUNCTION__ = "checkFireLine"

:)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 9, 2010

dak180 commented


Replying to Warzone2100/old-trac-import#1601 (comment:2):

Here is a example of the crashlog that we need the mac's to look like.

http://developer.wz2100.net/attachment/ticket/2242/warzone2100.gdmp-dCeF0K

Program: Downloads/warzone2100-pre-3.0-1/src/warzone2100(warzone2100)
2	Command line: "Downloads/warzone2100-pre-3.0-1/src/warzone2100"
3	Version: Version pre-3.0-1 - DEBUG
4	Distributor: UNKNOWN
5	Compiled on: Oct 19 2010 14:53:04
6	Compiled by: GCC 4.4.3
7	Compiled mode: Debug build
8	Executed on: Tue Oct 19 15:25:38 2010
9	Operating system: Linux
10	Node name: linux-toshiba-laptop
11	Release: 2.6.35-020635rc1-generic
12	Version: #020635rc1 SMP Tue Jun 1 17:27:30 UTC 2010
13	Machine: x86_64
14	
15	Pointers: 64bit
16	
17	Compiled against PhysicsFS version: 2.0.0
18	Running with PhysicsFS version: 2.0.0
19	
20	Misc Data:
21	[15:25:38]OpenGL Vendor : NVIDIA Corporation
22	[15:25:38]OpenGL Renderer : GeForce 310M/PCI/SSE2
23	[15:25:38]OpenGL Version : 3.2.0 NVIDIA 195.36.24
24	[15:25:38]Video Mode 1366 x 686 (32 bpp) (window)
25	[15:25:38]OpenGL GLSL Version : 1.50 NVIDIA via Cg compiler
26	[15:25:39]OpenAL Vendor: OpenAL Community
27	[15:25:39]OpenAL Version: 1.1 ALSOFT 1.12.854
28	[15:25:39]OpenAL Renderer: OpenAL Soft
29	[15:25:39]OpenAL Extensions: AL_EXTX_buffer_sub_data AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_mode
30	[15:25:39]Using language: System locale
31	[15:25:48]Current Level/map is Sk-Rush
32	
33	Dump caused by signal: SIGSEGV: Invalid memory reference: Address not mapped to object

All that is missing from mac's current crash reports.

Actually all that (except for the language and the map name) is already in the report.

The local vars though are missing.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 9, 2010

Buginator commented


Replying to Warzone2100/old-trac-import#1601 (comment:3):

All that is missing from mac's current crash reports.

Actually all that (except for the language and the map name) is already in the report.

The local vars though are missing.

All the stuff after Misc Data: (which is what we add to all the crash dumps), and I don't recall if we know show if the Mac build is a release / debug build, or the Distributor is mentioned.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 9, 2010

dak180 commented


Replying to Warzone2100/old-trac-import#1601 (comment:4):

All the stuff after Misc Data: (which is what we add to all the crash dumps), and I don't recall if we know show if the Mac build is a release / debug build, or the Distributor is mentioned.
For the Misc Data, the only things that you cannot get from the crash reports is Video Mode, language and Current Level/map; the rest is there at the bottom (though I have seen people cut it out of the report they send in but there is no good fix for that).

There is no mention of a distributor in the mac reports (but is that something we really need?); as for saying if it is a debug build or not, currently it does not, but I could add a note to the version string for debug builds if you like.

@wzdev-ci
Copy link
Contributor Author

dak180 commented


Just found this; it may prove useful.

@wzdev-ci
Copy link
Contributor Author

vexed changed type from to-do (no feature requests!) to task

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant