Summary: | ARM: nas_serving_system indication causes alignment trap | ||
---|---|---|---|
Product: | libqmi | Reporter: | Wolfgang <wtolkien> |
Component: | libqmi | Assignee: | Dan Williams <dcbw> |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Wolfgang
2017-02-03 02:38:04 UTC
Turns out the problem is with glib. g_slice_new0() in __qmi_indication_nas_serving_system_indication_parse() returns a misaligned memory block, contrary to what the glib documentation says. Turning off glib's 'magazine layer' seems to avoid this problem. This can be done by calling g_slice_set_config(G_SLICE_CONFIG_BYPASS_MAGAZINES, TRUE); Note that g_slice_set_config() is flagged as deprecated, so it may be necessary to patch glib/gslice.c instead. Is there an open glib bug for the alignment issue? Would be nice to track it and make sure it gets fixed, or know what version it was fixed in if others encounter this. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.