No it's actually something I've done with the data being saved, and I don't know what, yet. It's happened again after I had changed something in my settings. I didn't have the .prefs file open at the time. Anyway the core stack at time of failure as I was closing the app:
Thread 1 "zzalog" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6,
no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation
(threadid=<optimized out>, signo=signo@entry=6,
no_tid=no_tid@entry=0)
at ./nptl/pthread_kill.c:44
#1 0x00007ffff60a9f1f in __pthread_kill_internal
(signo=6, threadid=<optimized out>) at
./nptl/pthread_kill.c:78
#2 0x00007ffff605afb2 in __GI_raise (sig=sig@entry=6)
at ../sysdeps/posix/raise.c:26
#3 0x00007ffff6045472 in __GI_abort () at ./stdlib/abort.c:79
#4 0x00007ffff609e430 in __libc_message
(action=action@entry=do_abort, fmt=fmt@entry=0x7ffff61b8459
"%s\n")
at ../sysdeps/posix/libc_fatal.c:155
#5 0x00007ffff60b383a in malloc_printerr
(str=str@entry=0x7ffff61b6040 "corrupted size vs. prev_size")
at ./malloc/malloc.c:5660
#6 0x00007ffff60b40fe in unlink_chunk
(p=<optimized out>, av=0x7ffff61f1c60
<main_arena>)
at ./malloc/malloc.c:1623
#7 0x00007ffff60b4280 in malloc_consolidate
(av=av@entry=0x7ffff61f1c60 <main_arena>) at
./malloc/malloc.c:4776
#8 0x00007ffff60b68a8 in _int_malloc
(av=av@entry=0x7ffff61f1c60 <main_arena>,
bytes=bytes@entry=4096)
at ./malloc/malloc.c:3961
#9 0x00007ffff60b7989 in __GI___libc_malloc
(bytes=bytes@entry=4096)
--Type <RET> for more, q to quit, c to continue without
paging--
at ./malloc/malloc.c:3323
#10 0x00007ffff60948cc in __GI__IO_file_doallocate
(fp=0x55555b310030)
at ./libio/filedoalloc.c:101
#11 0x00007ffff60a20a0 in __GI__IO_doallocbuf (fp=0x55555b310030)
at ./libio/libioP.h:947
#12 __GI__IO_doallocbuf (fp=fp@entry=0x55555b310030) at
./libio/genops.c:342
#13 0x00007ffff60a1478 in _IO_new_file_overflow (f=0x55555b310030,
ch=-1)
at ./libio/fileops.c:744
#14 0x00007ffff60a063e in _IO_new_file_xsputn
(n=35, data=<optimized out>, f=0x55555b310030) at
./libio/libioP.h:947
#15 _IO_new_file_xsputn (f=0x55555b310030, data=<optimized
out>, n=35)
at ./libio/fileops.c:1196
#16 0x00007ffff6095b63 in __GI__IO_fwrite
(buf=0x5555559396f8, size=1, count=35, fp=0x55555b310030)
at ./libio/libioP.h:947
#17 0x0000555555846893 in Fl_Preferences::RootNode::write()
(this=0x555555b42500) at
/home/philip/dev/fltk/src/Fl_Preferences.cxx:1483
#18 0x0000555555846361 in Fl_Preferences::RootNode::~RootNode()
(this=0x555555b42500, __in_chrg=<optimized out>)
at /home/philip/dev/fltk/src/Fl_Preferences.cxx:1395
#19 0x0000555555844c02 in Fl_Preferences::~Fl_Preferences()
(this=0x555555b42470, __in_chrg=<optimized out>)
at /home/philip/dev/fltk/src/Fl_Preferences.cxx:576
--Type <RET> for more, q to quit, c to continue without
paging--
#20 0x0000555555844c46 in Fl_Preferences::~Fl_Preferences()
(this=0x555555b42470, __in_chrg=<optimized out>)
at /home/philip/dev/fltk/src/Fl_Preferences.cxx:582
#21 0x00005555556ecd5e in tidy() () at src/main.cpp:862
#22 0x00005555556ee108 in main(int, char**) (argc=1,
argv=0x7fffffffdfc8)
at src/main.cpp:1220
(gdb) q
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/7d3e5167-9ba1-4da0-a2e0-bbbbe4e0dc3fn%40googlegroups.com.
From: 'Matthias Melcher' via fltk.general <fltkg...@googlegroups.com>
Sent: Friday, April 25, 2025 4:43 PM
To: fltk.general <fltkg...@googlegroups.com>
Subject: Re: [fltk.general] FLTK crash when saving preferences
Do you have a small piece of source code that can compile by itself and that shows this behavior. It would help me a lot if I can reproduce your crash here. Thank you.
Sorry, my use of preferences is quite complex, and it's something to do with that. I am also having sporadic malloc fails in other places. I even went as far as rebooting the machine to see if that improved matters. I need to step away from the problem for a while.