Bugs item #3314093, was opened at 2011-06-09 08:36
Message generated for change (Settings changed) made by rd235
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=611248&aid=3314093&group_id=95403

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: vde_switch
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: renzo davoli (rd235)
Summary: malloc assertion fails when vdeterm is run

Initial Comment:
Hi,

I'm using the pdump plugin on vde_switch and use wireshark via cat and ssh to 
monitor the traffic of the switch remotely. After setting up this monitoring 
configuration, running "vdeterm /path/to/mgmt_socket" gives the following error:

---
VDE switch V.2.2.3
(C) Virtual Square Team (coord. R. Davoli) 2005,2006,2007 - GPLv2

vdeterm: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
*) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned 
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 
0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted
---

Running the same command under valgrind gives:

---
==1810== Invalid write of size 8
==1810==    at 0x52BAE08: vdehist_create_commandlist (libvdehist.c:224)
==1810==    by 0x52BBF64: vdehist_new (libvdehist.c:571)
==1810==    by 0x400F7A: main (vdeterm.c:139)
==1810==  Address 0x5a583d8 is 0 bytes after a block of size 376 alloc'd
==1810==    at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==1810==    by 0x52BADD1: vdehist_create_commandlist (libvdehist.c:220)
==1810==    by 0x52BBF64: vdehist_new (libvdehist.c:571)
==1810==    by 0x400F7A: main (vdeterm.c:139)
==1810== 
---

Apparently there's a pointer/memory allocation related problem. I haven't yet 
looked into the code much to pinpoint the bug, but I hope this can be fixed.

Cheers

----------------------------------------------------------------------

Comment By: tomlar (tomlar)
Date: 2011-06-10 11:36

Message:
I fetched the latest source via svn, and reinstalled vde. The problem seems
to be fixed, as you said. Thanks for the quick response.

----------------------------------------------------------------------

Comment By: renzo davoli (rd235)
Date: 2011-06-09 14:57

Message:
It seems to be the problem already solved in the SVN commit #441. Please
update the code to the latest svn and tell me if the problem is still
there.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=611248&aid=3314093&group_id=95403

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to