Closed Bug 776745 Opened 12 years ago Closed 12 years ago

[b2g-bluetooth] Crash in bluetooth discovery due to initializer buried in NS_ASSERTION

Categories

(Core :: DOM: Device Interfaces, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: qdot, Assigned: qdot)

References

Details

Attachments

(1 file)

When a DeviceFound message is handled by BluetoothDBusService.cpp's EventLoop function, the dbus iterator is wrapped in an NS_ASSERTION, meaning that it won't get called at all if it's being built in release. This causes very weird crashes.
Attachment #645109 - Flags: review?(mrbkap) → review?(anygregor)
Attachment #645109 - Flags: review?(anygregor) → review+
FWIW, you can use MOZ_ASSERT_ALWAYS_TRUE for that. This is going to assert if the expression is false in debug build but will still run the expression in release builds.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: