mailing list of musl libc
 help / color / mirror / code / Atom feed
* gethostbyname2.c / 6476b8135760659b25c93ff9308425ca98a9e777 breaking asterisk 13 compatibility
@ 2017-08-24 11:39 Pirmin Walthert
  2017-08-24 11:40 ` Pirmin Walthert
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pirmin Walthert @ 2017-08-24 11:39 UTC (permalink / raw)
  To: musl

Hello

First thing: http://git.musl-libc.org/cgit/musl/commit/?id=6476b8135760
659b25c93ff9308425ca98a9e777 seems to break Asterisk compatibilty.
Asterisk crashes on every startup while loading modules. Using musl-git 
combined with the latest dynlink.c version before this commit works
fine. (1.1.16 has some startup crashes as well because of the bug fixed
with 27b3fd68f67b674440d21ea7ca5cf918d2e1559f).

Second: I'm currently debugging a strange memory corruption problem and
have just had a look at the gethostbyname2.c code:

I was wondering: why is it safe to do free(h) on the initial run when
*h has not been 

        static struct hostent *h;
        size_t size = 63;
        struct hostent *res;
        int err;
        do {
                free(h);

Best regards,

Pirmin


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-24 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 11:39 gethostbyname2.c / 6476b8135760659b25c93ff9308425ca98a9e777 breaking asterisk 13 compatibility Pirmin Walthert
2017-08-24 11:40 ` Pirmin Walthert
2017-08-24 12:47   ` Shiz
2017-08-24 13:02     ` Pirmin Walthert
2017-08-24 12:58 ` Timo Teras
2017-08-24 13:09   ` Pirmin Walthert
2017-08-24 16:17 ` Rich Felker
2017-08-24 16:24   ` Pirmin Walthert

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).