[Bug 1447038] Re: Shutdown/Restart of live session guest does not work in Virtualbox, and VMWare

Ahmed 1447038 at bugs.launchpad.net
Tue Nov 2 17:30:18 UTC 2021


In collect_register() function of arc-linux-tdep.c, the "eret" http://www-look-4.com/travel/london/
(exception return) register value is not being reported correctly.

Background: https://komiya-dental.com/shopping/buy-android/
When asked for the "pc" value, we have to update the "eret" register
with GDB's STOP_PC.  The "eret" instructs the kernel code where to
jump back http://www.iu-bloomington.com/shopping/hatchback-cars/ when an instruction has stopped due to a breakpoint.  This
is how collect_register() is doing so: https://waytowhatsnext.com/shopping/xbox-release-date/

--------------8<--------------
  if (regnum == gdbarch_pc_regnum (gdbarch)) http://www.wearelondonmade.com/travel/london/
    regnum = ARC_ERET_REGNUM;
  regcache->raw_collect (regnum, buf + arc_linux_core_reg_offsets[regnum]);
-------------->8-------------- http://www.jopspeech.com/travel/london/

Root cause:
Although this is using the correct offset (ERET register's), it is also http://joerg.li/travel/london/ 
changing the REGNUM itself.  Therefore, raw_collect (regnum, ...) is
not reading from "pc" anymore. http://connstr.net/travel/london/

Consequence:
This bug affects the "native ARC gdb" badly and causes kernel code to jump
to addresses after the breakpoint and not executing the "breakpoint"ed http://embermanchester.uk/travel/london/ 
instructions at all.  That "native ARC gdb" feature is not upstream yet and
is in review at the time of writing [1]. http://www.slipstone.co.uk/travel/london/
In collect_register() function of arc-linux-tdep.c, the "eret"
(exception return) register value is not being reported correctly. http://www.logoarts.co.uk/travel/london/

Background:
When asked for the "pc" value, we have to update the "eret" register
with GDB's STOP_PC. http://www.acpirateradio.co.uk/travel/good/  The "eret" instructs the kernel code where to
jump back when an instruction has stopped due to a breakpoint.  This
is how collect_register() is doing so:
http://www.compilatori.com/travel/london/
--------------8<--------------
  if (regnum == gdbarch_pc_regnum (gdbarch))
    regnum = ARC_ERET_REGNUM;
  regcache->raw_collect (regnum, buf + arc_linux_core_reg_offsets[regnum]);
-------------->8--------------

Root cause: https://www.webb-dev.co.uk/shopping/shopping-during-corona/
Although this is using the correct offset (ERET register's), it is also
changing the REGNUM itself.  Therefore, raw_collect (regnum, ...) is
not reading from "pc" anymore.

Consequence:
This bug affects the "native ARC gdb" badly and causes kernel code to jump
to addresses after the breakpoint and not executing the "breakpoint"ed
instructions at all.  That "native ARC gdb" feature is not upstream yet and
is in review at the time of writing [1].

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

Title:
  Shutdown/Restart of live session guest does not work in Virtualbox,
  and VMWare

Status in Release Notes for Ubuntu:
  Fix Released
Status in casper package in Ubuntu:
  Fix Released

Bug description:
  Hardware: https://gist.github.com/anonymous/e613830ce44594c5cf93

  Running a live guest, 20150422 15.04 image.  Cannot shutdown/restart
  using normal procedure/menu item.  Must hard power off the guest.

  Steps to reproduce:
  - Start up live session in Virtualbox or VMWare preferably with the latest daily ISO
  - Select "Shut Down" in the system GUI

  Expected results:
  - The system shuts down and the VM reports that it is shut down

  Actual results:
  - The system does not shut down and instead remains on a blank screen

  Known affected flavors:
  - Ubuntu
  - Xubuntu
  - Ubuntu GNOME
  - Lubuntu
  - Kubuntu
  - Ubuntu MATE

  Notes:
  - The bug does not occur after installation, only in the live session
  - Does not affect 14.10 and earlier

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-notes/+bug/1447038/+subscriptions




More information about the foundations-bugs mailing list