Re: modem-manager hangs while starting up

2012-07-16 Thread Dan Williams
On Mon, 2012-07-16 at 20:31 +0200, rich...@ecos.de wrote:
> Hi,
> 
> it was not crashing, but simply doing nothing anymore (not detect any modem 
> at all). It waits forever inside of poll and the backtrace Harald sent, was 
> the place where the poll occurs.

Ah right, yeah.  Missing udev rules would do that.  So nevermind about
my question :)

Dan

> Hope this clarifies things a bit
> 
> Gerald
> 
> 
> > -Original Message-
> > From: Dan Williams [mailto:d...@redhat.com]
> > Sent: Monday, July 16, 2012 8:23 PM
> > To: Harald Jung
> > Cc: networkmanager-list@gnome.org
> > Subject: Re: modem-manager hangs while starting up
> > 
> > On Thu, 2012-07-12 at 09:07 +0200, Harald Jung wrote:
> > > Hi,
> > >
> > > finally the reason was the missing udev rule 80-mm-candidate.rules
> > 
> > Odd, ideally MM shouldn't be crashing there.  So that file was simply 
> > missing?
> > If that's the case, I'll test that and see if I can get the crash.
> > 
> > Dan
> > 
> > >
> > > Harald
> > >
> > > Am Dienstag, den 03.07.2012, 20:35 + schrieb Harald Jung:
> > > > okay .. i got the debugging symbols, but:
> > > >
> > > > (gdb) bt
> > > > #0  0xa3455c81 in poll () from /lib/libc.so.6
> > > > #1  0xa35361b0 in g_poll () from /usr/lib/libglib-2.0.so.0
> > > > #2  0x0011 in ?? ()
> > > > #3  0x in ?? ()
> > > > #4  0xa356c775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
> > > > #5  0xb044ca04 in ?? ()
> > > > Backtrace stopped: previous frame inner to this frame (corrupt
> > > > stack?)
> > > >
> > > > :(
> > > >
> > > > Am Dienstag, den 03.07.2012, 20:21 + schrieb Dan Williams:
> > > > > On Tue, 2012-07-03 at 21:44 +0200, Harald Jung wrote:
> > > > > > strange thing.. i've used the unstripped version and i get:
> > > > > >
> > > > > > GNU gdb (Gentoo 7.3.1 p2) 7.3.1
> > > > > > ...blah.
> > > > > > Reading symbols from /tmp/modem-manager...(no debugging
> > symbols
> > > > > > found)...done.
> > > > > >
> > > > > > is there a special configure or Makefile hook?
> > > > >
> > > > > Not specifically, but you could use CFLAGS including "-g -O0" to
> > > > > build the debugging into and turn off optimization.  That's
> > > > > usually enough to get at least function names in the stack traces.
> > > > >
> > > > > Dan
> > > > >
> > > > > >
> > > > > > Harald
> > > > > >
> > > > > > Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> > > > > > > Any chance you could get some debug symbols there?
> > > > > > >
> > > > > > > Dan
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > ___
> > > > > networkmanager-list mailing list
> > > > > networkmanager-list@gnome.org
> > > > > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> > > >
> > > >
> > > > ___
> > > > networkmanager-list mailing list
> > > > networkmanager-list@gnome.org
> > > > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> > >
> > >
> > 
> 
> 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: modem-manager hangs while starting up

2012-07-16 Thread richter
Hi,

it was not crashing, but simply doing nothing anymore (not detect any modem at 
all). It waits forever inside of poll and the backtrace Harald sent, was the 
place where the poll occurs.

Hope this clarifies things a bit

Gerald


> -Original Message-
> From: Dan Williams [mailto:d...@redhat.com]
> Sent: Monday, July 16, 2012 8:23 PM
> To: Harald Jung
> Cc: networkmanager-list@gnome.org
> Subject: Re: modem-manager hangs while starting up
> 
> On Thu, 2012-07-12 at 09:07 +0200, Harald Jung wrote:
> > Hi,
> >
> > finally the reason was the missing udev rule 80-mm-candidate.rules
> 
> Odd, ideally MM shouldn't be crashing there.  So that file was simply missing?
> If that's the case, I'll test that and see if I can get the crash.
> 
> Dan
> 
> >
> > Harald
> >
> > Am Dienstag, den 03.07.2012, 20:35 + schrieb Harald Jung:
> > > okay .. i got the debugging symbols, but:
> > >
> > > (gdb) bt
> > > #0  0xa3455c81 in poll () from /lib/libc.so.6
> > > #1  0xa35361b0 in g_poll () from /usr/lib/libglib-2.0.so.0
> > > #2  0x0011 in ?? ()
> > > #3  0x in ?? ()
> > > #4  0xa356c775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
> > > #5  0xb044ca04 in ?? ()
> > > Backtrace stopped: previous frame inner to this frame (corrupt
> > > stack?)
> > >
> > > :(
> > >
> > > Am Dienstag, den 03.07.2012, 20:21 + schrieb Dan Williams:
> > > > On Tue, 2012-07-03 at 21:44 +0200, Harald Jung wrote:
> > > > > strange thing.. i've used the unstripped version and i get:
> > > > >
> > > > > GNU gdb (Gentoo 7.3.1 p2) 7.3.1
> > > > > ...blah.
> > > > > Reading symbols from /tmp/modem-manager...(no debugging
> symbols
> > > > > found)...done.
> > > > >
> > > > > is there a special configure or Makefile hook?
> > > >
> > > > Not specifically, but you could use CFLAGS including "-g -O0" to
> > > > build the debugging into and turn off optimization.  That's
> > > > usually enough to get at least function names in the stack traces.
> > > >
> > > > Dan
> > > >
> > > > >
> > > > > Harald
> > > > >
> > > > > Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> > > > > > Any chance you could get some debug symbols there?
> > > > > >
> > > > > > Dan
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > ___
> > > > networkmanager-list mailing list
> > > > networkmanager-list@gnome.org
> > > > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> > >
> > >
> > > ___
> > > networkmanager-list mailing list
> > > networkmanager-list@gnome.org
> > > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> >
> >
> 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-16 Thread Dan Williams
On Thu, 2012-07-12 at 09:07 +0200, Harald Jung wrote:
> Hi,
> 
> finally the reason was the missing udev rule 80-mm-candidate.rules

Odd, ideally MM shouldn't be crashing there.  So that file was simply
missing?  If that's the case, I'll test that and see if I can get the
crash.

Dan

> 
> Harald
> 
> Am Dienstag, den 03.07.2012, 20:35 + schrieb Harald Jung:
> > okay .. i got the debugging symbols, but:
> > 
> > (gdb) bt
> > #0  0xa3455c81 in poll () from /lib/libc.so.6
> > #1  0xa35361b0 in g_poll () from /usr/lib/libglib-2.0.so.0
> > #2  0x0011 in ?? ()
> > #3  0x in ?? ()
> > #4  0xa356c775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
> > #5  0xb044ca04 in ?? ()
> > Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> > 
> > :(
> > 
> > Am Dienstag, den 03.07.2012, 20:21 + schrieb Dan Williams:
> > > On Tue, 2012-07-03 at 21:44 +0200, Harald Jung wrote:
> > > > strange thing.. i've used the unstripped version and i get:
> > > > 
> > > > GNU gdb (Gentoo 7.3.1 p2) 7.3.1
> > > > ...blah.
> > > > Reading symbols from /tmp/modem-manager...(no debugging symbols
> > > > found)...done.
> > > > 
> > > > is there a special configure or Makefile hook?
> > > 
> > > Not specifically, but you could use CFLAGS including "-g -O0" to build
> > > the debugging into and turn off optimization.  That's usually enough to
> > > get at least function names in the stack traces.
> > > 
> > > Dan
> > > 
> > > > 
> > > > Harald
> > > > 
> > > > Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> > > > > Any chance you could get some debug symbols there?
> > > > > 
> > > > > Dan
> > > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > ___
> > > networkmanager-list mailing list
> > > networkmanager-list@gnome.org
> > > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> > 
> > 
> > ___
> > networkmanager-list mailing list
> > networkmanager-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> 
> 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-12 Thread Harald Jung
Hi,

finally the reason was the missing udev rule 80-mm-candidate.rules


Harald

Am Dienstag, den 03.07.2012, 20:35 + schrieb Harald Jung:
> okay .. i got the debugging symbols, but:
> 
> (gdb) bt
> #0  0xa3455c81 in poll () from /lib/libc.so.6
> #1  0xa35361b0 in g_poll () from /usr/lib/libglib-2.0.so.0
> #2  0x0011 in ?? ()
> #3  0x in ?? ()
> #4  0xa356c775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
> #5  0xb044ca04 in ?? ()
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> 
> :(
> 
> Am Dienstag, den 03.07.2012, 20:21 + schrieb Dan Williams:
> > On Tue, 2012-07-03 at 21:44 +0200, Harald Jung wrote:
> > > strange thing.. i've used the unstripped version and i get:
> > > 
> > > GNU gdb (Gentoo 7.3.1 p2) 7.3.1
> > > ...blah.
> > > Reading symbols from /tmp/modem-manager...(no debugging symbols
> > > found)...done.
> > > 
> > > is there a special configure or Makefile hook?
> > 
> > Not specifically, but you could use CFLAGS including "-g -O0" to build
> > the debugging into and turn off optimization.  That's usually enough to
> > get at least function names in the stack traces.
> > 
> > Dan
> > 
> > > 
> > > Harald
> > > 
> > > Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> > > > Any chance you could get some debug symbols there?
> > > > 
> > > > Dan
> > > > 
> > > 
> > > 
> > 
> > 
> > ___
> > networkmanager-list mailing list
> > networkmanager-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/networkmanager-list
> 
> 
> ___
> networkmanager-list mailing list
> networkmanager-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-03 Thread Harald Jung
okay .. i got the debugging symbols, but:

(gdb) bt
#0  0xa3455c81 in poll () from /lib/libc.so.6
#1  0xa35361b0 in g_poll () from /usr/lib/libglib-2.0.so.0
#2  0x0011 in ?? ()
#3  0x in ?? ()
#4  0xa356c775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#5  0xb044ca04 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

:(

Am Dienstag, den 03.07.2012, 20:21 + schrieb Dan Williams:
> On Tue, 2012-07-03 at 21:44 +0200, Harald Jung wrote:
> > strange thing.. i've used the unstripped version and i get:
> > 
> > GNU gdb (Gentoo 7.3.1 p2) 7.3.1
> > ...blah.
> > Reading symbols from /tmp/modem-manager...(no debugging symbols
> > found)...done.
> > 
> > is there a special configure or Makefile hook?
> 
> Not specifically, but you could use CFLAGS including "-g -O0" to build
> the debugging into and turn off optimization.  That's usually enough to
> get at least function names in the stack traces.
> 
> Dan
> 
> > 
> > Harald
> > 
> > Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> > > Any chance you could get some debug symbols there?
> > > 
> > > Dan
> > > 
> > 
> > 
> 
> 
> ___
> networkmanager-list mailing list
> networkmanager-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-03 Thread Dan Williams
On Tue, 2012-07-03 at 21:44 +0200, Harald Jung wrote:
> strange thing.. i've used the unstripped version and i get:
> 
> GNU gdb (Gentoo 7.3.1 p2) 7.3.1
> ...blah.
> Reading symbols from /tmp/modem-manager...(no debugging symbols
> found)...done.
> 
> is there a special configure or Makefile hook?

Not specifically, but you could use CFLAGS including "-g -O0" to build
the debugging into and turn off optimization.  That's usually enough to
get at least function names in the stack traces.

Dan

> 
> Harald
> 
> Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> > Any chance you could get some debug symbols there?
> > 
> > Dan
> > 
> 
> 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-03 Thread Harald Jung
strange thing.. i've used the unstripped version and i get:

GNU gdb (Gentoo 7.3.1 p2) 7.3.1
...blah.
Reading symbols from /tmp/modem-manager...(no debugging symbols
found)...done.

is there a special configure or Makefile hook?


Harald

Am Dienstag, den 03.07.2012, 19:30 + schrieb Dan Williams:
> Any chance you could get some debug symbols there?
> 
> Dan
> 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-03 Thread Dan Williams
On Tue, 2012-07-03 at 21:28 +0200, Harald Jung wrote:
> T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=12d1 ProdID=1001 Rev= 0.00
> S:  Manufacturer=HUAWEI Technology
> S:  Product=HUAWEI Mobile
> C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA
> I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
> E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
> I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
> I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
> 
> Jul  3 22:23:14 ThinClient klogd: usbcore: registered new interface
> driver usbserial
> Jul  3 22:23:14 ThinClient klogd: usbcore: registered new interface
> driver usbserial_generic
> Jul  3 22:23:14 ThinClient klogd: USB Serial support registered for
> generic
> Jul  3 22:23:14 ThinClient klogd: usbserial: USB Serial Driver core
> Jul  3 22:23:14 ThinClient klogd: usbcore: registered new interface
> driver option
> Jul  3 22:23:14 ThinClient klogd: USB Serial support registered for GSM
> modem (1-port)
> Jul  3 22:23:14 ThinClient klogd: option 1-1.2:1.0: GSM modem (1-port)
> converter detected
> Jul  3 22:23:14 ThinClient klogd: usb 1-1.2: GSM modem (1-port)
> converter now attached to ttyUSB0
> Jul  3 22:23:14 ThinClient klogd: option 1-1.2:1.1: GSM modem (1-port)
> converter detected
> Jul  3 22:23:14 ThinClient klogd: usb 1-1.2: GSM modem (1-port)
> converter now attached to ttyUSB1
> Jul  3 22:23:14 ThinClient klogd: option 1-1.2:1.2: GSM modem (1-port)
> converter detected
> Jul  3 22:23:14 ThinClient klogd: usb 1-1.2: GSM modem (1-port)
> converter now attached to ttyUSB2
> 
> (gdb) backtrace
> #0  0x9d447c81 in poll () from /lib/libc.so.6
> #1  0x9d5281b0 in g_poll () from /usr/lib/libglib-2.0.so.0
> #2  0x0011 in ?? ()
> #3  0x in ?? ()
> #4  0x9d55e775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
> #5  0xb38358c4 in ?? ()

Any chance you could get some debug symbols there?

Dan

> 
> Harald
> 
> Am Dienstag, den 03.07.2012, 17:50 + schrieb Dan Williams:
> > On Tue, 2012-07-03 at 16:17 +0200, Harald Jung wrote:
> > > Hi there,
> > > 
> > > i've compiled the current modem-manager version 0.5.2.0 under a hardened
> > > gentoo.
> > > The kernel version is 3.4.4
> > > The modem-manager hangs while starting up
> > 
> > Can you gdb attach to ModemManager and get a backtrace of where it's at?
> > Also, what kind of modem is attached?  There are some devices that (due
> > to kernel bugs) block various file operations for about 5 or 10 seconds,
> > and that needs to be fixed in the kernel (option "send setup" blacklist,
> > to be specific).  This might be one of those.
> > 
> > Dan
> 
> 
> 


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-03 Thread Harald Jung

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1001 Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms

Jul  3 22:23:14 ThinClient klogd: usbcore: registered new interface
driver usbserial
Jul  3 22:23:14 ThinClient klogd: usbcore: registered new interface
driver usbserial_generic
Jul  3 22:23:14 ThinClient klogd: USB Serial support registered for
generic
Jul  3 22:23:14 ThinClient klogd: usbserial: USB Serial Driver core
Jul  3 22:23:14 ThinClient klogd: usbcore: registered new interface
driver option
Jul  3 22:23:14 ThinClient klogd: USB Serial support registered for GSM
modem (1-port)
Jul  3 22:23:14 ThinClient klogd: option 1-1.2:1.0: GSM modem (1-port)
converter detected
Jul  3 22:23:14 ThinClient klogd: usb 1-1.2: GSM modem (1-port)
converter now attached to ttyUSB0
Jul  3 22:23:14 ThinClient klogd: option 1-1.2:1.1: GSM modem (1-port)
converter detected
Jul  3 22:23:14 ThinClient klogd: usb 1-1.2: GSM modem (1-port)
converter now attached to ttyUSB1
Jul  3 22:23:14 ThinClient klogd: option 1-1.2:1.2: GSM modem (1-port)
converter detected
Jul  3 22:23:14 ThinClient klogd: usb 1-1.2: GSM modem (1-port)
converter now attached to ttyUSB2

(gdb) backtrace
#0  0x9d447c81 in poll () from /lib/libc.so.6
#1  0x9d5281b0 in g_poll () from /usr/lib/libglib-2.0.so.0
#2  0x0011 in ?? ()
#3  0x in ?? ()
#4  0x9d55e775 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#5  0xb38358c4 in ?? ()


Harald

Am Dienstag, den 03.07.2012, 17:50 + schrieb Dan Williams:
> On Tue, 2012-07-03 at 16:17 +0200, Harald Jung wrote:
> > Hi there,
> > 
> > i've compiled the current modem-manager version 0.5.2.0 under a hardened
> > gentoo.
> > The kernel version is 3.4.4
> > The modem-manager hangs while starting up
> 
> Can you gdb attach to ModemManager and get a backtrace of where it's at?
> Also, what kind of modem is attached?  There are some devices that (due
> to kernel bugs) block various file operations for about 5 or 10 seconds,
> and that needs to be fixed in the kernel (option "send setup" blacklist,
> to be specific).  This might be one of those.
> 
> Dan



___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: modem-manager hangs while starting up

2012-07-03 Thread Dan Williams
On Tue, 2012-07-03 at 16:17 +0200, Harald Jung wrote:
> Hi there,
> 
> i've compiled the current modem-manager version 0.5.2.0 under a hardened
> gentoo.
> The kernel version is 3.4.4
> The modem-manager hangs while starting up

Can you gdb attach to ModemManager and get a backtrace of where it's at?
Also, what kind of modem is attached?  There are some devices that (due
to kernel bugs) block various file operations for about 5 or 10 seconds,
and that needs to be fixed in the kernel (option "send setup" blacklist,
to be specific).  This might be one of those.

Dan

> ThinClient,initial:root:/usr/lib $ modem-manager --debug
> modem-manager[4195]:   [1341328334.850996] [main.c:167] main():
> ModemManager (version 0.5.2.0) starting...
> modem-manager[4195]:   [1341328334.853851] [mm-manager.c:120]
> load_plugin(): Loaded plugin AnyData
> modem-manager[4195]:   [1341328334.854050] [mm-manager.c:120]
> load_plugin(): Loaded plugin Generic
> modem-manager[4195]:   [1341328334.854316] [mm-manager.c:120]
> load_plugin(): Loaded plugin Gobi
> modem-manager[4195]:   [1341328334.854539] [mm-manager.c:120]
> load_plugin(): Loaded plugin Option High-Speed
> modem-manager[4195]:   [1341328334.854826] [mm-manager.c:120]
> load_plugin(): Loaded plugin Huawei
> modem-manager[4195]:   [1341328334.855023] [mm-manager.c:120]
> load_plugin(): Loaded plugin Longcheer
> modem-manager[4195]:   [1341328334.855242] [mm-manager.c:120]
> load_plugin(): Loaded plugin Ericsson MBM
> modem-manager[4195]:   [1341328334.855430] [mm-manager.c:120]
> load_plugin(): Loaded plugin MotoC
> modem-manager[4195]:   [1341328334.855700] [mm-manager.c:120]
> load_plugin(): Loaded plugin Nokia
> modem-manager[4195]:   [1341328334.855975] [mm-manager.c:120]
> load_plugin(): Loaded plugin Novatel
> modem-manager[4195]:   [1341328334.856185] [mm-manager.c:120]
> load_plugin(): Loaded plugin Option
> modem-manager[4195]:   [1341328334.856507] [mm-manager.c:120]
> load_plugin(): Loaded plugin Sierra
> modem-manager[4195]:   [1341328334.856715] [mm-manager.c:120]
> load_plugin(): Loaded plugin SimTech
> modem-manager[4195]:   [1341328334.856995] [mm-manager.c:120]
> load_plugin(): Loaded plugin ZTE
> 
> if i run a strace, the last lines are:
> open("/dev/.udev/data/n4", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 21
> fstat64(21, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb145c000
> read(21, "", 4096)  = 0
> close(21)   = 0
> munmap(0xb145c000, 4096)= 0
> poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7,
> events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10,
> events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13,
> events=POLLIN}, {fd=14, events=POLLIN}, {fd=15, events=POLLIN}, {fd=16,
> events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19,
> events=POLLIN}, {fd=20, events=POLLIN}, {fd=6, events=POLLIN}], 17, -1)
> = 1 ([{fd=4, revents=POLLIN}])
> read(5, 0xbfd6ca7c, 16) = -1 EAGAIN (Resource
> temporarily unavailable)
> write(5, "\1\0\0\0\0\0\0\0", 8) = 8
> recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\4\1\1\36\0\0\0\7\0\0\0\211
> \0\0\0\1\1o\0\25\0\0\0/org/fre"..., 2048}], msg_controllen=0,
> msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 806
> write(5, "\1\0\0\0\0\0\0\0", 8) = 8
> write(5, "\1\0\0\0\0\0\0\0", 8) = 8
> write(5, "\1\0\0\0\0\0\0\0", 8) = 8
> write(5, "\1\0\0\0\0\0\0\0", 8) = 8
> recvmsg(4, 0xbfd6c838, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource
> temporarily unavailable)
> write(5, "\1\0\0\0\0\0\0\0", 8) = 8
> poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
> events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11,
> events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14,
> events=POLLIN}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17,
> events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20,
> events=POLLIN}, {fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 17, 0) =
> 1 ([{fd=5, revents=POLLIN}])
> read(5, "\6\0\0\0\0\0\0\0", 16) = 8
> poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
> events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11,
> events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14,
> events=POLLIN}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17,
> events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20,
> events=POLLIN}, {fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 17, 0) =
&

modem-manager hangs while starting up

2012-07-03 Thread Harald Jung
Hi there,

i've compiled the current modem-manager version 0.5.2.0 under a hardened
gentoo.
The kernel version is 3.4.4
The modem-manager hangs while starting up

ThinClient,initial:root:/usr/lib $ modem-manager --debug
modem-manager[4195]:   [1341328334.850996] [main.c:167] main():
ModemManager (version 0.5.2.0) starting...
modem-manager[4195]:   [1341328334.853851] [mm-manager.c:120]
load_plugin(): Loaded plugin AnyData
modem-manager[4195]:   [1341328334.854050] [mm-manager.c:120]
load_plugin(): Loaded plugin Generic
modem-manager[4195]:   [1341328334.854316] [mm-manager.c:120]
load_plugin(): Loaded plugin Gobi
modem-manager[4195]:   [1341328334.854539] [mm-manager.c:120]
load_plugin(): Loaded plugin Option High-Speed
modem-manager[4195]:   [1341328334.854826] [mm-manager.c:120]
load_plugin(): Loaded plugin Huawei
modem-manager[4195]:   [1341328334.855023] [mm-manager.c:120]
load_plugin(): Loaded plugin Longcheer
modem-manager[4195]:   [1341328334.855242] [mm-manager.c:120]
load_plugin(): Loaded plugin Ericsson MBM
modem-manager[4195]:   [1341328334.855430] [mm-manager.c:120]
load_plugin(): Loaded plugin MotoC
modem-manager[4195]:   [1341328334.855700] [mm-manager.c:120]
load_plugin(): Loaded plugin Nokia
modem-manager[4195]:   [1341328334.855975] [mm-manager.c:120]
load_plugin(): Loaded plugin Novatel
modem-manager[4195]:   [1341328334.856185] [mm-manager.c:120]
load_plugin(): Loaded plugin Option
modem-manager[4195]:   [1341328334.856507] [mm-manager.c:120]
load_plugin(): Loaded plugin Sierra
modem-manager[4195]:   [1341328334.856715] [mm-manager.c:120]
load_plugin(): Loaded plugin SimTech
modem-manager[4195]:   [1341328334.856995] [mm-manager.c:120]
load_plugin(): Loaded plugin ZTE

if i run a strace, the last lines are:
open("/dev/.udev/data/n4", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 21
fstat64(21, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb145c000
read(21, "", 4096)  = 0
close(21)   = 0
munmap(0xb145c000, 4096)= 0
poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10,
events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13,
events=POLLIN}, {fd=14, events=POLLIN}, {fd=15, events=POLLIN}, {fd=16,
events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19,
events=POLLIN}, {fd=20, events=POLLIN}, {fd=6, events=POLLIN}], 17, -1)
= 1 ([{fd=4, revents=POLLIN}])
read(5, 0xbfd6ca7c, 16) = -1 EAGAIN (Resource
temporarily unavailable)
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"l\4\1\1\36\0\0\0\7\0\0\0\211
\0\0\0\1\1o\0\25\0\0\0/org/fre"..., 2048}], msg_controllen=0,
msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 806
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
recvmsg(4, 0xbfd6c838, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource
temporarily unavailable)
write(5, "\1\0\0\0\0\0\0\0", 8) = 8
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11,
events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14,
events=POLLIN}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20,
events=POLLIN}, {fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 17, 0) =
1 ([{fd=5, revents=POLLIN}])
read(5, "\6\0\0\0\0\0\0\0", 16) = 8
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11,
events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14,
events=POLLIN}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20,
events=POLLIN}, {fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 17, 0) =
0 (Timeout)
read(5, 0xbfd6ca7c, 16) = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11,
events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14,
events=POLLIN}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17,
events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=20,
events=POLLIN}, {fd=6, events=POLLIN}, {fd=4, events=POLLIN}], 17, 0) =
0 (Timeout)
read(5, 0xbfd6ca7c, 16) = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8,
events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11,
events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN