Questions tagged [pintos]

Pintos is a simple instructional operating system framework for the 80x86 architecture. The software supports kernel threads, loading and running user programs, and a file system, but it implements all of these in a very simple way.

Pintos OS - Git Repo

Courses using Pintos include:

58 questions
2
votes
3 answers

PintOS, kernel panic with -v option bochs on ubuntu

when i do "pintos -- run alarm-multiple" in .../build/ everything seems fine. but when i do "make check" in .../build/ all 7 tests failed with the same "Run didn't start up properly: no "pintos booting" message" pintos -v -k -T 60 --bochs -- -q …
Charles
  • 53
  • 1
  • 6
1
vote
0 answers

pintos userprogram-argument passing segmentation fault problem

I'm Working on Pintos Project 2 to prepare Operating System Course. After implementing argument passing, I enter below command. pintos -q run 'echo x' The result is like below. 0627antaechan@pintos-2:~/pintos/src/userprog/build$ pintos -q run 'echo…
안태찬
  • 59
  • 2
1
vote
1 answer

C unable to recognise function pointer types as the same

In a recent project, I've been struggling to fix this syntax error for the last hour or so; gcc complains about a type mismatch between what it says are two objects of identical type: ../../devices/timer.c: In function…
1
vote
1 answer

How to find the instruction causing crash using objdump

Hi I'm doing homework about operating system using Pintos. I was asked to find the faulting instruction in one test. The testing framework expected Pintos to output “do-nothing: exit(162)”. This is the standard message that Pintos prints when a…
1
vote
1 answer

./pintos run alarm-multiple command not creating threads

I have ubuntu version 18.04.3 running on virtual box. I have been trying to install pintos on qemu, but when I run ./pintos run alarm-multiple my qemu is stuck on loading. I am getting the following output: **WARNING: Image format was not…
1
vote
1 answer

Pop values from user stack inside interrupt handler

I'm trying to implement a handler for system calls in Pintos. Before the interrupt is raised the arguments for the system calls are pushed in the following way: /* Invokes syscall NUMBER, passing argument ARG0, and returns the return value as an…
eager2learn
  • 1,447
  • 4
  • 24
  • 47
1
vote
0 answers

Does every process has its own page directory?

I know that each process has its own page table for VPN to PPN mapping. But do they have separate page directory also?
anandthegreat
  • 61
  • 1
  • 9
1
vote
1 answer

shell script to 'make check' multiple times in Pintos

Right now, I am working with Pintos, and I want to do 'make check' multiple times at once by writing a shell script. what I thought was making a test-five.sh file with #!/bin/bash/ for i in 1 2 3 4 5 do make -j 8 check done I thought running…
victory
  • 151
  • 2
  • 9
1
vote
0 answers

Converting pointer to A into a pointer to structure B that A is embedded inside

In Pintos project, there is a macro that converting pointer like what I wrote in title. #define list_entry(LIST_ELEM, STRUCT, MEMBER) ((STRUCT *) ((uint8_t *) &(LIST_ELEM)->next - offsetof (STRUCT,…
wyldecat
  • 105
  • 1
  • 8
1
vote
1 answer

Same Makefile executing different commands in different computers

During installation of pintos, I had to run make. Following is the Makefile. all: setitimer-helper squish-pty squish-unix CC = gcc CFLAGS = -Wall -W LDFLAGS = -lm setitimer-helper: setitimer-helper.o squish-pty: squish-pty.o squish-unix:…
sai
  • 59
  • 4
1
vote
3 answers

How to automatically close QEMU window after end of its process

actually there is a same question before, How to automatically close the execution of the `qemu` after end of process? but I'm asking this issue again because no one has answered it yet. I'm trying to simulate pintos on qemu. And when I invoke a…
phraust
  • 123
  • 1
  • 9
1
vote
2 answers

Timeout in tests when running pintos

I am just getting started with the pintos projects, working from my home computer that is running ubuntu 14.04 x64 system. I'm able to compile the project from the src/threads/ directory, and the initial test pintos run alarm-multiple seems to work…
zay
  • 33
  • 1
  • 7
1
vote
1 answer

Pintos installation SIGVTALRM() redefined error

I got no error during installation, all make commands worked perfectly but in the end when I run "pintos run alarm-multiple", I'm getting the following error Prototype mismatch: sub main::SIGVTALRM () vs none at /home/suhas/bin/pintos line…
Suhas
  • 131
  • 1
  • 12
1
vote
1 answer

Pintos gdb is not working

I am working on pintos, for my os lab, however an important tool gdb is not working. Here is the link on their official website to use pintos http://web.stanford.edu/class/cs140/projects/pintos/pintos_10.html#SEC151 However with my installation of…
Varun
  • 31
  • 8
1
vote
1 answer

Pintos Examples

I am a new user of Linux and am trying to attempt Pintos Project #02 - User Programs. I've only installed Pintos and I was trying to build the examples by "make" and I get this error: 7fcdfb62f000-7fcdfb631000 rw-p 00000000 00:00 0…
user2839294
  • 51
  • 1
  • 5