Summary: | Unplug directly nokia n97 mini ( PC suite mode ) lead to crash | ||
---|---|---|---|
Product: | [Unmaintained] solid | Reporter: | Bruno Friedmann <bruno> |
Component: | networkmanagement-mobile | Assignee: | Lamarque V. Souza <lamarque> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | bruno, nt1277 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi Fix memory leak crashlog upon unplugging option icon 225 New crash information added by DrKonqi |
Description
Bruno Friedmann
2010-12-04 22:41:14 UTC
Created attachment 55225 [details]
New crash information added by DrKonqi
kded4 ($Id: kded.cpp 1204125 2010-12-06 11:17:10Z dfaure $) on KDE Platform 4.5.90 (4.6 RC1) using Qt 4.7.1
- What I was doing when the application crashed: After recharging the phone by the usb plug, (This time I didn't activate the PC Suite mode, just let the phone doing it's charging phase)
After several hours (+5 or 6) I get this crash.
Here's what the kernel said in dmesg
[31158.448416] process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time_ms instead.
[37593.158449] usb 2-4.4: new high speed USB device using ehci_hcd and address 8
[37593.244181] usb 2-4.4: New USB device found, idVendor=0421, idProduct=026a
[37593.244190] usb 2-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[37593.244198] usb 2-4.4: Product: Nokia N97 mini
[37593.244204] usb 2-4.4: Manufacturer: Nokia
[37593.244209] usb 2-4.4: SerialNumber: 358315039835228
[37593.245801] scsi5 : usb-storage 2-4.4:1.0
[37594.245829] scsi 5:0:0:0: Direct-Access Nokia S60 1.0 PQ: 0 ANSI: 0
[37594.246083] sd 5:0:0:0: Attached scsi generic sg2 type 0
[37594.248118] scsi 5:0:0:1: Direct-Access Nokia S60 1.0 PQ: 0 ANSI: 0
[37594.248289] sd 5:0:0:1: Attached scsi generic sg3 type 0
[37594.249121] sd 5:0:0:0: [sdb] 15638528 512-byte logical blocks: (8.00 GB/7.45 GiB)
[37594.250185] sd 5:0:0:0: [sdb] Write Protect is off
[37594.250189] sd 5:0:0:0: [sdb] Mode Sense: 03 00 00 00
[37594.250191] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[37594.251254] sd 5:0:0:1: [sdc] Attached SCSI removable disk
[37594.252835] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[37594.347378] sdb: sdb1
[37594.347385] sdb: p1 size 15720448 extends beyond EOD, enabling native capacity
[37594.350825] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[37594.351604] sdb: sdb1
[37594.351608] sdb: p1 size 15720448 extends beyond EOD, truncated
[37594.356201] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[37594.356205] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[40374.034002] usb 2-4.4: USB disconnect, address 8
[40430.022255] usb 2-4.4: new high speed USB device using ehci_hcd and address 9
[40430.108247] usb 2-4.4: New USB device found, idVendor=0421, idProduct=026c
[40430.108250] usb 2-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[40430.108253] usb 2-4.4: Product: Nokia N97 mini
[40430.108255] usb 2-4.4: Manufacturer: Nokia
[40430.108257] usb 2-4.4: SerialNumber: 358315039835228
[40430.337432] cdc_acm 2-4.4:1.1: ttyACM0: USB ACM device
[40430.338283] cdc_acm 2-4.4:1.3: ttyACM1: USB ACM device
[40430.338579] usbcore: registered new interface driver cdc_acm
[40430.338581] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
[40430.374438] NET: Registered protocol family 35
[40430.380766] usbcore: registered new interface driver cdc_ether
[40430.387276] usbcore: registered new interface driver rndis_host
[40430.397076] cdc_phonet: probe of 2-4.4:1.12 failed with error -22
[40430.397091] usbcore: registered new interface driver cdc_phonet
[40430.420474] usbcore: registered new interface driver rndis_wlan
[94609.561713] usb 2-4.4: USB disconnect, address 9
Nothing really related was found in .xsession-errors ( or I didn't catch it, due to the noise of others messages )
-- Backtrace (Reduced):
#6 QObject::~QObject (this=0xc8cb20, __in_chrg=<value optimized out>) at kernel/qobject.cpp:922
#7 0x00007f48d356fd4e in MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface (this=0xc8cb20, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.5.90/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp:48
#8 0x00007f48d356fd99 in MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface (this=0xc8cb20, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.5.90/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp:51
#9 0x00007f48ded8e10d in Solid::Control::ModemManagerPrivate::_k_modemInterfaceRemoved (this=0xa68bc0, udi=...) at /usr/src/debug/kdebase-workspace-4.5.90/libs/solid/control/modemmanager.cpp:166
#10 0x00007f48ded8e359 in Solid::Control::ModemManagerPrivate::qt_metacall (this=0xa68bc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff28b3080) at /usr/src/debug/kdebase-workspace-4.5.90/build/libs/solid/control/modemmanager_p.moc:82
Created attachment 55606 [details]
New crash information added by DrKonqi
kded4 ($Id: kded.cpp 1204125 2010-12-06 11:17:10Z dfaure $) on KDE Platform 4.5.90 (4.6 RC1) using Qt 4.7.1
- What I was doing when the application crashed:
I've to start quickly, and remove the phone from the computer, without using anything
-- Backtrace (Reduced):
#6 QObject::~QObject (this=0xc9e730, __in_chrg=<value optimized out>) at kernel/qobject.cpp:922
#7 0x00007f42f9b7bd4e in MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface (this=0xc9e730, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.5.90/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp:48
#8 0x00007f42f9b7bd99 in MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface (this=0xc9e730, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.5.90/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp:51
#9 0x00007f4308a3f10d in Solid::Control::ModemManagerPrivate::_k_modemInterfaceRemoved (this=0xd42340, udi=...) at /usr/src/debug/kdebase-workspace-4.5.90/libs/solid/control/modemmanager.cpp:166
#10 0x00007f4308a3f359 in Solid::Control::ModemManagerPrivate::qt_metacall (this=0xd42340, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff29c4af40) at /usr/src/debug/kdebase-workspace-4.5.90/build/libs/solid/control/modemmanager_p.moc:82
Well, I have investigated the problem but I still have no clue to why that is happening to your N97. There is no crash with my Samsung i8910 and my Sony MD300 when I remove them, actually I have not faced a crash for months when using my MD300 modem. I still use KDE SC 4.5.4 and Qt 4.6.3 though. During my investigations I have found a small memory leak in my Solid MM implementation. The leak happens when someone hooks the modem up and it happens only once per hook up, which is not that often so the "small" in my statement. I have a patch to fix it. I am not sure it breaks binary compatibility so I have not commit it yet. I will attach it and you can try it to see if it also fixes your problem. I think it will not, but hey, I am not always right :-) Created attachment 55621 [details]
Fix memory leak
Fix a small memory leak in Solid MM backend.
Thanks to have a look at it. I will try to build with the patch, but no guaranty about that, I'm normally using already made packages. But I've request some help. Next time I will check if the modem is know by networkmanager *** Bug 266818 has been marked as a duplicate of this bug. *** Created attachment 57441 [details]
crashlog upon unplugging option icon 225
This happens when unplugging my Option iCon 225 while using software version 0.9.1git20110127, too.
Git commit 800a48c828704c3d00f70e3296ca3dcf9947f302 by Lamarque V. Souza. Committed on 23/02/2011 at 03:12. Pushed by lvsouza into branch 'master'. Try to avoid the crash reported in bug 258852. I have not been able to reproduce it, I am not sure if this will work it out. CCBUG: 258852 M +1 -1 solid/modemmanager-0.4/modeminterface.cpp M +1 -1 solid/modemmanager-0.4/modeminterface.h http://commits.kde.org/kde-workspace/800a48c828704c3d00f70e3296ca3dcf9947f302 Created attachment 57951 [details]
New crash information added by DrKonqi
kded4 ($Id$) on KDE Platform 4.6.1 (4.6.1) using Qt 4.7.2
- What I was doing when the application crashed:
Unplug uncarefully my nokia n97 mini. When plugged no choice have been made between mode (Pc suite, mass storage etc).
-- Backtrace (Reduced):
#6 QObject::~QObject (this=0xe369d0, __in_chrg=<optimized out>) at kernel/qobject.cpp:923
#7 0x00007fdb1db95d4e in MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface (this=0xe369d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdebase-workspace-4.6.1/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp:48
#8 0x00007fdb1db95d99 in MMModemGsmNetworkInterface::~MMModemGsmNetworkInterface (this=0xe369d0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdebase-workspace-4.6.1/solid/modemmanager-0.4/modemgsmnetworkinterface.cpp:51
#9 0x00007fdb2381a0fd in Solid::Control::ModemManagerPrivate::_k_modemInterfaceRemoved (this=0x95d6e0, udi=...) at /usr/src/debug/kdebase-workspace-4.6.1/libs/solid/control/modemmanager.cpp:166
#10 0x00007fdb2381a349 in Solid::Control::ModemManagerPrivate::qt_metacall (this=0x95d6e0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffe7e4cdf0) at /usr/src/debug/kdebase-workspace-4.6.1/build/libs/solid/control/modemmanager_p.moc:82
*** Bug 270337 has been marked as a duplicate of this bug. *** Git commit e831217493451118982629fb747dac04b5628076 by Lamarque V. Souza. Committed on 23/02/2011 at 03:12. Pushed by lvsouza into branch 'KDE/4.6'. Try to avoid the crash reported in bug 258852. I have not been able to reproduce it, I am not sure if this will work it out. CCBUG: 258852 M +1 -1 solid/modemmanager-0.4/modeminterface.cpp M +1 -1 solid/modemmanager-0.4/modeminterface.h http://commits.kde.org/kde-workspace/e831217493451118982629fb747dac04b5628076 Git commit a0fc87f7e8ef5b01290a3ca5d2db59928e3d6449 by Lamarque V. Souza. Committed on 15/04/2011 at 03:19. Pushed by lvsouza into branch 'KDE/4.6'. Reverting e831217493451118982629fb747dac04b5628076 and applying a better solution suggested by André Wöbbeking. Thanks for helping me solve the MMModemInterface invalid free problem. CCBUG: 258852 M +6 -1 solid/modemmanager-0.4/modeminterface.cpp M +1 -1 solid/modemmanager-0.4/modeminterface.h M +1 -0 solid/modemmanager-0.4/modeminterface_p.h http://commits.kde.org/kde-workspace/a0fc87f7e8ef5b01290a3ca5d2db59928e3d6449 Git commit 56e1371b47c3ca2000728ac4d6d7d6025fe09974 by Lamarque V. Souza. Committed on 15/04/2011 at 03:19. Pushed by lvsouza into branch 'master'. Reverting e831217493451118982629fb747dac04b5628076 and applying a better solution suggested by André Wöbbeking. Thanks for helping me solve the MMModemInterface invalid free problem. CCBUG: 258852 (cherry picked from commit a0fc87f7e8ef5b01290a3ca5d2db59928e3d6449) M +6 -1 solid/modemmanager-0.4/modeminterface.cpp M +1 -1 solid/modemmanager-0.4/modeminterface.h M +1 -0 solid/modemmanager-0.4/modeminterface_p.h http://commits.kde.org/kde-workspace/56e1371b47c3ca2000728ac4d6d7d6025fe09974 I did some changes some weeks ago, can you test if this problem still happens? Hi Vincent, actually on a kde 4.6.4 base + Networkmanager 0.9.2 + Network plamoid (which didn't contain anymore thx NetworkManager) my phone provider connection. When I unplug, I didn't see any crash actually. Seems to be fixed. I let you close it with appropriate fix resolution |