aboutsummaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
* gnunet-qr: Actually run gnunet-uri.Hartmut Goebel2019-04-03
|
* Add helper lib "gnunet-qr-utils.h".Hartmut Goebel2019-04-03
| | | | | | These functions are copied from dns/gnunet-helper-dns.c, move them into a common library. Or think about implementing a even more elaborate version.
* gnunet-qr: Simplify verbose messaging.Hartmut Goebel2019-04-03
|
* gnunet-qr: Reimplement in C - yet only a proof of concept.Hartmut Goebel2019-04-03
| | | | | | | | | | | | | | | | | | | Still to-do: * running gnunet-uri * Proper error handling * integration into build system (automake) Reimplementing in C was chosen since - official zbar python-bindings support python 2 only, - none of the other bindings available at PyPI supports the high-level "processor" interface which gnunet-qr uses - implementing bindings for zbar using ctypes required addin a lot of low-level error handling code, thus implementing in C seamed to be easier, - the programm is short, thus re-implementing is not such complicated, and - this allows to reduce the number of dependencies (here: another Python version), which should ease porting to other plattforms (zbar is a dependency anyway).
* fix ftbfsSchanzenbach, Martin2019-03-12
|
* change description of file expansion flagSchanzenbach, Martin2019-03-12
|
* move copying to restSchanzenbach, Martin2019-03-12
|
* fix bootstrapSchanzenbach, Martin2019-03-12
|
* move copying restSchanzenbach, Martin2019-03-12
|
* we probably need this file in distSchanzenbach, Martin2019-03-11
|
* actually add to pkgdirSchanzenbach, Martin2019-03-11
|
* attempted fix #5622Schanzenbach, Martin2019-03-02
|
* use existing pf probe function from network.c instead of re-implementing it ↵Christian Grothoff2019-03-02
| | | | in service.c
* cache PF support results from OS probe (#5553)Christian Grothoff2019-03-02
|
* fix for #5612Christian Grothoff2019-03-02
|
* chmod -x for src/util/gnunet-qr.py, fix warning pkgsrc throwsng02019-02-28
|
* add bytes recv/sent to URL request benchmarkingFlorian Dold2019-02-28
|
* add nonstring attribute to silence warningFlorian Dold2019-02-28
|
* Be explicit about truncation to silence warning.Florian Dold2019-02-28
| | | | | | | | | | | Newer GCCs do not like truncation and emit a warning. We don't want to disable truncation warnings (-Wnostringop-truncation), as in some cases these warnings can point to a security flaw. Using strcat instead of strncat is fine, since *both* equally overflow the destination buffer if not used carefully. See https://developers.redhat.com/blog/2018/05/24/detecting-string-truncation-with-gcc-8/
* 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>