TIP: Click on subject to list as thread! ANSI
echo: fmail_help
to: Fernando Toledo
from: Fernando Toledo
date: 2024-11-12 00:21:00
subject: Re: fmail linux malloc():

El 11/11/24 a las 23:49, Fernando Toledo escribi˘:
> El 11/11/24 a las 21:07, Fernando Toledo escribi˘:
>> El 11/11/24 a las 18:38, Wilfred van Velzen escribi˘:
> 
> I think that I found sometihng like a bug.
> 
> I save the area as ESP.PRUEBAS at area Mgr, then close, save config and 
> reopen fconfig.  Finally, the Area name seems that broken.
> 
> I paste a capture here:
> 
> https://downloads.bbs.docksud.com.ar/tmp/fmail_area.png
> 
> Saludos!

the issue seems to raise when call initAreaInfo() at line 175, i think 
that is here, the area name is not read corretly

(sorry, I don't have more skills on C code to help)


(gdb) set args mgr
(gdb) r
Starting program: /home/ragnarok/fido/fmail/fmail mgr
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FMail-lnx64-2.3.1.0 - The Fast Echomail Processor
Copyright (C) 1991-2024 by FMail Developers - All rights reserved

DEBUG cwd: /home/ragnarok/fido/fmail
DEBUG arg 0: /home/ragnarok/fido/fmail/fmail
DEBUG arg 1: mgr
DEBUG replaceDrive = ""
DEBUG configPath = "/home/ragnarok/fido/fmail/"
DEBUG gmtOffset=-10800 daylight=1 timezone=10800 tzname=-03--03


malloc(): invalid next size (unsorted)

Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=, 
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: No existe el fichero o el directorio.
(gdb) bt
#0  __pthread_kill_implementation (threadid=, 
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007ffff7e36f1f in __pthread_kill_internal (signo=6, 
threadid=) at ./nptl/pthread_kill.c:78
#2  0x00007ffff7de7fb2 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#3  0x00007ffff7dd2472 in __GI_abort () at ./stdlib/abort.c:79
#4  0x00007ffff7e2b430 in __libc_message (action=action@entry=do_abort, 
fmt=fmt@entry=0x7ffff7f45459 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#5  0x00007ffff7e4083a in malloc_printerr (str=str@entry=0x7ffff7f48590 
"malloc(): invalid next size (unsorted)") at ./malloc/malloc.c:5660
#6  0x00007ffff7e43974 in _int_malloc (av=av@entry=0x7ffff7f7ec60 
, bytes=3) at ./malloc/malloc.c:4001
#7  0x00007ffff7e44a8a in __GI___libc_malloc (bytes=) at 
./malloc/malloc.c:3315
#8  0x0000555555566563 in initAreaInfo () at 
/home/ragnarok/fido/fmail-code/areainfo.c:175
#9  0x00005555555724f2 in Mgr (argc=2, argv=0x7fffffffdcf8) at 
/home/ragnarok/fido/fmail-code/fmail.c:1966
#10 0x0000555555572ab6 in main (argc=2, argv=0x7fffffffdcf8) at 
/home/ragnarok/fido/fmail-code/fmail.c:2077
--- SBBSecho 3.21-Linux
                                                   
* Origin: Dock Sud BBS - http://bbs.docksud.com.ar (4:902/26)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.