Re: "Error accepting connection: Function not implemented", is this expected?

John Reiser <[email protected]> Sat, 24 Jun 2023 14:37:15 -0700
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>
> I am using Debian on RaspberryPi and everything is from the official
> apt package manager.
> 
> Hardware architecture: armv7l GNU/Linux
> OS version:            Raspbian GNU/Linux 11 (bullseye)
> Libmicrohttpd:         stable, 0.9.72-2 armhf
> Valgrind:              valgrind-3.7.0

Upgrade valgrind *TODAY*.  The current version is valgrind-3.21.0.
Valgrind-3.7.0 was released in November 2011: commit 261bffdb4c2a52014ee10b4d68a75db0ec5834e60.
It is a waste of everyone's time to chase "not implemented" in software
that is over 11 years old and has been updated frequently since then.


re: https://github.com/alex-lt-kong/public-address-client
Fix your bugs:
1. README.md:  libao-devel must be installed, else "#include ao/ao.h" fails.
2. gcc ./src/utils.c -c -O2 -Wall -pedantic -Wextra -Wc++-compat  -fsanitize=address -g
./src/utils.c: In function ‘handle_sound_name_queue’:
./src/utils.c:155:75: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
   155 |     syslog(LOG_INFO, "Currently playing: [%s], current sound_queue_size: %d",
       |                                                                          ~^
       |                                                                           |
       |                                                                           int
       |                                                                          %ld
   156 |            sound_realpath, qs);
       |                            ~~
       |                            |
       |                            size_t {aka long unsigned int}
./src/utils.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
   169 | }
       | ^

3. libasan is required.
4. libasan must be first in the list presented to /usr/bin/ld, else it does not work correctly:
    "ASan runtime does not come first in initial library list; you should
     either link runtime to your application or manually preload it with LD_PRELOAD."
    -----
    pac.out: $(SRC_DIR)/main.c queue.o utils.o
        $(CC) -lasan $(SRC_DIR)/main.c queue.o utils.o -o pac.out $(CFLAGS) $(LDFLAGS) $(SANITIZER)
    -----


-- 




_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users