gosgood@bertha ~ $ ls -l /tmp/K38dn2uu.gmic
-rw-r--r-- 1 gosgood gosgood 1700462 May 11 08:04 /tmp/K38dn2uu.gmic
`gosgood@bertha $ od -a /tmp/K38dn2uu.gmic | less `
0000000 1 sp u i n t 8 sp l i t t l e _ e
0000020 n d i a n nl 1 sp 5 9 6 0 1 4 6 sp
0000040 1 sp 1 sp # 1 7 0 0 4 1 7 nl x fs l
0000060 = i etb [ F syn sp z } ~ enq us z L { R
...
If I attempt a second update, without removing this temporary, I:
Observe no HTTP protocol related network activity, according to modem idiot lights.
LeakSanitizer seems unhappy, but methinks for reasons unrelated to gmic, and more related to its hints about not working nicely with gdb and friends.
(gdb) run
Starting program: /home/gosgood/.local/bin/gmic update
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[gmic]./ Start G'MIC interpreter (v.3.3.6).
[gmic]./ Update command definition file '/home/gosgood/.config/gmic/update336.gmic' from the G'MIC server.
[gmic]./ End G'MIC interpreter.
==15264==LeakSanitizer has encountered a fatal error.
==15264==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==15264==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
[Inferior 1 (process 15264) exited with code 01]
(gdb)
Won’t see this Address Sanitizer double-free error ever again unless I recreate conditions 1-4, above. That’s it for now. May have a chance to poke around further later today. Morning chores now…
commit f3b23a09f691c1445718c9d5fae2394468072865 (HEAD -> develop, origin/develop)
Author: David Tschumperle <David.Tschumperle@unicaen.fr>
Date: Sat May 11 17:29:20 2024 +0200
Auto-commit for release 3.3.6_pre
commit e2ca0a41a22301e2fd88a03539cca163043febdf
Author: David Tschumperle <David.Tschumperle@unicaen.fr>
Date: Sat May 11 16:57:36 2024 +0200
cimg::load_network(): Try to fix double-free.
Details:
Current directory is ~/
GNU gdb (Gentoo 14.1 vanilla) 14.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gmic...
/home/gosgood/update: No such file or directory.
(gdb) set args update
(gdb) run
Starting program: /home/gosgood/.local/bin/gmic update
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Inferior 1 (process 23121) exited with code 01] # <-- because of LeakSanitizer being unhappy
(gdb)
Shell standard output:
[gmic]./ Start G'MIC interpreter (v.3.3.6).
[gmic]./ Update command definition file '/home/gosgood/.config/gmic/update336.gmic' from the G'MIC server.
[gmic]./ End G'MIC interpreter.
==23121==LeakSanitizer has encountered a fatal error.
==23121==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==23121==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
Update was fully processed:
gosgood@bertha ~ $ ls -la ~/.config/gmic
total 5832
drwxr-xr-x 2 gosgood gosgood 4096 May 11 12:24 .
drwx------ 41 gosgood gosgood 4096 May 11 11:58 ..
-rw-r--r-- 1 gosgood gosgood 5960146 May 11 12:24 update336.gmic
gosgood@bertha ~ $
And it is a pleasant spring day here on the northern reaches of the North American Atlantic seaboard. Perhaps I’ll write some documentation…