create temp table foo (x blob) with no log;insert into foo values ( filetoblob('/dev/null', 'server') );
Throw a "22: Invalid argument" error on one of our servers.However, I can run the same statements on a simple server (dev licensed), with no issues at all.In both cases I run the statements as user informix.Also, the informix user can read from or write to /dev/null in either server without any issues from the command shell.I'd happily trace the appropriate oninit process, if I knew how to isolate it, or even if I knew how to reduce the number oninit's to a bare minimum, so as to make the trace more manageable.Any ideas as to what the issue might be, or how I could reveal the underlying cause would be much appreciated.Thanks in advance.
12819 0.000166 open("/dev/null", 16384, 00 <unfinished ...>12819 0.000135 SYS_openat(0xffffff9c, 0x6cae2fe0, 0x4000, 0) = -22
I believe the open function is provided by glibc.Which glibc version do you have on each platform?Regards,
$ uname -r4.15.0-106-generic
$ ldd $(which oninit)|grep -w libc libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f985f3cc000)$ cksum /lib/x86_64-linux-gnu/libc.so.6167294287 2030544 /lib/x86_64-linux-gnu/libc.so.6
$ /lib/x86_64-linux-gnu/libc.so.6GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.Copyright (C) 2018 Free Software Foundation, Inc.This is free software; see the source for copying conditions.There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE.Compiled by GNU CC version 7.3.0.libc ABIs: UNIQUE IFUNCFor bug reporting instructions, please see:<https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs>.