[Nut-upsuser] Compiling on Solaris 8 sparc - configure errors

vom513 vom513 at gmail.com
Fri Dec 23 00:11:04 GMT 2022


> On Dec 22, 2022, at 10:23 AM, Jim Klimov <jimklimov+nut at gmail.com> wrote:
> 
> One thing that popped up in this quest was that Solaris 8 libc does not take kindly to code similar to:
> 
>     printf("%s", NULL);
> 
> ...which ends up dereferencing that NULL to check strlen() - and I suppose can happen when debug messages are logged with little regard to arguments (newer libc's are smarter about this).
> 
> Can you check if there are any core dump files lying around after your experiments (especially those at higher verbosity), or dmesg lines about such segfaults?

I actually do have a core file from upsmon.  Let me know if there’s somewhere I can attach it or upload it.  I’ve never really dealt with analyzing core files (is that a gdb thing ?).

# file core
core:           ELF 32-bit MSB core file SPARC Version 1, from 'upsmon'




More information about the Nut-upsuser mailing list