home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 2292 
 Fernando Toledo to Wilfred van Velzen 
 Re: fmail linux malloc(): invalid next s 
 11 Nov 24 21:07:29 
 
TZUTC: -0300
MSGID: 387.fidonetfmailhel@4:902/26 2b97d3c5
REPLY: 2:280/464 67327a71
PID: Synchronet 3.20a-Linux master/24927388c nov 10 202 GCC 10.2.1
TID: SBBSecho 3.21-Linux master/24927388c nov 10 2024 05:44 GCC 10.2.1
BBSID: DOCKSUD
CHRS: UTF-8 4
El 11/11/24 a las 18:38, Wilfred van Velzen escribió:

Alo! Wilfred!

> 
>   FT> #9  0x00007ffff7e7bdd2 in opendir_tail (fd=4) at
>   FT> ../sysdeps/unix/sysv/linux/opendir.c:63
>   FT> #10 0x0000555555589fcf in Delete ()
>   FT> #11 0x0000555555577d86 in initMsg ()
>   FT> #12 0x000055555556ef78 in Toss ()
>   FT> #13 0x00005555555722a9 in main ()
> 
> It would help if you could compile in debug mode, with symbols present in
the compiled executable, but it seems to come from these lines:

I run with debug symbols:

Reading symbols from ./fmail...
(gdb) set args toss
(gdb) r
Starting program: /home/ragnarok/fido/fmail/fmail toss
[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: toss
DEBUG replaceDrive = ""
DEBUG configPath = "/home/ragnarok/fido/fmail/"
DEBUG gmtOffset=-10800 daylight=1 timezone=10800 tzname=-03--03


Scanning netmail directory...

DEBUG Delete-ing: /home/ragnarok/fido/fmail/netmail/*.fml
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=bytes@entry=4096) at ./malloc/malloc.c:4001
#7  0x00007ffff7e44a8a in __GI___libc_malloc (bytes=bytes@entry=4096) at 
./malloc/malloc.c:3315
#8  0x00007ffff7e218cc in __GI__IO_file_doallocate (fp=0x7fffffff3810) 
at ./libio/filedoalloc.c:101
#9  0x00007ffff7e2f0a0 in __GI__IO_doallocbuf (fp=0x7fffffff3810) at 
./libio/libioP.h:947
#10 __GI__IO_doallocbuf (fp=fp@entry=0x7fffffff3810) at ./libio/genops.c:342
#11 0x00007ffff7e2ccec in _IO_new_file_seekoff (fp=0x7fffffff3810, 
offset=0, dir=1, mode=) at ./libio/fileops.c:937
#12 0x00007ffff7e2df82 in _IO_new_file_attach 
(fp=fp@entry=0x7fffffff3810, fd=fd@entry=4) at ./libio/libioP.h:947
#13 0x00007ffff7e2a50d in __vdprintf_internal (d=4, 
format=0x5555555937f0 "%02u:%02u:%02u.%03u  ", 
arg=arg@entry=0x7fffffff3a10,
     mode_flags=mode_flags@entry=0) at ./libio/iovdprintf.c:44
#14 0x00007ffff7dfdd76 in __GI___dprintf (d=, 
format=) at ./stdio-common/dprintf.c:30
#15 0x0000555555577734 in writeLogLine (logHandle=4, s=0x7fffffff4be0 
"DEBUG Delete-ing: /home/ragnarok/fido/fmail/netmail/*.fml")
     at /home/ragnarok/fido/fmail-code/log.c:117
#16 0x0000555555577c59 in logEntry (s=0x7fffffff4be0 "DEBUG Delete-ing: 
/home/ragnarok/fido/fmail/netmail/*.fml", entryType=32768,
     errorLevel=0) at /home/ragnarok/fido/fmail-code/log.c:251
#17 0x0000555555577b2f in logEntryf (entryType=32768, errorLevel=0, 
fmt=0x55555559556b "DEBUG Delete-ing: %s%s")
     at /home/ragnarok/fido/fmail-code/log.c:217
#18 0x000055555558ab73 in Delete (path=0x5555555add10  
"/home/ragnarok/fido/fmail/netmail/",
     wildCard=0x5555555939d7 "*.fml") at 
/home/ragnarok/fido/fmail-code/utils.c:371
#19 0x000055555557857c in initMsg (noAreaFix=0) at 
/home/ragnarok/fido/fmail-code/msgmsg.c:241
#20 0x000055555556f413 in Toss (argc=2, argv=0x7fffffffdcf8) at 
/home/ragnarok/fido/fmail-code/fmail.c:986
#21 0x0000555555572902 in main (argc=2, argv=0x7fffffffdcf8) at 
/home/ragnarok/fido/fmail-code/fmail.c:2065
(gdb)




> 
> Line 238 in msgmsg.c:
>    Delete(config.netPath, "*."MBEXTB);
>    if (*config.pmailPath)
>      Delete(config.pmailPath, "*."MBEXTB);
> 
> Could it be you haven't set the netmail path directory for instance?

I setup all directories at System Info->Directories (all have absolute 
paths and these exists)

I dont have *.fml files at netmail directory as see the debug line:

DEBUG Delete-ing: /home/ragnarok/fido/fmail/netmail/*.fml
--- SBBSecho 3.21-Linux
 * Origin: Dock Sud BBS - http://bbs.docksud.com.ar (4:902/26)
SEEN-BY: 90/0 1 105/81 106/201 128/187 129/305 153/7715 218/700 226/30
SEEN-BY: 227/114 229/110 114 206 275 317 426 428 470 550 664 700 266/512
SEEN-BY: 280/464 282/1038 291/111 292/854 320/219 322/757 341/66 342/200
SEEN-BY: 396/45 460/58 633/280 712/848 900/0 106 902/0 19 26
PATH: 902/26 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca