View Issue Details

IDProjectCategoryView StatusLast Update
0036528FPCRTLpublic2020-01-07 02:53
Reporterbald zhangAssigned ToFlorian 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformgenericOSlinuxOS Version
Product Version3.3.1Product Build3.0.4 on debian 10 
Target VersionFixed in Version3.3.1 
Summary0036528: fpLstat changed to call syscall_nr_fstatat, but flags is missing
Descriptionin trunk and fixes_3_2 both:
@rtl/linux/bunxsysc.inc line 524

the last param set to 0 but AT_SYMLINK_NOFOLLOW needed.

found on debian 10 on aarch64, fpc version 3.0.4 but merged this part from trunk


testing of pascal:
---
root@debian:~# strace -e newfstatat ./ending
newfstatat(AT_FDCWD, "/sys/block/vda", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
moe = 41ED


testing of c:
---
root@debian:~# strace -e newfstatat ./a
newfstatat(AT_FDCWD, "/sys/block/vda", {st_mode=S_IFLNK|0777, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
mode = a1ff

TagsNo tags attached.
Fixed in Revision43880
FPCOldBugId
FPCTarget-
Attached Files

Activities

Florian

2020-01-06 22:35

administrator   ~0120244

Thanks for reporting and figuring out.

bald zhang

2020-01-07 02:53

reporter   ~0120245

just hard coded this syscall to my program and testing passed on x86_64 and aarch64.

Issue History

Date Modified Username Field Change
2020-01-06 17:17 bald zhang New Issue
2020-01-06 22:35 Florian Assigned To => Florian
2020-01-06 22:35 Florian Status new => resolved
2020-01-06 22:35 Florian Resolution open => fixed
2020-01-06 22:35 Florian Fixed in Version => 3.3.1
2020-01-06 22:35 Florian Fixed in Revision => 43880
2020-01-06 22:35 Florian FPCTarget => -
2020-01-06 22:35 Florian Note Added: 0120244
2020-01-07 02:53 bald zhang Status resolved => closed
2020-01-07 02:53 bald zhang Note Added: 0120245