[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-10-17 Thread Danny
I find an easy way to re-product this bug:
1. Attach an external bluetooth adapter.
bt-adapter -l:
Available adapters:
Accel-OB2 (00:1F:81:00:02:50)
2. Connect a bluetooth mouse (maybe other devices have the same problem) with 
the adapter
bt-device -l:
Added devices:
VGP-BMS33 (00:02:76:1F:23:76)
3. Disconnect the bluetooth mouse using bt-device -d VGP-BMS33.
4. Reconnect the bluetooth mouse with the adapter(It will auto-connect again 
after I execute step 3.).
5. Repeat step 3-4 several times, the system will crash to console with some 
Tainted info.

I use an external bluetooth adapter.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-10-17 Thread Seth Forshee
I've been looking at this some more today. I'm about to leave on
vacation, so for now I'm describing what I've found and unassigning
myself in case someone else wants to pick it up while I'm out.

As far as I can tell right now, there seems to be a race between adding
and deleting bluetooth HID devices. There is no serialization. Removal
is done on the hidp_session task (via hidp_del_connection), and adding
is done on whatever thread calls hidp_add_connection. If the device is
being torn down when hidp_del_connection runs, hidp_setup_hid may find
find the device that's being torn down and assume that it's legitimate
to use. Later when setting up sysfs paths the oops happens because the
sysfs_dirent in that device's kobject has already been freed.

I'm not sure exactly why this race exists, i.e. why a connection for the
same device is getting crated and torn down at the same time. Some
comments I've seen indicate that a disconnection could be happening due
to the device being unresponsive for a period. It's not implausible to
think that the device is powered of or forcibly disconnected during
suspend, causing such a timeout in communication with the device, and
that this ends up overlapping device reconnection during resume.

I'm not entirely sure that the above analysis is correct, but it's the
best explanation I've come up with so far.

** Changed in: linux (Ubuntu)
 Assignee: Seth Forshee (sforshee) = (unassigned)

** Summary changed:

- ubuntu 11.10 crashes when trying to wake up after suspend
+ NULL pointer dereference at 0039 (sysfs_create_dir+0x35) when 
resuming after suspend

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  NULL pointer dereference at 0039 (sysfs_create_dir+0x35)
  when resuming after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-10-16 Thread Danny
The some problem with ubuntu 11.10 final release.

lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 11.10
Release:11.10
Codename:   oneiric

uname -a:
Linux Danny-laptop 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 
x86_64 x86_64 x86_64 GNU/Linux

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-09-17 Thread Amit Rana
I installed 3.0.0.11-18 and ran 'sudo modprobe -r btusb' after this (as
I could not use mouse or touch pad) I ran 'sudo pm-suspend'. It
suspended nicely and woke up nicely.

Anything else I need to test?

** Changed in: linux (Ubuntu)
   Status: Incomplete = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-09-16 Thread Amit Rana
I tried with 3.0.0.11-18 and this time system didn't crash but it didnt
wake up either. Just showed a black screen and had to again hard reboot.

** Changed in: linux (Ubuntu)
   Status: Incomplete = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-09-16 Thread Seth Forshee
The crash is triggered by something in the bluetooth code, which didn't
change at all beteen 3.0.0-9.15 and 3.0.0-11.18, so it's unlikely the
problem really went away. Maybe the crash dump just isn't getting shown
on the screen for some reason. All the same, you could test whether or
not your machine is really alive by trying to interact with it via
networking (ssh into it or something like that).

I made a test build with all the changes from the relevant section of
the bluetooth code since the 3.0 kernel for you to try. Please test to
see whether or not the problem is fixed in this kernel.

http://people.canonical.com/~sforshee/lp837379/linux-3.0.0-11.18~lp837379v201109161343/

Is your bluetooth adapter internal or external? If it's external you
should try suspend/resume with it unplugged to see if that helps.
Otherwise try running 'sudo modprobe -r btusb' before suspending and see
what happens. Thanks!

** Changed in: linux (Ubuntu)
   Importance: Undecided = Medium

** Changed in: linux (Ubuntu)
   Status: Confirmed = Incomplete

** Changed in: linux (Ubuntu)
 Assignee: (unassigned) = Seth Forshee (sforshee)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-09-16 Thread Amit Rana
I tried the test kernel that you gave. It crashed, I am attaching the
the screen dump.

I will try other test cases later. I have internal bluetooth and I use
it for mouse (touchpad doesnt work, have raised separate bug) so the
problem is if i disable bluetooth before suspend I cant use mouse. I
will find out shell command to suspend and try this.

By the way if it helps suspend/wake up works perfect with 2.6.38-11
kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-09-16 Thread Amit Rana
** Attachment added: crash after using test kernel build
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+attachment/2415550/+files/2011-09-17%2010.55.21.jpg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-08-30 Thread Brad Figg
** Changed in: linux (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-08-30 Thread Amit Rana
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-08-30 Thread Seth Forshee
Amit: Please take a picture of your screen when this happens and attach
it to the bug. Thanks!

** Changed in: linux (Ubuntu)
   Status: Confirmed = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-08-30 Thread Brad Figg
** Changed in: linux (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 837379] Re: ubuntu 11.10 crashes when trying to wake up after suspend

2011-08-30 Thread Amit Rana
I am attaching the picture. This time I did see the desktop but before I
could reach it crashed. All the earlier times it never showed the
desktop.

Pls let me know if attached picture is readable and kindly ignore myself
in the background, tried some innovative ways to remove it but no
success :)

** Attachment added: crash on resume suspended system
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+attachment/2333774/+files/2011-08-30%2020.41.31.jpg

** Changed in: linux (Ubuntu)
   Status: Incomplete = New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/837379

Title:
  ubuntu 11.10 crashes when trying to wake up after suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/837379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs