HI all ,
Below I am trying to run some Bluetooth related scripts but getting below crash . How can I avoid this crash as it is produced randomly and not always.
rm: cannot remove `/var/run/dbus/pid': No such file or directory
BT FW is active(6)
Alignment trap: not handling instruction e19cef9f at [<c018b464>]
Unhandled fault: alignment exception (0x001) at 0x0000009d
Internal error: : 1 [#1] PREEMPT SMP
Modules linked in: bt8xxx
CPU: 0 Not tainted (3.0.35-2508-g54750ff-ihmv7-svn430 #10)
PC is at dup_fd+0x13c/0x328
LR is at 0x0
pc : [<c018b468>] lr : [<00000000>] psr: 20000013
sp : da12def0 ip : 0000009d fp : dfa12c00
r10: 00000007 r9 : 0000001b r8 : 00000100
r7 : 00000100 r6 : df933fa0 r5 : 00000001 r4 : dfbb2874
r3 : 0000007d r2 : 000000e4 r1 : 0000001c r0 : dfa12c70
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c53c7d Table: 2a0c804a DAC: 00000015
Process BT_Init.sh (pid: 3273, stack limit = 0xda12c2f8)
Stack: (0xda12def0 to 0xda12e000)
dee0: dffcbee0 dffcb820 01200011 dfee32c0
df00: 01200011 da12c000 00000000 c080a700 dfee33e4 000001c0 00000000 c00fb1a4
df20: 000010e9 00000000 00000000 dfee345c bed15818 da12dfb0 da1203c0 fffffff4
df40: 00000001 01200011 00000000 da12dfb0 00000000 bed15818 da12c000 00000000
df60: bed15834 c00fb95c 40076068 00000000 00000000 00000000 0000021c 00000000
df80: 00000000 00000000 00000001 00000000 40076068 00000000 40281000 00000078
dfa0: c00cc144 c00cbfc0 00000000 40076068 01200011 00000000 00000000 00000000
dfc0: 40076068 00000000 40281000 00000078 00000cc9 000abc48 000ac368 bed15834
dfe0: 400764c0 bed15818 00000000 401f1b48 60000010 01200011 00000000 00000000
[<c018b468>] (dup_fd+0x13c/0x328) from [<c00fb1a4>] (copy_process+0x5ec/0xce4)
[<c00fb1a4>] (copy_process+0x5ec/0xce4) from [<c00fb95c>] (do_fork+0x9c/0x264)
[<c00fb95c>] (do_fork+0x9c/0x264) from [<c00cbfc0>] (ret_fast_syscall+0x0/0x30)
Code: e3a01000 e58d5000 ea000009 e19cef9f (e28ee001)
---[ end trace 125b5a44c9432aed ]---
note: BT_Init.sh[3273] exited with preempt_count 1
BUG: scheduling while atomic: BT_Init.sh/3273/0x40000002
Modules linked in: bt8xxx
[<c00d2774>] (unwind_backtrace+0x0/0xf8) from [<c05bd654>] (__schedule+0x4c0/0x6c0)
[<c05bd654>] (__schedule+0x4c0/0x6c0) from [<c00f7bbc>] (__cond_resched+0x24/0x34)
[<c00f7bbc>] (__cond_resched+0x24/0x34) from [<c05bd8ec>] (_cond_resched+0x34/0x44)
[<c05bd8ec>] (_cond_resched+0x34/0x44) from [<c015b620>] (unmap_vmas+0x40c/0x670)
[<c015b620>] (unmap_vmas+0x40c/0x670) from [<c0160e38>] (exit_mmap+0x108/0x248)
[<c0160e38>] (exit_mmap+0x108/0x248) from [<c00fa508>] (mmput+0x48/0xf4)
[<c00fa508>] (mmput+0x48/0xf4) from [<c00fe510>] (exit_mm+0x128/0x168)
[<c00fe510>] (exit_mm+0x128/0x168) from [<c00ffe78>] (do_exit+0x570/0x6e8)
[<c00ffe78>] (do_exit+0x570/0x6e8) from [<c00cf73c>] (die+0x228/0x284)
[<c00cf73c>] (die+0x228/0x284) from [<c00c63dc>] (do_DataAbort+0x8c/0x9c)
[<c00c63dc>] (do_DataAbort+0x8c/0x9c) from [<c00cb990>] (__dabt_svc+0x70/0xa0)
Exception stack(0xda12dea8 to 0xda12def0)
dea0: dfa12c70 0000001c 000000e4 0000007d dfbb2874 00000001
dec0: df933fa0 00000100 00000100 0000001b 00000007 dfa12c00 0000009d da12def0
dee0: 00000000 c018b468 20000013 ffffffff
[<c00cb990>] (__dabt_svc+0x70/0xa0) from [<c018b468>] (dup_fd+0x13c/0x328)
[<c018b468>] (dup_fd+0x13c/0x328) from [<c00fb1a4>] (copy_process+0x5ec/0xce4)
[<c00fb1a4>] (copy_process+0x5ec/0xce4) from [<c00fb95c>] (do_fork+0x9c/0x264)
[<c00fb95c>] (do_fork+0x9c/0x264) from [<c00cbfc0>] (ret_fast_syscall+0x0/0x30)
./BT_Demo.sh: line 36: 3273 Segmentation fault ./BT_Init.sh
Regards
Hi sn
I would suggest to request updated driver and firmware for that chip from
vendor, since firmware of Bluetooth chips even with the same marking may differ,
chip vendor can provide frimware for specific chip revision.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hey igor ,
Thanks for the quick reply . Issue is this crash does not occur everytime , sometimes the BT works just fine scan connect transfer. I have tried implementing what is mentioned in this link
http://blog.galemin.com/tag/codesourcery/
but of no use though. cr = 10c53c7d always with and without modification. HOw can we add EXTRA_CFLAGS=-mno-unaligned-access anywhere in filesytem in dist/lfs-5.1/bluez-libs/bluez-libs.spec
Boot log observed is
the [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
Regards
Hey igor :smileyhappy:,
Thanks for the quick reply . Issue is this crash does not occur everytime , sometimes the BT works just fine scan connect transfer. I have tried implementing what is mentioned in this link
http://blog.galemin.com/tag/codesourcery/
but of no use though. cr = 10c53c7d always with and without modification. HOw can we add EXTRA_CFLAGS=-mno-unaligned-access anywhere in filesytem in dist/lfs-5.1/bluez-libs/bluez-libs.spec
Boot log observed is
the [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
Regards
sn