|
Message-ID: <20120815133257.GM20243@port70.net> Date: Wed, 15 Aug 2012 15:32:57 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: Todo for release? * Szabolcs Nagy <nsz@...t70.net> [2012-08-15 12:20:29 +0200]: > the main justification i see is that > we already support bsd err and warn > apis which are required to print > the __progname as well > (currently they don't and actually > a simple warn("hi"); segfaults here > with musl but i havent investigated > it) it seems warn(0) and err(1,0) segfault (they should handle fmt==0 before passing it to vfprintf) and they do not print the ': ' nor the __progname (perror works correctly) test program: #include <stdio.h> #include <err.h> int main() { warn("warntest"); warn(0); perror("perrortest"); perror(""); perror(0); } $ gcc err.c && ./a.out a.out: warntest: Success a.out: Success perrortest: Success Success Success $ musl-gcc err.c && ./a.out warntestNo error information Segmentation fault (core dumped)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.