Closed Bug 1129814 Opened 9 years ago Closed 9 years ago

[PTS][Certification]+CLIP AT command replied incorrect currupt string

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.2+, b2g-v2.2 fixed, b2g-master fixed)

RESOLVED FIXED
2.2 S6 (20feb)
blocking-b2g 2.2+
Tracking Status
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: shawnjohnjr, Assigned: brsun)

Details

Attachments

(1 file, 1 obsolete file)

- AT: Service Level Connection established
	- AT: post SLC command sequence complete
	- AT: RING
	- FATAL ERROR (AT): +CLIP contains incorrect phone number: "0????S??int"  expected: "0939835820".  Check TSPX_phone_number
	- MTC received unexpected EXIT message from AT component
	- AT: Received +CLIP: "0????S??int",129




	132	Slave	46	AT+CLIP=1.	Enable CLI notofication			22	 00:00:00.000000	2015/2/5 下午 04:16:11.121000	
	134	Master	46	..OK..			Success	19	 00:00:00.010000	2015/2/5 下午 04:16:11.131000	
	135	Slave	46	AT+CCWA=1.	Enable call waiting notification			22	 00:00:00.000000	2015/2/5 下午 04:16:11.131000	
	137	Master	46	..OK..			Success	19	 00:00:00.010000	2015/2/5 下午 04:16:11.141000	
	138	Slave	46	AT+CMEE=1.	Enable Extended Audio Gateway Error Result Code			22	 00:00:00.000000	2015/2/5 下午 04:16:11.141000	
	140	Master	46	..OK..			Success	19	 00:00:00.010000	2015/2/5 下午 04:16:11.151000	
	143	Master	46	..+CIEV: 2,1..		Call Setup indicator's status report		26	 00:00:25.728000	2015/2/5 下午 04:16:36.879000	
	144	Master	46	..RING..		Incoming Call/Call progress indication		20	 00:00:00.005000	2015/2/5 下午 04:16:36.884000	
	145	Master	46	..+CLIP: "0....S..int",129..	+CLIP: "0黃S紫int",129			40	 00:00:00.000000	2015/2/5 下午 04:16:36.884000	
	147	Slave	46	ATA.		Answer mode		16	 00:00:00.025000	2015/2/5 下午 04:16:36.909000	
	149	Master	46	..OK..			Success	19	 00:00:00.015000	2015/2/5 下午 04:16:36.924000
We need to verify that clcc_response api correctly handle call number.
CLIP AT command was handle by bluedroid but we need to check that we pass the correct value to stack.
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → ARM
I can reproduce this bug on nexus5-l
It looks like |phone_state_change| |number| parameter is invalid.
This can blocked many PTS HFP phone call test cases because PTS will verify call numbers.
blocking-b2g: --- → 2.2?
Triage: blocking
Assignee: nobody → shuang
blocking-b2g: 2.2? → 2.2+
Assignee: shuang → nobody
We have investigated this bug. We dumped PDU sent from Gecko, nothing is wrong. Thanks for :brsun, we found the problem is from bluetoothd, 0-terminated string handling. We expected this will be resolved next week.
Transfer to :brsun, he found the solution. This blocker will be updated and resolved next week work day.
Assignee: nobody → brsun
Attachment #8561204 - Flags: review?(tzimmermann)
Summary: [PTS]+CLIP AT command replied incorrect currupt string → [PTS][Certification]+CLIP AT command replied incorrect currupt string
Comment on attachment 8561204 [details] [review]
https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/20

This looks good. Thank you for fixing this bug.
Attachment #8561204 - Flags: review?(tzimmermann) → review+
BTW, could you update the copyright message at the top as well? IIRC It says '2014  Mozilla...' and since you touched the file that should now be '2014-2015  Mozilla...'.
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #10)
> BTW, could you update the copyright message at the top as well? IIRC It says
> '2014  Mozilla...' and since you touched the file that should now be
> '2014-2015  Mozilla...'.

Done.
Keywords: checkin-needed
Wait a second. There are now 3 commits. Two with code and a merge commit. Please remove the merge and just use a single commit for the fix.
Comment on attachment 8561204 [details] [review]
https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/20

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
User impact if declined: Regular PTS fails due to memory corruption.
Testing completed: Manual local testing.
Risk to taking this patch (and alternatives if risky): Low. This patch is very small and is just used to fix memory corruption.
String or UUID changes made by this patch: N/A.
Attachment #8561204 - Flags: approval-mozilla-b2g37?
Attachment #8561204 - Flags: approval-mozilla-b2g37?
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #12)
> Wait a second. There are now 3 commits. Two with code and a merge commit.
> Please remove the merge and just use a single commit for the fix.

Thanks. I'm going to handle this.
Keywords: checkin-needed
Comment on attachment 8561204 [details] [review]
https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/20

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
User impact if declined: Regular PTS fails due to memory corruption.
Testing completed: Manual local testing.
Risk to taking this patch (and alternatives if risky): Low. This patch is very small and is just used to fix memory corruption.
String or UUID changes made by this patch: N/A.
Attachment #8561204 - Flags: approval-mozilla-b2g37?
Just another nit for future patches: when you create patches for bluetoothd, please add the bug number to each commit summary; like for Gecko patches.
Done.
Bruce, can you please recreate the pull request on the latest b2g/master?

The pull request for bug 1129257 messed up commit history with broken and merge commits. I fixed this up in current master.
Flags: needinfo?(brsun)
Thanks Thomas, Ben, Shawn. A new PR has been created for review again.
Attachment #8561204 - Attachment is obsolete: true
Attachment #8561204 - Flags: approval-mozilla-b2g37?
Flags: needinfo?(brsun)
Attachment #8562515 - Flags: review?(tzimmermann)
waiting for master landing before getting to branch approval.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 8562515 [details] [review]
https://github.com/mozilla-b2g/platform_system_bluetoothd/pull/24

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
User impact if declined: Regular PTS fails due to memory corruption.
Testing completed: Manual local testing.
Risk to taking this patch (and alternatives if risky): Low. This patch is very small and is just used to fix memory corruption.
String or UUID changes made by this patch: N/A.
Attachment #8562515 - Flags: approval-mozilla-b2g37?
Target Milestone: --- → 2.2 S6 (20feb)
Attachment #8562515 - Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: