Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cellular: fixed crash when closing CellularNetwork via CellularDevice. #8019

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

jarvte
Copy link
Contributor

@jarvte jarvte commented Sep 6, 2018

Description

ATHandler was released before network instance was deleted and in network destructor athandler was used.

Internal ref to defect: IOTCELL-1321

@AriParkkila please review

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change

@0xc0170 0xc0170 requested a review from a team September 6, 2018 12:33
@@ -29,7 +29,7 @@ namespace mbed {
class AT_CellularBase {
public:
AT_CellularBase(ATHandler &at);

virtual ~AT_CellularBase() {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly not needed due to the class has no virtual members, but I guess this is a good precaution.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this used (looking at the class, there's no virtual method here), that we need to have dtor virtual?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed virtual dtor

@jarvte jarvte force-pushed the fix_crash_in_close_cellularnetwork branch from 787c144 to 4ac29e9 Compare September 7, 2018 12:11
@jarvte jarvte force-pushed the fix_crash_in_close_cellularnetwork branch from 4ac29e9 to ed7606b Compare September 18, 2018 12:43
@cmonr
Copy link
Contributor

cmonr commented Sep 23, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Sep 23, 2018

Build : SUCCESS

Build number : 3139
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8019/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Sep 23, 2018

@mbed-ci
Copy link

mbed-ci commented Sep 24, 2018

@0xc0170 0xc0170 removed the needs: CI label Sep 24, 2018
@cmonr
Copy link
Contributor

cmonr commented Sep 30, 2018

Based on top of changes going into 5.11.0-rc1 (#7969)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants