Discussion:
Need help: Loading LDD in textshell console crash
Arnaud Lenoir
2010-11-24 00:35:13 UTC
Permalink
Hi All,



Just wanted to know if someone in the wild Ducks community could help us to
resolve a crash we have, just in case you have seen the problem yourself.



We have created a test program to run on BeagleBoard in textshell mode.



When we try to load the LDD driver using the function
“User::LoadLogicalDevice()“ we get a crash it seems in the function “*
DObject::AppendName*” following the use of the function “SetName()” called
from the function “Install()” which is the virtual function defined from
the derived class based on the “DLogicalDevice” class.



Also, it seems that if you remove the SetName function, you still get the
crash even when the function Install is empty.



Here is the information we get from the crash where you will see that
“R15=00008198” is pointing to somewhere where is no code???:

“

MODE_USR:

R0=c80affb8 R1=c9117ed8 R2=00008198 R3=00000000

R4=c80affb8 R5=c9117ed8 R6=8005600c R7=800574cc

R8=c8090080 R9=c9117ed8 R10=c8090148 R11=00000010

R12=00000000 R13=00419c98 R14=80170e91 R15=00008198

CPSR=68000113

MODE_FIQ:

R8=b51c3d00 R9=ffffffff R10=00000004 R11=00000002

R12=81001bcc R13=c003c000 R14=81000960 SPSR=00000000

MODE_IRQ:

R13=c003a000 R14=00000000 SPSR=28000113

MODE_SVC:

R13=c9117eb8 R14=80055fcc SPSR=00000010

MODE_ABT:

R13=c003fc00 R14=00008198 SPSR=68000113

MODE_UND:

R13=c003e000 R14=9000005d SPSR=00000000

TEEHBR=00000000 CPACR=00000000

SCTLR=30c5387f ACTLR=00000072 PRRR=000a00a4 NMRR=00400040

DACR=00000001 TTBR0=800fe018 TTBR1=80000018 TTBCR=00000001

VBAR=00014000 FCSEID=00000000 CTXIDR=202a5e01

Thread ID RWRW=00419fd0 RWRO=00000000 RWNO=00000000

DFSR=00000000 DFAR=00000000 IFSR=00000005 IFAR=00008198

ADFSR=00000000 AIFSR=00000000

ExcCode 00000000

FAULPassword:

Password: replacement

”



Looking on the forum, there is a mention about the error “Fault Category:
Exception Fault Reason: 10000000” here:
http://developer.symbian.org/forum/showthread.php?t=7621.



I have attached a file with more info about the information collected with
the crash debugger.



Any ideas of what is the problem? Any help / advice is welcome.



Also, if you know any test program loading a LDD that you know is currently
working in a textshell on Beagleboard and that we could use to compare with
the test program we are trying to execute will be helpful?



Best regards,

Arnaud



======================================================================

Arnaud Lenoir

Features Integration Lead



Email: arnaudl-***@public.gmane.org

Mobile: +44 (0)777 137 6859

Skype: arnaudl.symbian

Twitter: arnaudlsymbian

Fax: +44 (0)207 183 6100



Symbian Foundation Ltd

1 Boundary Row

Southwark

London SE1 8HP

UK



www.symbian.org



Have fun with Wild Ducks <http://tiny.symbian.org/wildducks>


Some facts about Symbian that we are legally obliged to tell you:
Symbian Foundation Limited is a Company Limited by Guarantee and not having Share Capital
We're registered in England and Wales - Companies House knows us by the number 6683783
Our address is 1 Boundary Row, Southwark, London SE1 8HP.
George Norton
2010-11-24 08:39:01 UTC
Permalink
You have a data abort because you are trying to execute code at a
garbage address. This might happen for example, if you have a bad
pointer to a C++ object and you try to call a virtual function on it.

What does the definition of NUSBDriver::KLDDriverName look like?
Can you print out the address of KLDDriverName before calling SetName
(Kern::Printf("Name is at 0x%08x", &NUSBDriver::KLDDriverName);)

Also, can you post decoded crashlogs? Or at least a valid set of
symbol files for your ROM? An undecoded crashlog isn't much more than
a load of random hex numbers.

Thanks,

George
Post by Arnaud Lenoir
Hi All,
Just wanted to know if someone in the wild Ducks community could help us to resolve a crash we have, just in case you have seen the problem yourself.
We have created a test program to run on BeagleBoard in textshell mode.
When we try to load the LDD driver using the function “User::LoadLogicalDevice()“ we get a crash it seems in the function “DObject::AppendName” following the use of the function “SetName()” called from the function “Install()”  which is the virtual function defined from the derived class based on the “DLogicalDevice” class.
Also, it seems that if you remove the SetName function, you still get the crash even when the function Install is empty.

 R0=c80affb8  R1=c9117ed8  R2=00008198  R3=00000000
 R4=c80affb8  R5=c9117ed8  R6=8005600c  R7=800574cc
 R8=c8090080  R9=c9117ed8 R10=c8090148 R11=00000010
R12=00000000 R13=00419c98 R14=80170e91 R15=00008198
CPSR=68000113
 R8=b51c3d00  R9=ffffffff R10=00000004 R11=00000002
R12=81001bcc R13=c003c000 R14=81000960 SPSR=00000000
R13=c003a000 R14=00000000 SPSR=28000113
R13=c9117eb8 R14=80055fcc SPSR=00000010
R13=c003fc00 R14=00008198 SPSR=68000113
R13=c003e000 R14=9000005d SPSR=00000000
TEEHBR=00000000  CPACR=00000000
 SCTLR=30c5387f  ACTLR=00000072   PRRR=000a00a4   NMRR=00400040
  DACR=00000001  TTBR0=800fe018  TTBR1=80000018  TTBCR=00000001
  VBAR=00014000 FCSEID=00000000 CTXIDR=202a5e01
Thread ID     RWRW=00419fd0   RWRO=00000000   RWNO=00000000
  DFSR=00000000   DFAR=00000000   IFSR=00000005   IFAR=00008198
 ADFSR=00000000              AIFSR=00000000
ExcCode 00000000
Password: replacement

Looking on the forum, there is a mention about the error “Fault Category: Exception  Fault Reason: 10000000” here: http://developer.symbian.org/forum/showthread.php?t=7621.
I have attached a file with more info about the information collected with the crash debugger.
Any ideas of what is the problem? Any help / advice is welcome.
Also, if you know any test program loading a LDD that you know is currently working in a textshell on Beagleboard and that we could use to compare with the test program we are trying to execute will be helpful?
Best regards,
Arnaud
======================================================================
Arnaud Lenoir
Features Integration Lead
Mobile: +44 (0)777 137 6859
Skype: arnaudl.symbian
Twitter: arnaudlsymbian
Fax: +44 (0)207 183 6100
Symbian Foundation Ltd
1 Boundary Row
Southwark
London SE1 8HP
UK
www.symbian.org
Have fun with Wild Ducks
Symbian Foundation Limited is a Company Limited by Guarantee and not having Share Capital
We're registered in England and Wales - Companies House knows us by the number 6683783
Our address is 1 Boundary Row, Southwark, London SE1 8HP.
_______________________________________________
Wild-ducks mailing list
http://developer.symbian.org/mailman/listinfo/wild-ducks
Loading...