Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syscalls.retval type is too small for x86_64 #6

Open
AndrewFasano opened this issue Aug 18, 2021 · 1 comment
Open

Syscalls.retval type is too small for x86_64 #6

AndrewFasano opened this issue Aug 18, 2021 · 1 comment

Comments

@AndrewFasano
Copy link

When I generate a plog with syscalls_logger of an x86_64 guest running and try to import into a postgres DB I get the following error.

I believe this would be fixed if retval was changed to a bigint so it can store values up to 64 bit.

sqlalchemy.exc.DataError: (psycopg2.errors.NumericValueOutOfRange) integer out of range                                                                                                                                                                                                                                                                                                                                                                                                 [SQL: INSERT INTO syscalls (syscall_id, type, name, retval, thread_id, pc, execution_offset) VALUES (%(syscall_id)s, %(type)s, %(name)s, %(retval)s, %(thread_id)s, %(pc)s, %(execution_offset)s)]
[parameters: {'syscall_id': UUID('0695da25-109b-428f-ab9b-3d830cce2288'), 'type': 'Syscall', 'name': 'sys_mmap', 'retval': 140737354076160, 'thread_id': UUID('f55784d6-fd20-4baf-b70e-3562f7670de2'), 'pc': 140737348893203, 'execution_offset': 6265950}]
(Background on this error at: http://sqlalche.me/e/13/9h9h) 
@AndrewFasano
Copy link
Author

Here's the zipped plog: proc.plog.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant