aboutsummaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
* gnunet-qr.py: align help with realityng02019-02-26
|
* gnunet-qr.py: back from the futureng02019-02-26
|
* make lint happyng02019-02-26
|
* gnunet-qr: If we error out before, we don't need to error again. This should ↵ng02019-02-26
| | | | fix the error message in the wrong place
* Fix syntax error in gnunet-qr. We can not handle this exception. Just read ↵ng02019-02-26
| | | | the README.
* fix #5611?ng02019-02-26
|
* gnunet-qr.py: More verbose information about required packagesng02019-02-26
|
* create more specific FC warningChristian Grothoff2019-02-26
|
* Add test for future in gnunet-qr.py. pylint will probably scream, but this ↵ng02019-02-26
| | | | should satisfy safety checks
* src/util: Add gnunet-qr to cleanfilesng02019-02-26
|
* fixng02019-02-26
|
* Merge branch 'master' of gnunet.org:gnunetng02019-02-26
|\
| * fix /tmp/rps directory creation, fix linkage, DCEChristian Grothoff2019-02-26
| |
* | Proposed fix for https://bugs.gnunet.org/view.php?id=5611ng02019-02-26
|/
* src/util: Use make 4.0 assignment operatorng02019-02-25
|
* temp fix for #5606Schanzenbach, Martin2019-02-24
|
* first try raw, unexpanded nameChristian Grothoff2019-02-24
|
* add missing \nChristian Grothoff2019-02-24
|
* ref bugnoteChristian Grothoff2019-02-24
|
* geq redefinition breaks texi2pdf, instead just avoid @geqChristian Grothoff2019-02-24
|
* util: build with external libatomicDaniel Golle2019-02-23
| | | | | | | | | | | | | | Recent versions of gcc on some architectures (MIPS, PPC, ...) moved atomic functions into a separate library. As we are using atomic load/store in util/time.c we may need to link libgnunetutil against libatomic for __atomic_load_8 and __atomic_store_8 to be defined. Fixes build problem on MIPS: ld: ./.libs/libgnunetutil.so: undefined reference to `__atomic_store_8' ld: ./.libs/libgnunetutil.so: undefined reference to `__atomic_load_8' collect2: error: ld returned 1 exit status Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* attempt fix #5578Schanzenbach, Martin2019-02-23
|
* port hashmap fixes to other maps, investigated #4905, clearly no longer ↵Christian Grothoff2019-02-20
| | | | possible, closing that one
* fix grow behavior of hash map for very large mapsChristian Grothoff2019-02-19
|
* additional santity check for MQ usersChristian Grothoff2019-02-19
|
* attempt fix #5578Schanzenbach, Martin2019-02-17
|
* Florian Weimer writes:Christian Grothoff2019-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Christian Grothoff: > I'm seeing some _very_ odd behavior with processes hanging on exit (?) > with GNU libc 2.28-6 on Debian (amd64 threadripper). This seems to > happen at random (for random tests, with very low frequency!) in the > GNUnet (Git master) testsuite when a child process is about to exit. It looks like you call exit from a signal handler, see src/util/scheduler.c: /** * Signal handler called for signals that should cause us to shutdown. */ static void sighandler_shutdown () { static char c; int old_errno = errno; /* backup errno */ if (getpid () != my_pid) exit (1); /* we have fork'ed since the signal handler was created, * ignore the signal, see https://gnunet.org/vfork discussion */ GNUNET_DISK_file_write (GNUNET_DISK_pipe_handle (shutdown_pipe_handle, GNUNET_DISK_PIPE_END_WRITE), &c, sizeof (c)); errno = old_errno; } In general, this results in undefined behavior because exit (unlike _exit) is not an async-signal-safe function. I suspect you either call the exit function while a fork is in progress, or since you register this signal handler multiple times for different signals: sh->shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown); sh->shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown); one call to exit might interrupt another call to exit if both signals are delivered to the process. The deadlock you see was introduced in commit 27761a1042daf01987e7d79636d0c41511c6df3c ("Refactor atfork handlers"), first released in glibc 2.28. The fork deadlock will be gone (in the single-threaded case) if Debian updates to the current release/2.28/master branch because we backported commit 60f80624257ef84eacfd9b400bda1b5a5e8e7816 ("nptl: Avoid fork handler lock for async-signal-safe fork [BZ #24161]") there. But this will not help you. Even without the deadlock, I expect you still experience some random corruption during exit, but it's going to be difficult to spot. Thanks, Florian
* fix assertion failure reported in #5578Christian Grothoff2019-02-16
|
* make clang shut up about #5573Christian Grothoff2019-02-16
|
* Fix bug reported by schanzen@ where bootstrap is not enough for our ↵ng02019-02-15
| | | | python2.7 script.
* Switch to python3.7 (integration-tests incomplete), continue using python2.7 ↵ng02019-02-14
| | | | | | for gnunet-qr with an incredible annoying workaround for autotools inability to deal with 2 major python versions at the same time Signed-off-by: ng0 <ng0@n0.is>
* fixing 'make dist' issuesChristian Grothoff2019-02-13
|
* Merge branch 'master' of gnunet.org:gnunetng02019-02-12
|\
| * another issue with the #5511 patchChristian Grothoff2019-02-12
| |
| * use idn2.h or idna.h depending on HAVE_LIBIDN/HAVE_LIBIDNChristian Grothoff2019-02-11
| |
* | util: futurize gnunet-qrng02019-02-12
|/ | | | Signed-off-by: ng0 <ng0@n0.is>
* fix service shutdown regressionChristian Grothoff2019-02-10
|
* untested fix for #5511Christian Grothoff2019-02-09
|
* Fix logging.Marcello Stanisci2019-02-07
| | | | Give GNUNET_FORCE_LOG priority over GNUNET_LOG.
* - Fix build of ats transport plugin not linking against libgnunetntSchanzenbach, Martin2019-02-05
| | | | - Add compat memrchr layer for Win32 and macOS
* add prototypes for handlers for incoming messagesChristian Grothoff2019-01-25
|
* fix use of strptimeChristian Grothoff2019-01-21
|
* Merge branch 'license/spdx'ng02019-01-16
|\
| * More spdx identifiers. For openrc service file, adjust the headerng02019-01-16
| | | | | | | | to reflect changes in Gentoo (->Foundation=>Authors).
| * src: for every AGPL3.0 file, add SPDX identifier.ng02019-01-14
| |
* | dedupChristian Grothoff2019-01-15
|/
* fix #5505Christian Grothoff2018-12-30
|
* make sure mono time uses atomicsChristian Grothoff2018-12-13
|
* add function to obtain monotonic timeChristian Grothoff2018-12-13
|
* make sure peer launches if default config not found and -c not givenChristian Grothoff2018-12-11
|