Debuguer un programme

jb_jb_fr

Membre confirmé
11 Septembre 2006
62
3
Marcoussis
Bonjour

J'ai fait un petit programme de compta que j'ai diffusé sur MacUpdate.
Et j'ai eu 2 retours qui me pose un probleme :(

Les utilisateurs m'ont dit que le programme plante au démarrage.
L'un des deux m'a meme envoyé le rapport.

Mon probleme est que chez moi ca ne plante pas du tout. Comment je peux debuguer?
Je n'arrive pas à reproduire la chose. Donc du coup j'ai du mal a voir ce qui ne va pas.

Merci pour toutes aide que vous pourrez m'apporter.

JB
 
poste le rapport de bug... ça évoquera peut-être quelque chose à quelqu'un!
 
Hello

poste le rapport de bug... ça évoquera peut-être quelque chose à quelqu'un!

Host Name: marco-thills-power-mac-g5
Date/Time: 2007-01-18 15:13:28.785 +0100
OS Version: 10.4.8 (Build 8L127)
Report Version: 4

Command: compteCCP
Path: /Applications/Apps/Office Apps/compteCCP 1.0 ƒ/compteCCP.app/
Contents/MacOS/compteCCP
Parent: WindowServer [61]

Version: ??? (1.0)

PID: 321
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 <<00000000>> 0x00000000 0 + 0
1 compteCCP 0x00001ce0 start + 48

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000000000000 srr1:
0x100000004200f030 vrsave: 0x0000000000000000
cr: 0x42000402 xer: 0x0000000000000000 lr:
0x0000000000001fdc ctr: 0x0000000000000000
r0: 0x0000000000001fdc r1: 0x00000000bffffc00 r2:
0x00000000a0001fac r3: 0x0000000000000002
r4: 0x00000000bffffcdc r5: 0x00000000bffffce8 r6:
0x000000000000037c r7: 0x000000000000037c
r8: 0x000000000000037d r9: 0x0000000000000000 r10:
0x0000000090001520 r11: 0x00000000a00061ec
r12: 0x0000000000000000 r13: 0x0000000000000000 r14:
0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000000 r17: 0x0000000000000000 r18:
0x0000000000000000 r19: 0x0000000000000000
r20: 0x0000000000000000 r21: 0x0000000000000000 r22:
0x0000000000000000 r23: 0x0000000000000000
r24: 0x0000000000000000 r25: 0x0000000000000002 r26:
0x00000000bffffd04 r27: 0x00000000bffffce8
r28: 0x00000000bffffcdc r29: 0x000000000000a2fc r30:
0x0000000000000047 r31: 0x0000000000000024

Binary Images Description:
0x1000 - 0xafff compteCCP ??? (1.0) /Applications/Apps/
Office Apps/compteCCP 1.0 ƒ/compteCCP.app/Contents/MacOS/compteCCP
0x8fe00000 - 0x8fe51fff dyld 45.3 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/
libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.2 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/
Versions/A/ATS
0x90373000 - 0x9072dfff com.apple.CoreGraphics 1.258.38 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6 (368.27) /
System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundation
0x908dc000 - 0x908dcfff com.apple.CoreServices 10.4 (???) /System/
Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90ae8000 - 0x90b5afff com.apple.framework.IOKit 1.4 (???) /System/
Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.7 /
System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1 /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
OSServices.framework/Versions/A/OSServices
0x90f90000 - 0x90fd1fff com.apple.CFNetwork 4.0 (129.19) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
CFNetwork.framework/Versions/A/CFNetwork
0x90fe6000 - 0x90ffefff com.apple.WebServices 1.1.2 (1.1.0) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
WebServicesCore.framework/Versions/A/WebServicesCore
0x9100e000 - 0x9108ffff com.apple.SearchKit 1.0.5 /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
SearchKit.framework/Versions/A/SearchKit
0x910d5000 - 0x910fefff com.apple.Metadata 10.4.4 (121.36) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
Metadata.framework/Versions/A/Metadata
0x9110f000 - 0x9111dfff libz.1.dylib /usr/lib/libz.1.dylib
0x91120000 - 0x912dbfff com.apple.security 4.6 (29770) /System/
Library/Frameworks/Security.framework/Versions/A/Security
0x913da000 - 0x913e3fff com.apple.DiskArbitration 2.1 /System/Library/
Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ea000 - 0x91412fff com.apple.SystemConfiguration 1.8.3 /System/
Library/Frameworks/SystemConfiguration.framework/Versions/A/
SystemConfiguration
0x91425000 - 0x91430fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91435000 - 0x9143dfff libbsm.dylib /usr/lib/libbsm.dylib
0x91441000 - 0x914bcfff com.apple.audio.CoreAudio 3.0.4 /System/
Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914f9000 - 0x914f9fff com.apple.ApplicationServices 10.4 (???) /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
ApplicationServices
0x914fb000 - 0x91533fff com.apple.AE 1.5 (297) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
AE.framework/Versions/A/AE
0x9154e000 - 0x9161bfff com.apple.ColorSync 4.4.4 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
ColorSync.framework/Versions/A/ColorSync
0x91670000 - 0x91701fff com.apple.print.framework.PrintCore 4.6
(177.13) /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91748000 - 0x917fffff com.apple.QD 3.10.21 (???) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
QD.framework/Versions/A/QD
0x9183c000 - 0x9189afff com.apple.HIServices 1.5.3 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/HIServices.framework/Versions/A/HIServices
0x918c9000 - 0x918eafff com.apple.LangAnalysis 1.6.1 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LangAnalysis.framework/Versions/A/LangAnalysis
0x918fe000 - 0x91923fff com.apple.FindByContent 1.5 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
FindByContent.framework/Versions/A/FindByContent
0x91936000 - 0x91978fff com.apple.LaunchServices 181 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/LaunchServices
0x91994000 - 0x919a8fff com.apple.speech.synthesis.framework 3.3 /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919b6000 - 0x919f8fff com.apple.ImageIO.framework 1.5.0 /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a0e000 - 0x91ad5fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.
0.9.7.dylib
0x91b23000 - 0x91b38fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b3d000 - 0x91b5bfff libJPEG.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJPEG.dylib
0x91b61000 - 0x91bd0fff libJP2.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJP2.dylib
0x91be7000 - 0x91bebfff libGIF.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libGIF.dylib
0x91bed000 - 0x91c4cfff libRaw.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRaw.dylib
0x91c51000 - 0x91c8efff libTIFF.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libTIFF.dylib
0x91c95000 - 0x91caefff libPng.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libPng.dylib
0x91cb3000 - 0x91cb6fff libRadiance.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRadiance.dylib
0x91cb8000 - 0x91cb8fff com.apple.Accelerate 1.2.2 (Accelerate
1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Accelerate
0x91cba000 - 0x91d9ffff com.apple.vImage 2.4 /System/Library/
Frameworks/Accelerate.framework/Versions/A/Frameworks/
vImage.framework/Versions/A/vImage
0x91da7000 - 0x91dc6fff com.apple.Accelerate.vecLib 3.2.2 (vecLib
3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Frameworks/vecLib.framework/Versions/A/vecLib
0x91e32000 - 0x91ea0fff libvMisc.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvMisc.dylib
0x91eab000 - 0x91f40fff libvDSP.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvDSP.dylib
0x91f5a000 - 0x924e2fff libBLAS.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libBLAS.dylib
0x92515000 - 0x92840fff libLAPACK.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libLAPACK.dylib
0x92870000 - 0x928f8fff com.apple.DesktopServices 1.3.5 /System/
Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/
DesktopServicesPriv
0x92939000 - 0x92b64fff com.apple.Foundation 6.4.6 (567.27) /System/
Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92c82000 - 0x92d60fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x92d80000 - 0x92e6efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92e80000 - 0x92e9efff libGL.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92ea9000 - 0x92f03fff libGLU.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92f4f000 - 0x92f5ffff com.apple.speech.recognition.framework 3.4 /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
SpeechRecognition.framework/Versions/A/SpeechRecognition
0x931b8000 - 0x931d5fff com.apple.audio.SoundManager 3.9 /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CarbonSound.framework/Versions/A/CarbonSound
0x931fd000 - 0x9350afff com.apple.HIToolbox 1.4.8 (???) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
0x93659000 - 0x93665fff com.apple.opengl 1.4.7 /System/Library/
Frameworks/OpenGL.framework/Versions/A/OpenGL
0x936fe000 - 0x936fefff com.apple.Cocoa 6.4 (???) /System/Library/
Frameworks/Cocoa.framework/Versions/A/Cocoa
0x93700000 - 0x93d33fff com.apple.AppKit 6.4.7 (824.41) /System/
Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x940c0000 - 0x94130fff com.apple.CoreData 80 /System/Library/
Frameworks/CoreData.framework/Versions/A/CoreData
0x94169000 - 0x9422cfff com.apple.audio.toolbox.AudioToolbox 1.4.3 /
System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9427e000 - 0x9427efff com.apple.audio.units.AudioUnit 1.4 /System/
Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x94280000 - 0x94453fff com.apple.QuartzCore 1.4.9 /System/Library/
Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x944a9000 - 0x944e6fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x944ee000 - 0x9453efff libGLImage.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x96a8e000 - 0x96a8ffff com.apple.zerolink 1.2 (3) /System/Library/
PrivateFrameworks/ZeroLink.framework/Versions/A/ZeroLink

Et file ce soft par mp si tu veux qu'on teste aussi ? j'ai backupé j'ai peur de rien :D

Voila le lien sur le soft : http://brigaudj.perso.cegetel.net/compteCCP/compteCCP_v10.dmg

Jacques
 
Alors voil&#224;, d&#233;j&#224; le binaire de compteCCP/content/MacOS/compteCCP apparait comme un simple doc et non un ex&#233;, puis si je le lance via le terminal j'ai &#231;a :

macgse-serveur:~ bob$ sudo /Users/bob/Desktop/compteCCP.app/Contents/MacOS/compteCCP
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/main.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPData.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPDataView.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPpreference.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPDataSaisie.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPlibelle.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPposte.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPnumero.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPMainMenu.ob
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/CCPMainMenuParam.ob
Bus error


Tu n'aurais pas merd&#233; un peu en compilant pour le d&#233;ploiement, genre des trucs li&#233;s ? pasque bon l&#224; il cherche manifestement des fichiers &#224; charger sur ton disque :D
 
Alors voilà, déjà le binaire de compteCCP/content/MacOS/compteCCP apparait comme un simple doc et non un exé, puis si je le lance via le terminal j'ai ça :

macgse-serveur:~ bob$ sudo /Users/bob/Desktop/compteCCP.app/Contents/MacOS/compteCCP
ZeroLink: could not load .o file: /Volumes/RamDisk 4/Builds/Intermediates/compteCCP.build/Development/compteCCP.build/Objects-normal/ppc/main.ob
........

Tu n'aurais pas merdé un peu en compilant pour le déploiement, genre des trucs liés ? pasque bon là il cherche manifestement des fichiers à charger sur ton disque :D

Oh merde!!! :eek:
C'est ce foutue ram disque qui me fou la grouille.
Bon je vais essayer de regler ce PB dans le projet.
Car je pense que mon projet est TRES mal réglé!:rose:

Merci en tout cas pour m'avoir trouver la raison du bug.

Jacques