<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p><span style="font-size:10pt">> The patches should go on top of git master; not really sure what's</span><br>
</p>
<div style="color:rgb(0,0,0)"><font size="2"><span style="font-size:10pt">
<div class="PlainText">> happening to you. Can you run it under gdb and get a backtrace?<br>
<br>
Here is what I was seeing from gdb:</div>
<div class="PlainText">
<div>Reading symbols from /usr/sbin/ModemManager...done.</div>
<div>(gdb) run</div>
<div>Starting program: /usr/sbin/ModemManager --debug</div>
<div>warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.</div>
<div>[New LWP 580]</div>
<div>ModemManager[577]: <info>  [1495597905.990684] [main.c:157] main(): ModemManager (version 1.7.0) starting in system bus...</div>
<div>[New LWP 581]</div>
<div>[New LWP 582]</div>
<div>ModemManager[577]: <debug> [1495597905.997456] [mm-sleep-monitor.c:245] mm_sleep_monitor_get(): create MMSleepMonitor singleton (0x1514cc0)</div>
<div>[New LWP 583]</div>
<div>ModemManager[577]: <debug> [1495597906.022886] [main.c:83] bus_acquired_cb(): Bus acquired, creating manager...</div>
<div>ModemManager[577]: <debug> [1495597906.027225] [mm-plugin-manager.c:1559] load_plugins(): [plugin manager] looking for plugins in '/usr/lib/ModemManager'</div>
<div>ModemManager[577]: <debug> [1495597906.058538] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'ZTE'</div>
<div>ModemManager[577]: <debug> [1495597906.085244] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Novatel'</div>
<div>ModemManager[577]: <debug> [1495597906.109977] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Iridium'</div>
<div>ModemManager[577]: <debug> [1495597906.144019] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Dell'</div>
<div>ModemManager[577]: <debug> [1495597906.169483] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Longcheer'</div>
<div>ModemManager[577]: <debug> [1495597906.195925] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'MTK'</div>
<div>ModemManager[577]: <debug> [1495597906.220452] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Haier'</div>
<div>ModemManager[577]: <debug> [1495597906.247849] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'X22X'</div>
<div>ModemManager[577]: <debug> [1495597906.273565] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Sierra'</div>
<div>ModemManager[577]: <debug> [1495597906.310957] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Huawei'</div>
<div>[LWP 582 exited]</div>
<div>ModemManager[577]: <debug> [1495597906.525223] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Cinterion'</div>
<div>ModemManager[577]: <debug> [1495597906.554053] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Thuraya'</div>
<div>ModemManager[577]: <debug> [1495597906.583189] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Wavecom'</div>
<div><br>
</div>
<div>Thread 1 "ModemManager" received signal SIGSEGV, Segmentation fault.</div>
<div>0x76778810 in strchr () from /lib/libc.so.6</div>
<div>(gdb)</div>
<div><br>
</div>
<div>(gdb) bt</div>
<div>Python Exception <type 'exceptions.ImportError'> No module named gdb.frames:</div>
<div>#0  0x76778810 in strchr () from /lib/libc.so.6</div>
<div>#1  0x76acd548 in g_param_spec_pool_lookup () from /lib/libgobject-2.0.so.0</div>
<div>#2  0x76ac85b4 in g_object_new_valist () from /lib/libgobject-2.0.so.0</div>
<div>#3  0x76ac89e0 in g_object_new () from /lib/libgobject-2.0.so.0</div>
<div>#4  0x7427d9dc in mm_plugin_create ()</div>
<div>   from /usr/lib/ModemManager/libmm-plugin-ublox.so</div>
<div>#5  0x00042ef8 in initable_init ()</div>
<div>#6  0x76b55ba0 in g_initable_new_valist () from /lib/libgio-2.0.so.0</div>
<div>#7  0x76b55bec in g_initable_new () from /lib/libgio-2.0.so.0</div>
<div>#8  0x00043e70 in mm_plugin_manager_new ()</div>
<div>#9  0x0003f548 in initable_init ()</div>
<div>#10 0x76b55ba0 in g_initable_new_valist () from /lib/libgio-2.0.so.0</div>
<div>#11 0x76b55bec in g_initable_new () from /lib/libgio-2.0.so.0</div>
<div>#12 0x000402c8 in mm_base_manager_new ()</div>
<div>#13 0x0003d54c in bus_acquired_cb ()</div>
<div>#14 0x76bc05a8 in ?? () from /lib/libgio-2.0.so.0</div>
<div>Backtrace stopped: previous frame identical to this frame (corrupt stack?)</div>
<div>(gdb)</div>
<br>
<br>
> P.S.: did you by any chance configure previously without a --prefix<br>
> given?<br>
</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">I'm building this in Buildroot for an embedded system, so here is my configure command:</div>
<div class="PlainText"><span>./configure --target=arm-buildroot-linux-gnueabihf --host=arm-buildroot-linux-gnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix="" --disable-gtk-doc --disable-gtk-doc-html
 --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6  --disable-static --enable-shared  --with-qmi --with-mbim</span><br>
</div>
<div class="PlainText"><span><br>
</span></div>
<div class="PlainText"><span>To add to the weirdness, it seems when I enabled debug symbols in the buildroot build, the segmentation faults went away.  Now, when I run "ModemManager --debug" it works, but instead of a segmentation fault it just gives me a CRITICAL
 warning and moves on (<span>object class 'MMPluginUblox' has no property named '\x90'\xf0')</span>.  Not sure if it's just a coincidence or if that is the reason, but it's what I'm seeing.</span></div>
<div class="PlainText"><span><br>
</span></div>
<div class="PlainText">Whatever the reason, the good news is that the modem now shows up in ModemManager!</div>
<div class="PlainText">
<div># mmcli -L</div>
<div><br>
</div>
<div>Found 1 modems:</div>
<div>        /org/freedesktop/ModemManager1/Modem/0 [u-blox] SARA-U260</div>
<br>
</div>
<div class="PlainText">There seems to be some errors (log files are attached), but it could be related to the fact that I do not have an antenna connected.  I'll connect one in the morning when I'm back in the office and see what happens.  Regardless, this
 patch does work for the SARA-U260, so thank you!</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">-brent</div>
</span></font></div>
</div>
</body>
</html>