whole OS freezes seemingly randomly

Bug #1562618 reported by Vincent Gerris
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
High
Unassigned

Bug Description

I had some random freezes of the whole operating system.
No caps lock response or terminal switching, nothng.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-15-generic 4.4.0-15.31
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: vincent 1714 F.... pulseaudio
CurrentDesktop: Unity
Date: Sun Mar 27 23:46:02 2016
HibernationDevice: RESUME=UUID=8180a7b6-a1c0-494a-9f65-99a7b54f6deb
InstallationDate: Installed on 2015-11-01 (147 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
MachineType: LENOVO 20332
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-15-generic.efi.signed root=UUID=44fb018f-3dbd-4eb6-ab9a-6668de8d13d2 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-15-generic N/A
 linux-backports-modules-4.4.0-15-generic N/A
 linux-firmware 1.157
SourcePackage: linux
UpgradeStatus: Upgraded to xenial on 2016-03-25 (2 days ago)
dmi.bios.date: 12/26/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: 92CN26WW(V1.06)
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: AIUU1
dmi.board.vendor: LENOVO
dmi.board.version: 31900042STD
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo Yoga 2 11
dmi.modalias: dmi:bvnLENOVO:bvr92CN26WW(V1.06):bd12/26/2013:svnLENOVO:pn20332:pvrLenovoYoga211:rvnLENOVO:rnAIUU1:rvr31900042STD:cvnLENOVO:ct10:cvrLenovoYoga211:
dmi.product.name: 20332
dmi.product.version: Lenovo Yoga 2 11
dmi.sys.vendor: LENOVO

Revision history for this message
Vincent Gerris (vgerris) wrote :
summary: - whole OS freezes seeminly randomly
+ whole OS freezes seemingly randomly
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Vincent Gerris (vgerris) wrote :

some more info:
- it happened a few times when running apt-get update or upgrade (from a terminal)
- does not seem to be trigger a vt terminal switching as reported here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1542939

I ran an apt-get autoclean after which seemed to clean up a lot, haven't kept output unfortunately.
Not sure if it helped, but I do not have lockups very quicky.
Best relation I could make so far was the updating.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.5 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-wily/

Changed in linux (Ubuntu):
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi,

I started having problems after the upgrade to 16.04 beta.
I think the last kernel before the update from 15.10 was 4.2.0-35.
The mentioned bug report mentioned this being an issue with a graphics driver, I guess it is that.
The last freezes happened after playing video.

I installed the 4.5 kernel and I have been playing over an hour of video without freeze (still no freeze at vt switching either).

So now I have:
vincent@vincent-Lenovo-Yoga-2-11:~$ uname -a
Linux vincent-Lenovo-Yoga-2-11 4.5.0-040500-generic #201603140130 SMP Mon Mar 14 05:32:22 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Does this mean the 4.5 kernel will be included in the final 16.04 ?
added tag kernel-fixed-upstream.

Do I need to mark this a confirmed now?
I could test a little longer, but it seems ok.

Thank you.

tags: added: kernel-fixed-upstream
penalvch (penalvch)
tags: added: bios-outdated-92cn93ww kernel-fixed-upstream-4.5 needs-reverse-bisect regression-release
Revision history for this message
Vincent Gerris (vgerris) wrote :

unfortunately it seems I was to early.
I was fetching the xenial kernel git and got a freeze again.

Don't think the bios had any relevant fixes (at least not in the lenovo support doc about it).
any ideas on how to proceed?

Revision history for this message
Vincent Gerris (vgerris) wrote :

For keeping track:
 - just installed 4.6.0-040600rc1 and had a free
So overview:
 4.6.0-040600rc1 ->freeze
 4.5.0-->freeze
 4.4.15->freeze

Now on to try 4.3.6-040306

Revision history for this message
Vincent Gerris (vgerris) wrote :

Update:
4.3.6-> freeze
4.2.8 seems fine for now.
Will test
4.3.0-040300rc1 now

The last freezes all happened when running apr-get dist-upgrade

penalvch (penalvch)
tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-4.6-rc1
removed: kernel-fixed-upstream kernel-fixed-upstream-4.5 needs-reverse-bisect
Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi,

Unfortunately I had to reinstall windows to flash the bios, couldn't find another way that worked.
Bios is updated:
92CN93WW(V1.93)
08/19/2015

I have a fresh installation of the 16.04 daily built from yesterday.
I have had freezes on 4.4rc1 and 4.4 release.
If I am correct I also had it on 4.2.8 but I am not sure.

I hope this was not an issue because of an update.
The only post install action I did was adding bluetooth by adding a .hcd file, but a few kernels back this did not work anyway.
I have refrained from installing it for now and will keep testing.

thank you.

penalvch (penalvch)
tags: added: latest-bios-92cn93ww
removed: bios-outdated-92cn93ww
Revision history for this message
penalvch (penalvch) wrote :

Vincent Gerris, could you please test the latest mainline kernel (4.6-rc2) and advise to the results?

Revision history for this message
Vincent Gerris (vgerris) wrote :

HI Christopher,

I am currently running this:
vincent@vincent-Lenovo-Yoga-2-11:~/Downloads$ uname -a
Linux vincent-Lenovo-Yoga-2-11 4.4.0-16-generic #32-Ubuntu SMP Thu Mar 24 22:38:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I have done many downloads, watch video and I did not get any freezes after the update of the BIOS (and the reinstall of 16.04)

I was about to update the bug to Invalid, but I have installed 4.6-rc2 now and I will report my findings.
I will try to give it some time if that is ok with you, because the freezes happened rather random and sometimes after many hours of uptime.
It looks promising though, with the regular actions (file download or apt-get update/dist-upgrade) not having caused a freeze.

Thank for the support!

Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi Christopher,

I run this now:
vincent@vincent-Lenovo-Yoga-2-11:~$ uname -a
Linux vincent-Lenovo-Yoga-2-11 4.6.0-040600rc2-generic #201604031130 SMP Sun Apr 3 15:32:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

And I just had a freeze again. The last kernel (4.4.0-16)I was on at least ran way longer and I did not have any freeze yet.

I will continue testing that kernel now.
How would you like me to proceed?

Revision history for this message
Vincent Gerris (vgerris) wrote :

The 4.4.0-16 kernel gave me a freeze too recently. Ran really long without issues but on a next boot after testing the 4.6.0-rc2 it froze.

So I am basically back to where I was when I reported this, with the difference that the BIOS is the latest now.
I am not sure how to continue troubleshooting in the best way.

I am wondering if this can be a hardware issue and if it may have happened before the 16.04 update too, or that I just got lucky.
Given the unexpected conditions of the freeze (last time it was not during some download action) it is very hard to determine the cause.

Can anyone advise on what to do next?
I could try a pre 4.2 kernel or install windows to try and see if this keeps happening.
If anyone has a better idea, please let me know.
Would be great to be able to use the machine again with Linux running reliably.

Revision history for this message
Vincent Gerris (vgerris) wrote :

on goes the testing. Windows 10 installation with all drivers installed gave no freezes (although it was slow :) ).
Played many hours of video and run updates without issues.

Reinstalled Ubuntu 16.04, and got hang issues right after updating.
Installed 4.4.0-18 which froze also.

I enabled crashdump but that is not even triggered.
I will try to go back to the 4.2.0 kernel.

If anyone had any ideas in the mean time, I happy to try something else.
I have an SSD drive by the way and I saw nothing special in the mount output, not sure if that matters?

I am quite a bit in the dark here :)

Revision history for this message
Vincent Gerris (vgerris) wrote :

the saga continues. I am on this now:
Linux vincent-Lenovo-Yoga-2-11 4.2.0-040200-generic #201510260713 SMP Mon Oct 26 11:14:43 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

The bcmwl driver did not work, so I had to use this solution to make it work as a workaround:
https://github.com/longsleep/bcmwl-ubuntu/issues/10

Before that I watched video and did some downloads, without issues.

I saw this in dmesg which worried me a bit, but I have no freezes so far:

[48898.144263] ata1.00: exception Emask 0x10 SAct 0x40 SErr 0x40c0000 action 0xe frozen
[48898.144276] ata1.00: irq_stat 0x00000040, connection status changed
[48898.144285] ata1: SError: { CommWake 10B8B DevExch }
[48898.144293] ata1.00: failed command: READ FPDMA QUEUED
[48898.144308] ata1.00: cmd 60/08:30:38:5b:57/00:00:01:00:00/40 tag 6 ncq 4096 in
                        res 40/00:34:38:5b:57/00:00:01:00:00/40 Emask 0x10 (ATA bus error)
[48898.144316] ata1.00: status: { DRDY }
[48898.144328] ata1: hard resetting link
[48898.868269] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[48898.949146] ata1.00: configured for UDMA/133
[48898.949224] ata1: EH complete

could that be something that later kernels choke on?
It is still to early to be further conclusive so I'll keep on testing.

Please let me know if there is anything I can do to speed this up.
Thank you

Revision history for this message
penalvch (penalvch) wrote :

Vincent Gerris, could you please test the latest mainline kernel (4.6-rc4) and advise to the results?

Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi,

I installed the latest included kernel:
Linux vincent-Lenovo-Yoga-2-11 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I will test that and then the 4.6.0-rc4 after.

Is there anything patched there that could be a solution to the fix?

Thank you and regards,
Vincent

Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi,

I think I got a little further!
The 4.4.0-21 seemed to work flawlessly, untill I found out that when enabling bluetooth I got the freezes.
It even worked fine at first, but because the sound was crappy I changed the headphones profile to A2DP and then the freezes started as soon as I had network traffic by file transfer!

I can reproduce the freeze now by simply ding a file transfer over the network (over wifi) and then enable bluetooth.
In the 4.4.0 and the 4.6.0 the bluetooth patch is present that tries to load the driver and the BCM.hcd file in /lib/firmware/brcm/ .
This explains why the 4.2.0 kernel :
4.2.0-040200-generic #201510260713 SMP Mon Oct 26 11:14:43 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
seems to run fine, because it does not load any bluetooth driver.
On that one I see from dmesg:
[ 7.274842] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 7.274854] Bluetooth: BNEP filters: protocol multicast
[ 7.274870] Bluetooth: BNEP socket layer initialized

On the 4.4.21 with the bt support I see:
[ 14.519814] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 14.519821] Bluetooth: BNEP filters: protocol multicast
[ 14.519828] Bluetooth: BNEP socket layer initialized
[ 15.524279] Bluetooth: hci0: BCM: Reading local version info failed (-110)
[ 15.589273] Bluetooth: hci0: BCM: chip id 70
[ 15.605441] Bluetooth: hci0: BCM43142A
[ 15.605450] Bluetooth: hci0: BCM (001.001.011) build 0000
[ 16.218220] Bluetooth: hci0: BCM (001.001.011) build 0172
[ 16.235944] Bluetooth: hci0: Broadcom Bluetooth Device (43142)

The strange this is that it seems to have something to do with the audio profile.
It all worked fine with just crappy bluetooth audio until I tried to change the profile.
Strange there was that it didn't work neatly either, it required putting switches on and off and sometimes reloading the btusb driver.

Anyway, since I seem to have something reproducable, how can I proceed?
Thank you for the help!

Revision history for this message
Andrew (keen101) wrote :

Vincent, i am also tracking a similar bug (if not the same one). I too have been testing the latest upstream kernels as instructed. They all seem to have the same bug for me. My problems started after upgrading from 14.04 as well. Using my grub2 boot menu to select the oldest kernel i have seems to have no problems, but all the more recent ones do. Not sure if you will have the same results, but worth a try.

This is my bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1575467

Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi Andrew,

Thanks for pointing that out,as you can see I think I have identified the source of my issue. I don't see the relation to your bug directly. As long as my btusb module is not loaded I seem to have no issues.
Makes the purpose of the laptop kind of useless,because I play music over Bluetooth.

For all following:
I noriced that the freezes also happen when the hcd file is NOT present, so it doesn't seem to be in the binary part.
I hope any one will have a work around for bluetooth, I don't know when this was introduced.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Vincent Gerris (vgerris) wrote :

this issue is not solved. I have not had any suggestions on how to continue to troubleshoot this.
I was trying to test the 4.7 intel kernel mentioned here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1575467
but my wifi doesn't work :
https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1595765
so I cannot really test freezes.

I find it incredibly annoying that intel hasn't stepped up in fixing this.
It would be great if they can be informed by people with connections, there must be some people out there that want to keep up the good name of this company?

If anyone can tell me how to proceed please let me know.
Otherwise I will probably leave this to this bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1575467
or
https://bugzilla.kernel.org/show_bug.cgi?id=109051
thank you

Revision history for this message
Vincent Gerris (vgerris) wrote :

I am running the 4.7 994 kernel from here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/current/

My builtin wireless doesn't work, but I have bluetooth working and I can watch video and copy files with that on without a freeze.

I hope this helps anyone and I hope at some point the ubuntu mainline kernel will be fixed so everybody on Baytrail can be happy again.

This is a workaround, not a fix.

Revision history for this message
penalvch (penalvch) wrote :

Vincent Gerris, you were requested back in April to test the then latest mainline kernel, and you were making comments that didn't mention this.

Despite this, the latest mainline kernel is 4.7-rc5 (not drm-intel-nightly). Could you please advise to the results of this?

Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi Christopher,

I am not sure what you mean, I tested 4.6 rc4 which I mentioned freezing in the second post.
Maybe a misunderstanding?
I am running this now:
vincent@vincent-Lenovo-Yoga-2-11:~$ uname -a
Linux vincent-Lenovo-Yoga-2-11 4.7.0-040700rc5-generic #201606262232 SMP Mon Jun 27 02:34:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

that is the one you mean, right?
It seems to behave properly, at least no reproducible freezes. Playing sound over bluetooth as I type and doing a 2.5 gb file transfer of the same file I am playing over video.
No issues for me so far.

Thank you and regards!

Revision history for this message
penalvch (penalvch) wrote :

Vincent Gerris, the next step is to fully reverse commit bisect from kernel 4.6-rc1 to 4.7-rc5 in order to identify the last bad commit, followed immediately by the first good one. Once this good commit has been identified, it may be reviewed for backporting. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F ?

Please note, finding adjacent kernel versions is not fully commit bisecting.

Also, the kernel release names are irrelevant for the purposes of bisecting.

After the fix commit (not kernel version) has been identified, then please mark this report Status Confirmed.

Thank you for your help.

tags: added: kernel-fixed-upstream kernel-fixed-upstream-4.7-rc5 needs-reverse-bisect
Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi,

I've been on holiday, hence the delay in response.
In the mean time I have experienced freezes again with both the intel and the rc5 kernel.
Still no solution I guess.

I will reinstall windoze when I have time and upgrade the SSD firmware as some suggested.
Although I already read reports on that not solving the issue, I'll keep trying to find the issue.

About bisecting: I read this may not be very useful because of the possibility of multiple bugs causing the freeze.

Is it still usefull to do that?
I'll keep you posted of my findings. I don't understand why this does not seem to be a problem in Windows and why intel doesn't step in to get this fixed with priority?
Guess they want us to buy an AMD chipset next time.

cheers

Revision history for this message
Vincent Gerris (vgerris) wrote :

Hi,

Since I read of the vt bug being fixed, I tried another 4.4 kernel.
I also upgraded my SSD to the latest firmware.
I have:
ubuntu@ubuntu-Lenovo-Yoga-2-11:~$ uname -a
Linux ubuntu-Lenovo-Yoga-2-11 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I still get a freeze when I play bluetooth audio and do a file transfer.
I think I will try the same on Windows and see what happens.

I am considering dual boot to fix these issues if anyone can push this. The laptop is practicallly useless now and I actually need it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.