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

NULL shown as NaN on riscv64 #161

Open
df7cb opened this issue Sep 19, 2024 · 3 comments
Open

NULL shown as NaN on riscv64 #161

df7cb opened this issue Sep 19, 2024 · 3 comments

Comments

@df7cb
Copy link

df7cb commented Sep 19, 2024

On the upcoming riscv64 architecture, one of the plr regression tests fails:

333s --- /tmp/autopkgtest-lxc.7bqf0u4m/downtmp/build.3wN/src/expected/out_args.out	2024-08-04 17:40:44.000000000 +0000
333s +++ /tmp/autopkgtest-lxc.7bqf0u4m/downtmp/build.3wN/src/results/out_args.out	2024-09-16 22:30:19.008266774 +0000
333s @@ -29,7 +29,7 @@
333s    x   |  y  
333s  ------+-----
333s    123 | 246
333s -      |    
333s +      | NaN
333s   42.5 |  85
333s  (3 rows)

https://ci.debian.net/packages/p/plr/testing/riscv64/51768178/

(This is on PG17, but since the architecture is new, I can't say if it worked on the older majors.)

@davecramer
Copy link
Collaborator

Any chance you can debug it or provide us access to a machine ?

@df7cb
Copy link
Author

df7cb commented Sep 19, 2024

Sorry it's kind of hard to get there. I haven't even managed to get the test suite running at build-time, i.e. at the moment it wants the package installed to the final location before make installcheck works (Debian packages install stuff to debian/tmp/$prefix, run the tests there, and then wrap the package). But looking at the Debian package git log, the problem back then looks like the same location that is failing now:

    Testing at build time does not work yet:

    Error in dyn.load("$6c69626469722f706c72") :
      unable to load shared object '/home/cbe/tmp/pg_virtualenv.aDRANl/data/13/regress/$6c69626469722f706c72':
      /home/cbe/tmp/pg_virtualenv.aDRANl/data/13/regress/$6c69626469722f706c72: cannot open shared object file: No such file or directory
    2020-10-06 16:10:25.670 CEST [854941] cbe@contrib_regression ERROR:  R interpreter expression evaluation error
    2020-10-06 16:10:25.670 CEST [854941] cbe@contrib_regression DETAIL:  R expression evaluation error caught in "dyn.load("\x246c69626469722f706c72")".
    2020-10-06 16:10:25.670 CEST [854941] cbe@contrib_regression STATEMENT:  select * from out__float8(ARRAY[123,NULL,42.5]);

I'll try poking around with it a bit more, but from reading the code a bit earlier this morning, it looks like a problem that might be anywhere and being unfamiliar with the code doesn't help.

@davecramer
Copy link
Collaborator

Error in dyn.load("$6c69626469722f706c72") : looks like the root of the problem.

Thanks!

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

2 participants