You are not logged in.

#1 2019-01-21 05:00:22

abidhasan
Member
Registered: 2019-01-21
Posts: 1

modem-manager-gui is not running

I installed modem-manager-gui few days ago on my arch system. It was running well. But now it's showing me this problem:

   (modem-manager-gui:14699): Gtk-WARNING **: 10:58:44.250: Could not load a pixbuf from icon theme.
   This may indicate that pixbuf loaders or the mime database could not be found.
   Connection manager: Network Manager >= 0.9.0
   Modem manager: Modem Manager >= 0.7.0
   free(): invalid pointer
   Aborted (core dumped)

Any alternative of modem-manager-gui or how to fix it?

Offline

#2 2019-01-21 09:47:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,739

Re: modem-manager-gui is not running

Please post terminal output in [ code ] tags, and post the contents of that core dump

Offline

#3 2019-01-23 23:19:44

devil_kc
Member
Registered: 2008-09-14
Posts: 93

Re: modem-manager-gui is not running

i get this:

modem-manager-gui                                                                                                                                                                                                                                      :(
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0

(modem-manager-gui:4858): GLib-CRITICAL **: 00:17:35.157: g_strrstr: assertion 'haystack != NULL' failed
double free or corruption (out)
[1]    4858 abort (core dumped)  modem-manager-gui

info:

sudo coredumpctl info 4858                                                                                                                                                                                                                             :(
           PID: 4858 (modem-manager-g)
           UID: 1000 (matija)
           GID: 1000 (matija)
        Signal: 6 (ABRT)
     Timestamp: Thu 2019-01-24 00:17:35 CET (37s ago)
  Command Line: modem-manager-gui
    Executable: /usr/bin/modem-manager-gui
 Control Group: /user.slice/user-1000.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1000.slice
       Session: 1
     Owner UID: 1000 (matija)
       Boot ID: 5b4c152b1260483faa5c465cc805e0bd
    Machine ID: cedd3e7f37d149a692bde4fe59291473
      Hostname: workpad
       Storage: /var/lib/systemd/coredump/core.modem-manager-g.1000.5b4c152b1260483faa5c465cc805e0bd.4858.1548285455000000.lz4
       Message: Process 4858 (modem-manager-g) of user 1000 dumped core.
                
                Stack trace of thread 4858:
                #0  0x00007fd993a26d7f raise (libc.so.6)
                #1  0x00007fd993a11672 abort (libc.so.6)
                #2  0x00007fd993a69878 __libc_message (libc.so.6)
                #3  0x00007fd993a7018a malloc_printerr (libc.so.6)
                #4  0x00007fd993a71c50 _int_free (libc.so.6)
                #5  0x00007fd98ca0f1a5 n/a (libmodmm_mm07.so)
                #6  0x00007fd98ca115c3 mmgui_module_devices_information (libmodmm_mm07.so)
                #7  0x000055b53096dec4 mmguicore_devices_open (modem-manager-gui)
                #8  0x000055b530980775 n/a (modem-manager-gui)
                #9  0x000055b53098f337 n/a (modem-manager-gui)
                #10 0x000055b53096b2f1 mmgui_svcmanager_start_services_activation (modem-manager-gui)
                #11 0x000055b530970dc6 mmguicore_start (modem-manager-gui)
                #12 0x00007fd993c143c5 g_closure_invoke (libgobject-2.0.so.0)
                #13 0x00007fd993c01195 n/a (libgobject-2.0.so.0)
                #14 0x00007fd993c0501e g_signal_emit_valist (libgobject-2.0.so.0)
                #15 0x00007fd993c05a80 g_signal_emit (libgobject-2.0.so.0)
                #16 0x00007fd993cd4249 n/a (libgio-2.0.so.0)
                #17 0x00007fd993cd389b g_application_run (libgio-2.0.so.0)
                #18 0x000055b53095ac09 main (modem-manager-gui)
                #19 0x00007fd993a13223 __libc_start_main (libc.so.6)
                #20 0x000055b53095aefa _start (modem-manager-gui)
                
                Stack trace of thread 4859:
                #0  0x00007fd993adfc21 __poll (libc.so.6)
                #1  0x00007fd9947ea540 n/a (libglib-2.0.so.0)
                #2  0x00007fd9947ea62e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007fd9947ea682 n/a (libglib-2.0.so.0)
                #4  0x00007fd9947c567b n/a (libglib-2.0.so.0)
                #5  0x00007fd993bbaa9d start_thread (libpthread.so.0)
                #6  0x00007fd993aeab23 __clone (libc.so.6)
                
                Stack trace of thread 4861:
                #0  0x00007fd993adfc21 __poll (libc.so.6)
                #1  0x000055b53096e857 n/a (modem-manager-gui)
                #2  0x000055b53096f4de n/a (modem-manager-gui)
                #3  0x00007fd9947c567b n/a (libglib-2.0.so.0)
                #4  0x00007fd993bbaa9d start_thread (libpthread.so.0)
                #5  0x00007fd993aeab23 __clone (libc.so.6)
                
                Stack trace of thread 4860:
                #0  0x00007fd993adfc21 __poll (libc.so.6)
                #1  0x00007fd9947ea540 n/a (libglib-2.0.so.0)
                #2  0x00007fd9947eb5c2 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007fd993c94cb8 n/a (libgio-2.0.so.0)
                #4  0x00007fd9947c567b n/a (libglib-2.0.so.0)
                #5  0x00007fd993bbaa9d start_thread (libpthread.so.0)
                #6  0x00007fd993aeab23 __clone (libc.so.6)

bt

(gdb) bt
#0  0x00007fd993a26d7f in raise () at /usr/lib/libc.so.6
#1  0x00007fd993a11672 in abort () at /usr/lib/libc.so.6
#2  0x00007fd993a69878 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007fd993a7018a in  () at /usr/lib/libc.so.6
#4  0x00007fd993a71c50 in _int_free () at /usr/lib/libc.so.6
#5  0x00007fd98ca0f1a5 in  () at /usr/lib/modem-manager-gui/modules/libmodmm_mm07.so
#6  0x00007fd98ca115c3 in mmgui_module_devices_information () at /usr/lib/modem-manager-gui/modules/libmodmm_mm07.so
#7  0x000055b53096dec4 in mmguicore_devices_open ()
#8  0x000055b530980775 in  ()
#9  0x000055b53098f337 in  ()
#10 0x000055b53096b2f1 in mmgui_svcmanager_start_services_activation ()
#11 0x000055b530970dc6 in mmguicore_start ()
#12 0x00007fd993c143c5 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#13 0x00007fd993c01195 in  () at /usr/lib/libgobject-2.0.so.0
#14 0x00007fd993c0501e in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#15 0x00007fd993c05a80 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#16 0x00007fd993cd4249 in  () at /usr/lib/libgio-2.0.so.0
#17 0x00007fd993cd389b in g_application_run () at /usr/lib/libgio-2.0.so.0
#18 0x000055b53095ac09 in main ()

Offline

#4 2019-01-30 20:08:54

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

Same issue. Running this on a X1 Carbon with built in modem.

SUDO version of modem-manager, gives a wonderful popup screen, once you hit "Let's start" it still crashes.
https://imgur.com/qVYtzZKl.png

During the popup window you can open the modem manager, however it is not connected to the modem, so you cannot see anything or do anything.

sudo modem-manager-gui 
[sudo] password for XXXXXX: 
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0

(modem-manager-gui:4009): libnotify-WARNING **: 21:01:00.664: Failed to connect to proxy

(modem-manager-gui:4009): GLib-CRITICAL **: 21:01:00.664: g_strrstr: assertion 'haystack != NULL' failed
free(): invalid pointer
Aborted

Coredump:

PID: 3896 (modem-manager-g)
           UID: 1000 (XXXXXX)
           GID: 1000 (XXXXXX)
        Signal: 6 (ABRT)
     Timestamp: Wed 2019-01-30 20:55:40 CET (55s ago)
  Command Line: modem-manager-gui
    Executable: /usr/bin/modem-manager-gui
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (XXXXXX)
       Boot ID: 006f6685e7774029a3256d959c099cf0
    Machine ID: 81dc296ca7f34dcc8b5e87cdc063e0e9
      Hostname: HOSTNAME
       Storage: /var/lib/systemd/coredump/core.modem-manager-g.1000.006f6685e7774029a3256d959c099cf0.3896.1548878140000000.lz4
       Message: Process 3896 (modem-manager-g) of user 1000 dumped core.
                
                Stack trace of thread 3896:
                #0  0x00007f3034addd7f raise (libc.so.6)
                #1  0x00007f3034ac8672 abort (libc.so.6)
                #2  0x00007f3034b20878 __libc_message (libc.so.6)
                #3  0x00007f3034b2718a malloc_printerr (libc.so.6)
                #4  0x00007f3034b2897c _int_free (libc.so.6)
                #5  0x00007f30298a21a5 n/a (libmodmm_mm07.so)
                #6  0x00007f30298a45c3 mmgui_module_devices_information (libmodmm_mm07.so)
                #7  0x000055f73f5d3ec4 mmguicore_devices_open (modem-manager-gui)
                #8  0x000055f73f5e6775 n/a (modem-manager-gui)
                #9  0x000055f73f5f5337 n/a (modem-manager-gui)
                #10 0x000055f73f5d12f1 mmgui_svcmanager_start_services_activation (modem-manager-gui)
                #11 0x000055f73f5d6dc6 mmguicore_start (modem-manager-gui)
                #12 0x00007f3034ccb3c5 g_closure_invoke (libgobject-2.0.so.0)
                #13 0x00007f3034cb8195 n/a (libgobject-2.0.so.0)
                #14 0x00007f3034cbc01e g_signal_emit_valist (libgobject-2.0.so.0)
                #15 0x00007f3034cbca80 g_signal_emit (libgobject-2.0.so.0)
                #16 0x00007f3034d8b249 n/a (libgio-2.0.so.0)
                #17 0x00007f3034d8a89b g_application_run (libgio-2.0.so.0)
                #18 0x000055f73f5c0c09 main (modem-manager-gui)
                #19 0x00007f3034aca223 __libc_start_main (libc.so.6)
                #20 0x000055f73f5c0efa _start (modem-manager-gui)
                
                Stack trace of thread 3897:
                #0  0x00007f3034b96c21 __poll (libc.so.6)
                #1  0x00007f30358a1540 n/a (libglib-2.0.so.0)
                #2  0x00007f30358a162e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f30358a1682 n/a (libglib-2.0.so.0)
                #4  0x00007f303587c67b n/a (libglib-2.0.so.0)
                #5  0x00007f3034c71a9d start_thread (libpthread.so.0)
                #6  0x00007f3034ba1b23 __clone (libc.so.6)
                
                Stack trace of thread 3899:
                #0  0x00007f3034b96c21 __poll (libc.so.6)
                #1  0x000055f73f5d4857 n/a (modem-manager-gui)
                #2  0x000055f73f5d54de n/a (modem-manager-gui)
                #3  0x00007f303587c67b n/a (libglib-2.0.so.0)
                #4  0x00007f3034c71a9d start_thread (libpthread.so.0)
                #5  0x00007f3034ba1b23 __clone (libc.so.6)
                
                Stack trace of thread 3898:
                #0  0x00007f3034b96c21 __poll (libc.so.6)
                #1  0x00007f30358a1540 n/a (libglib-2.0.so.0)
                #2  0x00007f30358a25c2 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007f3034d4bcb8 n/a (libgio-2.0.so.0)
                #4  0x00007f303587c67b n/a (libglib-2.0.so.0)
                #5  0x00007f3034c71a9d start_thread (libpthread.so.0)
                #6  0x00007f3034ba1b23 __clone (libc.so.6)

Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2019-01-30 20:17:47)

Offline

#5 2019-01-31 14:27:15

cluxter
Member
Registered: 2015-08-10
Posts: 11

Re: modem-manager-gui is not running

I've gotten a similar error since this morning:

Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
munmap_chunk(): invalid pointer
Abandon (core dumped)

I don't have any workaround for this yet.

Offline

#6 2019-01-31 15:13:40

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

Please see Debug_-_Getting_Traces to produce a backtrace with debug symbols.
Please rebuild both modem-manager-gui and modemmanager with debug symbols the updated backtrace may help diagnose the cause of the issue.

Online

#7 2019-02-03 21:06:20

cluxter
Member
Registered: 2015-08-10
Posts: 11

Re: modem-manager-gui is not running

I upgraded ArchLinux with

pacman -Syu

yesterday and the problem is gone since then. The upgrade was small but included an update of the "linux" package, so maybe it was just a bug in the kernel.

I will definitely post here again if this issue comes back.

Offline

#8 2019-02-04 08:00:46

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

Interesting... same thing here. But cannot recall the upgrade actually installing anything modem related.

Offline

#9 2019-02-04 10:12:53

devil_kc
Member
Registered: 2008-09-14
Posts: 93

Re: modem-manager-gui is not running

strange, i still have issues with it.

System is up2date but modem manager gui always fails.

modem-manager-gui 
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0

(modem-manager-gui:643): GLib-CRITICAL **: 11:11:47.833: g_strrstr: assertion 'haystack != NULL' failed
double free or corruption (out)
[1]    643 abort (core dumped)  modem-manager-gui
                Stack trace of thread 643:
                #0  0x00007fe4e8004d7f raise (libc.so.6)
                #1  0x00007fe4e7fef672 abort (libc.so.6)
                #2  0x00007fe4e8047878 __libc_message (libc.so.6)
                #3  0x00007fe4e804e18a malloc_printerr (libc.so.6)
                #4  0x00007fe4e804fc50 _int_free (libc.so.6)
                #5  0x00007fe4dcf471a5 n/a (libmodmm_mm07.so)
                #6  0x00007fe4dcf495c3 mmgui_module_devices_information (libmodmm_mm07.so)
                #7  0x000056262e79aec4 mmguicore_devices_open (modem-manager-gui)
                #8  0x000056262e7ad775 n/a (modem-manager-gui)
                #9  0x000056262e7bc337 n/a (modem-manager-gui)
                #10 0x000056262e7982f1 mmgui_svcmanager_start_services_activation (modem-manager-gui)
                #11 0x000056262e79ddc6 mmguicore_start (modem-manager-gui)
                #12 0x00007fe4e81f23c5 g_closure_invoke (libgobject-2.0.so.0)
                #13 0x00007fe4e81df195 n/a (libgobject-2.0.so.0)
                #14 0x00007fe4e81e301e g_signal_emit_valist (libgobject-2.0.so.0)
                #15 0x00007fe4e81e3a80 g_signal_emit (libgobject-2.0.so.0)
                #16 0x00007fe4e82b2249 n/a (libgio-2.0.so.0)
                #17 0x00007fe4e82b189b g_application_run (libgio-2.0.so.0)
                #18 0x000056262e787c09 main (modem-manager-gui)
                #19 0x00007fe4e7ff1223 __libc_start_main (libc.so.6)
                #20 0x000056262e787efa _start (modem-manager-gui)
                
                Stack trace of thread 645:
                #0  0x00007fe4e80bdc21 __poll (libc.so.6)
                #1  0x00007fe4e8dc9540 n/a (libglib-2.0.so.0)
                #2  0x00007fe4e8dca5c2 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007fe4e8272cb8 n/a (libgio-2.0.so.0)
                #4  0x00007fe4e8da467b n/a (libglib-2.0.so.0)
                #5  0x00007fe4e8198a9d start_thread (libpthread.so.0)
                #6  0x00007fe4e80c8b23 __clone (libc.so.6)
                
                Stack trace of thread 644:
                #0  0x00007fe4e80bdc21 __poll (libc.so.6)
                #1  0x00007fe4e8dc9540 n/a (libglib-2.0.so.0)
                #2  0x00007fe4e8dc962e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007fe4e8dc9682 n/a (libglib-2.0.so.0)
                #4  0x00007fe4e8da467b n/a (libglib-2.0.so.0)
                #5  0x00007fe4e8198a9d start_thread (libpthread.so.0)
                #6  0x00007fe4e80c8b23 __clone (libc.so.6)
                
                Stack trace of thread 646:
                #0  0x00007fe4e80bdc21 __poll (libc.so.6)
                #1  0x000056262e79b857 n/a (modem-manager-gui)
                #2  0x000056262e79c4de n/a (modem-manager-gui)
                #3  0x00007fe4e8da467b n/a (libglib-2.0.so.0)
                #4  0x00007fe4e8198a9d start_thread (libpthread.so.0)
                #5  0x00007fe4e80c8b23 __clone (libc.so.6)

any ideas ?

Offline

#10 2019-02-04 11:35:43

devil_kc
Member
Registered: 2008-09-14
Posts: 93

Re: modem-manager-gui is not running

also this:

$ gdb modem-manager-gui
GNU gdb (GDB) 8.2.1
...
(gdb) r
Starting program: /usr/bin/modem-manager-gui 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff3ee7700 (LWP 20967)]
[New Thread 0x7ffff36e6700 (LWP 20968)]
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
[New Thread 0x7fffebfff700 (LWP 20969)]

(modem-manager-gui:20963): GLib-CRITICAL **: 12:33:31.591: g_strrstr: assertion 'haystack != NULL' failed
double free or corruption (out)

Thread 1 "modem-manager-g" received signal SIGABRT, Aborted.
0x00007ffff7110d7f in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff7110d7f in raise () at /usr/lib/libc.so.6
#1  0x00007ffff70fb672 in abort () at /usr/lib/libc.so.6
#2  0x00007ffff7153878 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007ffff715a18a in  () at /usr/lib/libc.so.6
#4  0x00007ffff715bc50 in _int_free () at /usr/lib/libc.so.6
#5  0x00007ffff00fc1a5 in  () at /usr/lib/modem-manager-gui/modules/libmodmm_mm07.so
#6  0x00007ffff00fe5c3 in mmgui_module_devices_information () at /usr/lib/modem-manager-gui/modules/libmodmm_mm07.so
#7  0x000055555557aec4 in mmguicore_devices_open ()
#8  0x000055555558d775 in  ()
#9  0x000055555559c337 in  ()
#10 0x00005555555782f1 in mmgui_svcmanager_start_services_activation ()
#11 0x000055555557ddc6 in mmguicore_start ()
#12 0x00007ffff72fe3c5 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff72eb195 in  () at /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff72ef01e in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff72efa80 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff73be249 in  () at /usr/lib/libgio-2.0.so.0
#17 0x00007ffff73bd89b in g_application_run () at /usr/lib/libgio-2.0.so.0
#18 0x0000555555567c09 in main ()
(gdb) 

Offline

#11 2019-02-06 23:49:02

cluxter
Member
Registered: 2015-08-10
Posts: 11

Re: modem-manager-gui is not running

I found a workaround that might help debugging this issue.
Note that my computer is a Lenovo ThinkPad X1 Tablet Gen 3 if it can help.

I start my computer, I open xfce4 and NetworkManager asks for the PIN code of the SIM card.
If I run modem-manager-gui at this moment, it will display a warning saying something like "The SIM card is locked, click here to provide the PIN code".
So I unlock the SIM card (either using NetworkManager or modem-manager-gui, it doesn't matter) and I can use it through modem-manager-gui (and also through NetworkManager).

Now I close modem-manager-gui, reboot the computer (not shutdown), and the PIN code is not asked anymore. I can use the SIM card through NetworkManager though.
At this point, if I try to run modem-manager-gui, I will get the error:

Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
munmap_chunk(): invalid pointer
Abandon (core dumped)

So I used the hardware switch to turn off all the network cards, turned them on again, and I was able to run modem-manager-gui successfully.

So it looks like rebooting doesn't properly reset the LTE network card and causes some issues.

Offline

#12 2019-02-07 09:44:39

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

What @cluxter describes seem to hold true for my X1 Carbon.
I was able to run the modem-manager-gui fine yesterday, but today it refuses to work again, with the exact same symptoms.
Running an update results in nothing, latest updates that were installed on my machine was yesterday: Signal messenger and Vivaldi browser.

modem-manager-gui 
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
free(): invalid pointer
Aborted (core dumped)
          PID: 31619 (modem-manager-g)
           UID: 1000 (martijndvrieze)
           GID: 1000 (martijndvrieze)
        Signal: 6 (ABRT)
     Timestamp: Thu 2019-02-07 10:40:43 CET (3min 1s ago)
  Command Line: modem-manager-gui
    Executable: /usr/bin/modem-manager-gui
 Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (martijndvrieze)
       Boot ID: 006f6685e7774029a3256d959c099cf0
    Machine ID: 81dc296ca7f34dcc8b5e87cdc063e0e9
      Hostname: StashRider
       Storage: /var/lib/systemd/coredump/core.modem-manager-g.1000.006f6685e7774029a3256d959c099cf0.31619.1549532443000000.lz4
       Message: Process 31619 (modem-manager-g) of user 1000 dumped core.
                
                Stack trace of thread 31619:
                #0  0x00007ffa840c4d7f raise (libc.so.6)
                #1  0x00007ffa840af672 abort (libc.so.6)
                #2  0x00007ffa84107878 __libc_message (libc.so.6)
                #3  0x00007ffa8410e18a malloc_printerr (libc.so.6)
                #4  0x00007ffa8410f97c _int_free (libc.so.6)
                #5  0x00007ffa78daa1a5 n/a (libmodmm_mm07.so)
                #6  0x00007ffa78dac5c3 mmgui_module_devices_information (libmodmm_mm07.so)
                #7  0x00005599daa31ec4 mmguicore_devices_open (modem-manager-gui)
                #8  0x00005599daa44775 n/a (modem-manager-gui)
                #9  0x00005599daa53337 n/a (modem-manager-gui)
                #10 0x00005599daa2f2f1 mmgui_svcmanager_start_services_activation (modem-manager-gui)
                #11 0x00005599daa34dc6 mmguicore_start (modem-manager-gui)
                #12 0x00007ffa842b23c5 g_closure_invoke (libgobject-2.0.so.0)
                #13 0x00007ffa8429f195 n/a (libgobject-2.0.so.0)
               #14 0x00007ffa842a301e g_signal_emit_valist (libgobject-2.0.so.0)
                #15 0x00007ffa842a3a80 g_signal_emit (libgobject-2.0.so.0)
                #16 0x00007ffa84372249 n/a (libgio-2.0.so.0)
                #17 0x00007ffa8437189b g_application_run (libgio-2.0.so.0)
                #18 0x00005599daa1ec09 main (modem-manager-gui)
                #19 0x00007ffa840b1223 __libc_start_main (libc.so.6)
                #20 0x00005599daa1eefa _start (modem-manager-gui)
                
                Stack trace of thread 31620:
                #0  0x00007ffa8417dc21 __poll (libc.so.6)
                #1  0x00007ffa84e88540 n/a (libglib-2.0.so.0)
                #2  0x00007ffa84e8862e g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007ffa84e88682 n/a (libglib-2.0.so.0)
                #4  0x00007ffa84e6367b n/a (libglib-2.0.so.0)
                #5  0x00007ffa84258a9d start_thread (libpthread.so.0)
                #6  0x00007ffa84188b23 __clone (libc.so.6)
                
                Stack trace of thread 31634:
                #0  0x00007ffa8417dc21 __poll (libc.so.6)
                #1  0x00005599daa32857 n/a (modem-manager-gui)
                #2  0x00005599daa334de n/a (modem-manager-gui)
                #3  0x00007ffa84e6367b n/a (libglib-2.0.so.0)
                #4  0x00007ffa84258a9d start_thread (libpthread.so.0)
                #5  0x00007ffa84188b23 __clone (libc.so.6)
                
                Stack trace of thread 31621:
                #0  0x00007ffa8417dc21 __poll (libc.so.6)
                #1  0x00007ffa84e88540 n/a (libglib-2.0.so.0)
                #2  0x00007ffa84e895c2 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007ffa84332cb8 n/a (libgio-2.0.so.0)
                #4  0x00007ffa84e6367b n/a (libglib-2.0.so.0)
                #5  0x00007ffa84258a9d start_thread (libpthread.so.0)
                #6  0x00007ffa84188b23 __clone (libc.so.6)

Offline

#13 2019-02-18 08:54:12

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

So... Attempting to build the modem-manager-gui with debug I get all kinds of fun errors.
Latest one is the no-indicator.patch file not passing the validity check.

Any suggestions?
I have the PKGBUILD, adjusted it to contain the options = (debug !split)

PKGBUILD now looks like this:

# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Ilya Medvedev <medved55rus [at] gmail [dot] com>

pkgname=modem-manager-gui
pkgver=0.0.19.1
pkgrel=2
pkgdesc="Frontend for ModemManager daemon able to control specific modem functions"
arch=('x86_64')
url="https://linuxonly.ru/page/modem-manager-gui"
license=('GPL3')
depends=('gdbm' 'gtk3' 'gtkspell3' 'libnotify' 'modemmanager')
makedepends=('po4a' 'itstool')
optdepends=('networkmanager: monitor network traffic')
options=(debug !strip !emptydirs)
source=("https://download.tuxfamily.org/gsf/source/$pkgname-$pkgver.tar.gz"
        no-indicator.patch)
sha256sums=('0b9bae29f3cd3d99b3a61d5530097d576a5fa67d3215d54f3570cb20c6ca0bc2'
            '04f85c3d6e7dbf89f5767446a1884f1f45aaea4023a8d07981b819be181849b3')

prepare() {
  cd $pkgname-$pkgver
  # Revert to GTK+ status icon
  patch -Np1 -i ../no-indicator.patch
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}
 
package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}

Together with the PKGBUILD I pulled in the no-indicator.patch, which seems to be required.

still resulting in an error: Since I have no clue what this no-indicator.patch file does I have no way to fix it myself just now. Especially since I am trying to do this on my production (e.g. work) machine where i actually cannot afford to break my distro.

makepkg -f -s
==> Making package: modem-manager-gui 0.0.19.1-2 (ma 18 feb 2019 09:46:08 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found modem-manager-gui-0.0.19.1.tar.gz
  -> Found no-indicator.patch
==> Validating source files with sha256sums...
    modem-manager-gui-0.0.19.1.tar.gz ... Passed
    no-indicator.patch ... FAILED
==> ERROR: One or more files did not pass the validity check!

Offline

#14 2019-02-18 11:42:28

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

git clone git://git.archlinux.org/svntogit/community.git --single-branch --branch "packages/modem-manager-gui"
cd community/trunk/
makepkg -odd
==> Making package: modem-manager-gui 0.0.19.1-2 (Mon 18 Feb 2019 11:37:38 UTC)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Downloading modem-manager-gui-0.0.19.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1030k  100 1030k    0     0   971k      0  0:00:01  0:00:01 --:--:--  971k
  -> Found no-indicator.patch
==> Validating source files with sha256sums...
    modem-manager-gui-0.0.19.1.tar.gz ... Passed
    no-indicator.patch ... Passed
==> Extracting sources...
  -> Extracting modem-manager-gui-0.0.19.1.tar.gz with bsdtar
==> Starting prepare()...
patching file src/main.c
patching file src/main.h
==> Sources are ready.

Alternatively see Arch_Build_System#Retrieve_PKGBUILD_source_using_Git

Online

#15 2019-02-18 16:44:48

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

thanks for the help @loqs
I hadn't come to makepkg -odd smile

Ran modem-manager-gui through dbg:

(gdb) exec /usr/bin/modem-manager-gui 
(gdb) 
(gdb) run
Starting program: /usr/bin/modem-manager-gui 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff3b9b700 (LWP 15398)]
[New Thread 0x7ffff339a700 (LWP 15399)]
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
[New Thread 0x7fffebfff700 (LWP 15402)]
free(): invalid pointer

Thread 1 "modem-manager-g" received signal SIGABRT, Aborted.
0x00007ffff7119d7f in raise () from /usr/lib/libc.so.6

Offline

#16 2019-02-18 16:52:35

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

In gdb after run has produced the issue what is the out of

thread apply all bt full

Online

#17 2019-02-18 16:54:33

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

Here you go:

(gdb) thread apply all bt full

Thread 4 (Thread 0x7fffebfff700 (LWP 15402)):
#0  0x00007ffff71d2c21 in poll () at /usr/lib/libc.so.6
#1  0x000055555557c137 in  ()
#2  0x0000000000000000 in  ()

Thread 3 (Thread 0x7ffff339a700 (LWP 15399)):
#0  0x00007ffff71d2c21 in poll () at /usr/lib/libc.so.6
#1  0x00007ffff7edd540 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff7ede5c2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff7387cb8 in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007ffff7eb867b in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff72ada9d in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff71ddb23 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7ffff3b9b700 (LWP 15398)):
#0  0x00007ffff71d2c21 in poll () at /usr/lib/libc.so.6
#1  0x00007ffff7edd540 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff7edd62e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff7edd682 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007ffff7eb867b in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff72ada9d in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff71ddb23 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff454b980 (LWP 15394)):
#0  0x00007ffff7119d7f in raise () at /usr/lib/libc.so.6
#1  0x00007ffff7104672 in abort () at /usr/lib/libc.so.6
#2  0x00007ffff715c878 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007ffff716318a in  () at /usr/lib/libc.so.6
#4  0x00007ffff716497c in _int_free () at /usr/lib/libc.so.6
#5  0x00007ffff29b8a85 in mmgui_module_devices_update_location (mmguicore=mmguicore@entry=0x555555e83b40, device=device@entry=0x555555f02480) at mm07.c:1692
        mmguicorelc = 0x555555e83b40
        moduledata = <optimized out>
        data = 0x7fffe40cfd50
        iter = 0x555555f0ab70
        locationtype = 1
        locationdata = 0x7fffe40d0800
        locationstring = 0x555555f08383 "5402"
        strlength = 23
        error = 0x0
#6  0x00007ffff29baf33 in mmgui_module_devices_update_location (device=0x555555f02480, mmguicore=0x555555e83b40) at mm07.c:2013
        mmguicorelc = 0x555555e83b40
        moduledata = 0x555555e7c840
        device = 0x555555f02480
        data = <optimized out>
        strsize = 15
        statevalue = 19
        stateflag = 0
#7  0x00007ffff29baf33 in mmgui_module_devices_information (mmguicore=0x555555e83b40) at mm07.c:2013
        mmguicorelc = 0x555555e83b40
        moduledata = 0x555555e7c840
        device = 0x555555f02480
        data = <optimized out>
        strsize = 15
        statevalue = 19
        stateflag = 0
#8  0x000055555557b7a4 in  ()
#9  0x0000555555b9df50 in  ()
#10 0x4a5315dd99f41300 in  ()
#11 0x0000555555ea2230 in  ()
#12 0x0000555555adc790 in  ()
#13 0x00007fffffffd530 in  ()
#14 0x00007fffe40cbd40 in  ()
#15 0x00007fffffffd524 in  ()
#16 0x000055555558e055 in  ()
#17 0x00000015ffffd580 in  ()
#18 0x0000555555ead980 in  ()
#19 0x00000000cf8c3363 in  ()
#20 0x00007fffe40ccc90 in  ()
#21 0x0000000000000000 in  ()

Offline

#18 2019-02-18 17:31:34

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

https://bitbucket.org/linuxonly/modem-m … m07.c-1692

	if ((data != NULL) && (error == NULL)) {
		g_variant_get(data, "(a{uv})", &iter);
		while (g_variant_iter_next(iter, "{uv}", &locationtype, &locationdata)) {
			if ((locationtype == MODULE_INT_MODEM_LOCATION_SOURCE_3GPP_LAC_CI) && (locationdata != NULL)) {
				/*3GPP location*/
				strlength = 256;
				locationstring = g_strdup(g_variant_get_string(locationdata, &strlength));
				device->loc3gppdata[0] = (guint)strtol(strsep(&locationstring, ","), NULL, 10);
				device->loc3gppdata[1] = (guint)strtol(strsep(&locationstring, ","), NULL, 10);
				device->loc3gppdata[2] = (guint)strtol(strsep(&locationstring, ","), NULL, 16);
				device->loc3gppdata[3] = (guint)strtol(strsep(&locationstring, ","), NULL, 16);
				g_free(locationstring);

locationstring is allocated by g_strdup but g_free rejects the address as invalid.
Edit:
Please try the following test patch.

diff --git a/src/modules/mm07.c b/src/modules/mm07.c
index c081f6d..91715b5 100644
--- a/src/modules/mm07.c
+++ b/src/modules/mm07.c
@@ -1685,11 +1685,12 @@ static gboolean mmgui_module_devices_update_location(gpointer mmguicore, mmguide
 				/*3GPP location*/
 				strlength = 256;
 				locationstring = g_strdup(g_variant_get_string(locationdata, &strlength));
+				gchar * strstart = locationstring;
 				device->loc3gppdata[0] = (guint)strtol(strsep(&locationstring, ","), NULL, 10);
 				device->loc3gppdata[1] = (guint)strtol(strsep(&locationstring, ","), NULL, 10);
 				device->loc3gppdata[2] = (guint)strtol(strsep(&locationstring, ","), NULL, 16);
 				device->loc3gppdata[3] = (guint)strtol(strsep(&locationstring, ","), NULL, 16);
-				g_free(locationstring);
+				g_free(strstart);
 				g_variant_unref(locationdata);
 				g_debug("3GPP location: %u, %u, %4x, %4x\n", device->loc3gppdata[0], device->loc3gppdata[1], device->loc3gppdata[2], device->loc3gppdata[3]);
 			} else if ((locationtype == MODULE_INT_MODEM_LOCATION_SOURCE_GPS_RAW) && (locationdata != NULL)) {

Last edited by loqs (2019-02-18 21:19:05)

Online

#19 2019-02-19 12:20:06

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

Is that a patch on top of the no-indicator.patch? or instead of?

Offline

#20 2019-02-19 15:13:46

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

On top of.

Online

#21 2019-02-19 15:47:42

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

Unfortunately no dice.  Unless I did something wrong of course smile but I do see the patch being applied.

==> Making package: modem-manager-gui 0.0.19.1-2 (di 19 feb 2019 16:34:27 CET)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Found modem-manager-gui-0.0.19.1.tar.gz
  -> Found no-indicator.patch
  -> Found test.patch
==> WARNING: Skipping verification of source file checksums.
==> Extracting sources...
  -> Extracting modem-manager-gui-0.0.19.1.tar.gz with bsdtar
==> Starting prepare()...
patching file src/main.c
patching file src/main.h
patching file src/modules/mm07.c
==> Sources are ready.

then starting it normally:

 modem-manager-gui 
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
free(): invalid pointer
Aborted (core dumped)

dropped into dgb:

(gdb) exec /usr/bin/modem-manager-gui 
(gdb) run
Starting program: /usr/bin/modem-manager-gui 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff3b9b700 (LWP 31663)]
[New Thread 0x7ffff339a700 (LWP 31664)]
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0
[New Thread 0x7fffebfff700 (LWP 31667)]
free(): invalid pointer

Thread 1 "modem-manager-g" received signal SIGABRT, Aborted.
0x00007ffff7119d7f in raise () from /usr/lib/libc.so.6
Thread 4 (Thread 0x7fffebfff700 (LWP 31667)):
#0  0x00007ffff71d2c21 in poll () at /usr/lib/libc.so.6
#1  0x000055555557c137 in  ()
#2  0x0000000000000000 in  ()

Thread 3 (Thread 0x7ffff339a700 (LWP 31664)):
#0  0x00007ffff71d2c21 in poll () at /usr/lib/libc.so.6
#1  0x00007ffff7edd540 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff7ede5c2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff7387cb8 in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007ffff7eb867b in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff72ada9d in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff71ddb23 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7ffff3b9b700 (LWP 31663)):
#0  0x00007ffff71d2c21 in poll () at /usr/lib/libc.so.6
#1  0x00007ffff7edd540 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff7edd62e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff7edd682 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007ffff7eb867b in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff72ada9d in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff71ddb23 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff454b980 (LWP 31659)):
#0  0x00007ffff7119d7f in raise () at /usr/lib/libc.so.6
#1  0x00007ffff7104672 in abort () at /usr/lib/libc.so.6
#2  0x00007ffff715c878 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007ffff716318a in  () at /usr/lib/libc.so.6
#4  0x00007ffff716497c in _int_free () at /usr/lib/libc.so.6
#5  0x00007ffff29b8a85 in  () at /usr/lib/modem-manager-gui/modules/libmodmm_mm07.so
#6  0x00007ffff29baf33 in mmgui_module_devices_information () at /usr/lib/modem-manager-gui/modules/libmodmm_mm07.so
#7  0x000055555557b7a4 in  ()
#8  0x00005555556d3400 in  ()
#9  0x7cd75a70d0c2d800 in  ()
#10 0x0000555555ea0a30 in  ()
#11 0x0000555555ae9360 in  ()
#12 0x00007fffffffd510 in  ()
#13 0x00007fffe40c23a0 in  ()
#14 0x00007fffffffd504 in  ()
#15 0x000055555558e055 in  ()
#16 0x00000019ffffd560 in  ()
#17 0x0000555555ea8d60 in  ()
#18 0x000000007147f6f3 in  ()
#19 0x0000555555f02160 in  ()
#20 0x0000000000000000 in  ()

Offline

#22 2019-02-19 16:13:03

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

Try editing src/modem-manager-gui-0.0.19.1/src/modules/mm07.c locally around line 1687 and change it to

				locationstring = g_strdup(g_variant_get_string(locationdata, &strlength));
				g_free(locationstring);
				device->loc3gppdata[0] = 0;
				device->loc3gppdata[1] = 0;
				device->loc3gppdata[2] = 0;
				device->loc3gppdata[3] = 0;
				g_variant_unref(locationdata);

Then makepkg -efi to build the local version.  Please check the PKGBUILD still has the options enabled for debug symbols.
This is to try and determine if just allocating the string and freeing it still triggers the issue.
Edit:
moved g_free to immediately after g_strdup

Last edited by loqs (2019-02-19 16:32:50)

Online

#23 2019-02-19 20:42:58

martijndevrieze
Member
Registered: 2019-01-30
Posts: 9

Re: modem-manager-gui is not running

We have a winner!

modem-manager-gui 
Connection manager: Network Manager >= 0.9.0
Modem manager: Modem Manager >= 0.7.0

** (modem-manager-gui:11556): WARNING **: 21:40:59.984: Network Manager >= 0.9.0: GDBus.Error:org.freedesktop.NetworkManager.Settings.PermissionDenied: uid 1000 has no permission to perform this operation

And now it works again.

Offline

#24 2019-02-20 21:48:42

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: modem-manager-gui is not running

Online

#25 2019-02-27 09:40:23

devil_kc
Member
Registered: 2008-09-14
Posts: 93

Re: modem-manager-gui is not running

Just to confirm - it works on my computer too

thanks!

Offline

Board footer

Powered by FluxBB