2010-04-28 00:32:16     Compiling Bluez & D-bus for blackfin

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-04-28 00:32:16     Compiling Bluez & D-bus for blackfin

Poorna Jyothi (INDIA)

Message: 88976   

 

Hi,

 

I am working on bringing up bluez on blackfin. For this I cross compiled glib & dbus as bluez depends on them. I am able to cross compile all of these & install. When I execute the "dbus-daemon" script it gives null pointer exception as shown below. Any help on the issue is appreciated.

 

NULL pointer access

 

Deferred Exception context

 

CURRENT PROCESS:

 

COMM=libdbus-1.so.3 PID=316

 

CPU = 0

 

TEXT = 0x010c0000-0x010e8ea8 DATA = 0x03708ea8-0x0370a198

 

BSS = 0x0370a198-0x03720000 USER-STACK = 0x0373fea0

 

return address: [0x010c2ce2]; contents of:

 

0x010c2cc0: 67e5 0a0d e800 0000 3218 3229 3022 1887

 

0x010c2cd0: 0000 0000 0000 912b 0c3b 187d 0000 0000

 

0x010c2ce0: 0000 [a45a] 0d02 1877 0000 0000 0000 a098

 

0x010c2cf0: 0983 1871 0000 0000 5243 a0d8 0a08 10b9

 

ADSP-BF527-0.0 525(MHz CCLK) 131(MHz SCLK) (mpu off)

 

Linux version 2.6.28.10-ADI-2009R1

 

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS: Not tainted

 

SEQSTAT: 00000027 IPEND: 0030 SYSCFG: 0006

 

EXCAUSE : 0x27

 

interrupts disabled

 

physical IVG5 asserted : <0xffa00bc4> { _evt_ivhw + 0x0 }

 

RETE: <0x00000000> /* Maybe null pointer? */

 

RETN: <0x035a4000> /* kernel dynamic memory */

 

RETX: <0x00000480> /* Maybe fixed code section */

 

RETS: <0x0368fec6> [ /bin/busybox + 0xfec6 ]

 

PC : <0x010c2ce2> [ /usr/lib/libdbus-1.so.3.4.0 + 0x2ce2 ]

 

DCPLB_FAULT_ADDR: <0x00000002> /* Maybe null pointer? */

 

ICPLB_FAULT_ADDR: <0x010c2ce2> [ /usr/lib/libdbus-1.so.3.4.0 + 0x2ce2 ]

 

PROCESSOR STATE:

 

R0 : 00000000 R1 : 037232d8 R2 : 037232ec R3 : 00000000

 

R4 : 037232ec R5 : 037232e8 R6 : 037232d8 R7 : 00000000

 

P0 : 0373ff50 P1 : 00000000 P2 : 037091c4 P3 : 00000000

 

P4 : 036b4c4c P5 : 037232d8 FP : 0373fe80 SP : 035a3f24

 

LB0: 03622367 LT0: 03622366 LC0: 00000000

 

LB1: 03632c47 LT1: 03632c40 LC1: 00000000

 

B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 03723224

 

B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 03ed8340

 

B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000

 

B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000

 

A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000

 

USP : 0373fe80 ASTAT: 02000000

 

Hardware Trace:

 

0 Target : <0x00004d00> { _trap_c + 0x0 }

 

Source : <0xffa00622> { _exception_to_level5 + 0xae }

 

1 Target : <0xffa00574> { _exception_to_level5 + 0x0 }

 

Source : <0xffa00430> { _bfin_return_from_exception + 0x18 }

 

2 Target : <0xffa00418> { _bfin_return_from_exception + 0x0 }

 

Source : <0xffa004cc> { _ex_trap_c + 0x6c }

 

3 Target : <0xffa00460> { _ex_trap_c + 0x0 }

 

Source : <0xffa006ee> { _trap + 0x5a }

 

4 Target : <0xffa00694> { _trap + 0x0 }

 

Source : <0x010c2ce0> [ /usr/lib/libdbus-1.so.3.4.0 + 0x2ce0 ] 0x0000

 

5 Target : <0x010c2cbc> [ /usr/lib/libdbus-1.so.3.4.0 + 0x2cbc ]

 

Source : <0xffa00bc0> { __common_int_entry + 0xcc }

 

6 Target : <0xffa00b5e> { __common_int_entry + 0x6a }

 

Source : <0xffa00e80> { _evt_system_call + 0x64 }

 

7 Target : <0xffa00e80> { _evt_system_call + 0x64 }

 

Source : <0xffa00874> { _system_call + 0xb8 }

 

8 Target : <0xffa00870> { _system_call + 0xb4 }

 

Source : <0xffa00860> { _system_call + 0xa4 }

 

9 Target : <0xffa0085a> { _system_call + 0x9e }

 

Source : <0xffa0084a> { _system_call + 0x8e }

 

10 Target : <0xffa00824> { _system_call + 0x68 }

 

Source : <0x00001574> { _sys_execve + 0x48 } RTS

 

11 Target : <0x0000156c> { _sys_execve + 0x40 }

 

Source : <0x000394b0> { _kmem_cache_free + 0x3c } RTS

 

12 Target : <0x00039474> { _kmem_cache_free + 0x0 }

 

Source : <0x00001568> { _sys_execve + 0x3c } CALL pcrel

 

13 Target : <0x0000155a> { _sys_execve + 0x2e }

 

Source : <0x0004075a> { _do_execve + 0x22 } RTS

 

14 Target : <0x00040752> { _do_execve + 0x1a }

 

Source : <0x000408d6> { _do_execve + 0x19e } IF !CC JUMP

 

15 Target : <0x000408d2> { _do_execve + 0x19a }

 

Source : <0x0003941c> { _kfree + 0x68 } RTS

 

Userspace Stack

 

Stack info:

 

SP: [0x0373fe80] <0x0373fe80> [ libdbus-1.so.3 + 0x1fe80 ]

 

Memory from 0x0373fe80 to 03740000

 

0373fe80:[010bef88]<0368fec6> 03708ea8 036b4c4c 00000000 037232d8 01099a50

 

0373fea0: 00000001 0373ff72 00000000 0373ff8a 0373ff91 0373ff9f 0373ffc2

 

0373fec0: 0373ffd9 00000000 00000010 00000000 00000006 00001000 00000011

 

0373fee0: 00000003 010c0034 00000004 00000020 00000005 00000005 00000007

 

0373ff00: 00000008 00000000 00000009 010c2cbc 0000000b 00000000 0000000c

 

0373ff20: 0000000d 00000000 0000000e 00000000 00000017 00000000 0000001f

 

0373ff40: 00000000 00000000 00000000 00000000 00020000 010c0000 00000000

 

0373ff60: 03708ea8 0002cea8 000012f0 00000000 752f0000 6c2f7273 6c2f6269

 

0373ff80: 312d7375 2e6f732e 4f480033 2f3d454d 45485300 2f3d4c4c 2f6e6962

 

0373ffa0: 3d485441 6e69622f 73752f3a 69622f72 732f3a6e 3a6e6962 7273752f

 

0373ffc0: 4554006e 6c3d4d52 78756e69 4e494200 3d48535f 34677078 41554400

 

0373ffe0: 00313d45 7273752f 62696c2f 62696c2f 73756264 732e312d 00332e6f

 

Return addresses in stack:

 

address : <0x0368fec6> [ /bin/busybox + 0xfec6 ]

 

SIGSEGV

 

Thanks,

 

Poorna

QuoteReplyEditDelete

 

 

2010-04-28 00:58:58     Re: Compiling Bluez & D-bus for blackfin

Mike Frysinger (UNITED STATES)

Message: 88977   

 

the documentation explains how to leverage the trace:

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:analyzing_traces

QuoteReplyEditDelete

 

 

2010-05-15 19:09:55     Re: Compiling Bluez & D-bus for blackfin

John Doe (AUSTRIA)

Message: 89436   

 

Hello,

 

did you solve the problem? I am really interested in your work compiling dbus+bluez for uclinux because I would need such a build too.

 

Kind regards

 

bearriveroak

Attachments

    Outcomes