Skip to content

Failing to intercept time in golang #1948

@sporksmith

Description

@sporksmith

Given the golang program:

package main

import (
	"fmt"
	"time"
)

func main() {
	fmt.Println(time.Now())
}

The output in both preload and ptrace mode is the host system time instead of simulation time. e.g.:

2022-03-03 18:28:00.602167415 +0000 UTC m=+0.000000001

Metadata

Metadata

Assignees

Labels

Type: BugError or flaw producing unexpected results

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions