Re: gnugk: "error: chunk is already free"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Antoine,

I've recently fixed a bug in reload since the PWLib allocation
mechanism changed. I think thats what happening in your crash.

I would suggest you try the 2.2.7 snapshot and let us know if it
fixes your problem:
http://www.gnugk.org/pre-2.2.7.html

Regards,
Jan


Antoine Jacoutot wrote:
> Hi.
> 
> I'd appreciate any hint in resolving the following issue...
> 
> This is gnugk-2.2.6 on OpenBSD (openh323-1.19.0.1 and pwlib-1.12.0).
> When I issue the "reload" command on the gatekeeper, it crashes this 
> way:
> 
> 
> (gdb) run -t -c /etc/gnugk.ini -u _gnugk -o /var/log/gnugk/gnugk.log --pid /var/run/gnugk/gnugk.pid
> Starting program: /usr/local/bin/gnugk -t -c /etc/gnugk.ini -u _gnugk -o /var/log/gnugk/gnugk.log --pid /var/run/gnugk/gnugk.pid
> 
> OpenH323 Gatekeeper - The GNU Gatekeeper with ID 'GnuGk' started
> Gatekeeper(GNU) Version(2.2.6) Ext(pthreads=1,radius=1,mysql=0,pgsql=0,firebird=0,large_fdset=0,crypto/ssl=1) Build(Mar  5 2008, 20:05:05) Sys(OpenBSD amd64 4.3)
> 
> Listen on 192.168.1.39,127.0.0.1
> 
> This program is free software; you can redistribute it and/or
> modify it under the terms of the GNU General Public License
> as published by the Free Software Foundation; either version 2
> of the License, or (at your option) any later version.
> 
> 
> Disable Bandwidth Management
> [New process 23637, thread 0x4dcb1800]
> gnugk in free(): error: chunk is already free
> [New process 23637, thread 0x479d2000]
> 
> Program received signal SIGABRT, Aborted.
> [Switching to process 23637, thread 0x479d2000]
> 0x000000004cbb9a7a in kill () from /usr/lib/libc.so.43.0
> (gdb)
> (gdb) bt
> #0  0x000000004cbb9a7a in kill () from /usr/lib/libc.so.43.0
> #1  0x000000004cc007f5 in abort () at /usr/src/lib/libc/stdlib/abort.c:76
> #2  0x000000004cbd9f50 in wrterror (p=0x4cd08a4a "chunk is already free") at /usr/src/lib/libc/stdlib/malloc.c:495
> #3  0x000000004cbda00a in wrtwarning (p=0x4cd08a4a "chunk is already free") at /usr/src/lib/libc/stdlib/malloc.c:505
> #4  0x000000004cbdbcd5 in free_bytes (ptr=0x2) at /usr/src/lib/libc/stdlib/malloc.c:1721
> #5  0x000000004cbdbded in ifree (ptr=0x45a66eb0) at /usr/src/lib/libc/stdlib/malloc.c:1841
> #6  0x000000004cbdbf8f in free (ptr=0x45a66eb0) at /usr/src/lib/libc/stdlib/malloc.c:1907
> #7  0x0000000044dfb9b3 in PAbstractArray::DestroyContents() (this=0x4ec36ba0) at ../common/contain.cxx:893
> #8  0x0000000044dfb4bb in PContainer::Destruct() (this=0x4ec36ba0) at ../common/contain.cxx:810
> #9  0x0000000044dc5cc9 in PFile::SetFilePath(PString const&) (this=0x473d8000, newName=@0x97c030) at array.h:183
> #10 0x0000000044dc0e68 in PFile::Open(PFilePath const&, PFile::OpenMode, int) (this=0x473d8000, name=@0x982a00, mode=WriteOnly, opts=0)
>      at pchannel.cxx:1068
> #11 0x0000000044dc3a68 in PTextFile (this=0x473d8000, name=@0x982a00, mode=WriteOnly, opts=0) at osutil.inl:662
> #12 0x00000000004d5dcd in Gatekeeper::ReopenLogFile() () at gk.cxx:893
> #13 0x00000000004d205e in ReloadHandler() () at gk.cxx:128
> #14 0x00000000004405d1 in StatusClient::ExecCommand(PString) (this=0x4f6ce000, cmd=
>              {<PCharArray> = {<PBaseArray<char>> = {<PAbstractArray> = {<PContainer> = {<PObject> = {_vptr$PObject = 0x97fa20}, reference = 0x45a66dc0}, elementSize = 1, theArray = 0x45a66d40 "reload", allocatedDynamically = 1}, <No data fields>}, <No data fields>}, <No data fields>}) at GkStatus.cxx:1270
> #15 0x0000000000444582 in SimpleClassJobA<StatusClient, PString>::Run() (this=0x42d46680) at job.h:242
> #16 0x000000000041bb60 in Worker::Main() (this=0x5145ec00) at job.cxx:182
> #17 0x0000000044dd25f9 in PThread::PX_ThreadStart(void*) (arg=0x5c55) at tlibthrd.cxx:1361
> #18 0x00000000417b36cd in _thread_start () at /usr/src/lib/libpthread/uthread/uthread_create.c:244
> #19 0x000000000000001f in ?? ()
> Cannot access memory at address 0x4ec37008
> 
> 
> -- 
> Antoine

-- 
Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux