VirtualBox

Opened 14 years ago

Closed 14 years ago

#7052 closed defect (fixed)

VBox causes host VGA/SVGA application segfault when the application does VGA port IO -> fixed in SVN/3.2.6

Reported by: wzis Owned by:
Component: host support Version: VirtualBox 3.2.4
Keywords: Cc:
Guest type: other Host type: Linux

Description

I have a Chinese/Japanese/Korean console terminal emulator which runs on Linux console virtual screens. The application will do VGA port in/out for displaying the CJK characters. The application ran fine before any VM in VBox starts. What I found is, once a VM in Vbox starts, ioperm call can still succeed, but any port_in/port_out to VGA ports (e.g. CRT_I/D, SEQ_I/D) on the Linux host (not Linux VM) will segfault. The issue remains even after all VM stopped and VBox processes exited. In other words: Only reboot of the host can fix the issue. I've tested with VMware server, and found no issue with VMWare. So, confirm this is a VBox compatibility issue.

Change History (4)

comment:1 by wzis, 14 years ago

The issue can be reproduced with the following simple C program (save it as /tmp/vga.c):

#include <stdio.h> #include <sys/io.h>

int main() { ioperm(0x3b4, 0x3df-0x3b4+1, 1); outb(0, 0x3d4) printf("CRT(0)=%d\n", inb(0x3d5)); }

/*----- end of the program -----*/

# cd /tmp # cc -o vga vga.c # chmod +s vga # ./vga

and then try to start a VM. Run /tmp/vga again, you will see the segmentation fault.

comment:2 by wzis, 14 years ago

Sorry, missing a ";" after the call to outb(0, 0x3d4).

comment:3 by Sander van Leeuwen, 14 years ago

Summary: VBox causes host VGA/SVGA application segfault when the application does VGA port IOVBox causes host VGA/SVGA application segfault when the application does VGA port IO -> fixed in SVN/3.2.6

Thanks for the report. Fixed in the next maintenance release.

comment:4 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use