-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Fault on line read
samiam@samiam-h-pc-2:~/projects/pascal/pascal-p6$ pc test -l
PC compiler shell vs. 1.14 Copyright (C) 2025 S. A. Franco
Environment module path: /home/samiam/projects/pascal/pascal-p6/libs
Reading instruction file/home/samiam/projects/pascal/pascal-p6/bin/pc.ins
Final module path: /home/samiam/projects/pascal/pascal-p6/libs:/home/samiam/projects/pascal/pascal-p6/libs
Building /home/samiam/projects/pascal/pascal-p6/test.pas
P6 Pascal compiler vs. 0.4.x
Pascal-P6 complies with the requirements of Pascaline version 0.4
and the following annexes: A,B,C,E.
1 -8 program test(input, output);
2 -8
3 -8 var s: packed array [1..100] of char;
4 -8
5 -8 begin
6 5
7 5 readln(s:*);
8 14 writeln('You entered: ', s:*)
9 27
10 27 end.
Errors in program: 0
P6 Pascal AMD64/gcc 64 bit code generator vs. 0.4.x
Generating program
Program generation complete
Building executable
/usr/bin/ld: /home/samiam/projects/pascal/pascal-p6/libs/psystem.a(psystem.o): in function `resetfn':
/home/samiam/projects/pascal/pascal-p6/source/pgen/psystem.c:1935: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
Build complete
samiam@samiam-h-pc-2:~/projects/pascal/pascal-p6$ ./test
hi there
Segmentation fault (core dumped)
Metadata
Metadata
Assignees
Labels
No labels