Pages: 1
Author Topic: I have defeated Valgrind  (63,826 Views)
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Posted on: June 22, 2010, 05:42:38 PM
valgrind: the 'impossible' happened:
   Killed by fatal signal
==28927==    at 0x3809D201: myvprintf_str (m_debuglog.c:530)
==28927==    by 0x3809D9E2: vgPlain_debugLog_vprintf (m_debuglog.c:877)
==28927==    by 0x380298E5: vprintf_WRK (m_libcprint.c:111)
==28927==    by 0x380299A7: vgPlain_printf (m_libcprint.c:143)
==28927==    by 0x38027A96: vgPlain_assert_fail (m_libcassert.c:259)
==28927==    by 0x74206572: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==28927==    at 0x4025016: realloc (vg_replace_malloc.c:525)
==28927==    by 0x80522C8: lua_table<int>::operator[](unsigned int) (lua_table.h:124)
==28927==    by 0x805197D: main (var4.cpp:375)


*beats chest like an ape*

*returns to looking for the problem manually*

All that happened was realloc() took a shit. I'll look into why next. But this is why you've not heard updates.

Edit (three minutes later): all fixed
Offline (Unknown gender) The 11th plague of Egypt

Member
Joined: Dec 2009
Posts: 274
View profile
Reply #1 Posted on: June 22, 2010, 07:46:11 PM
Can you translate?
Offline (Unknown gender) RetroX

Master of all things Linux
Contributor
Joined: Apr 2008
Posts: 1,055
View profile
Reply #2 Posted on: June 22, 2010, 07:59:37 PM
Quote from: The 11th plague of Egypt on June 22, 2010, 07:46:11 PM
Can you translate?
Quote from: Josh @ Dreamland on June 22, 2010, 05:42:38 PM
All that happened was realloc() took a shit.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #3 Posted on: June 22, 2010, 09:55:13 PM
Var4 now works flawlessly. I have forsaken copy on write in favor of demanding return-value optimization of the compiler. This means that sequential copy() destroy()s are optimized out at compile time. Because of this lovely feature, array returning will operate in O(1) despite COW not being implemented; meaning no additional overhead from the mix.

lua_table<> is now an operable container class you can include in ENIGMA.

Thanks to Valgrind, Var4 also doesn't leak a single byte.

Something about tacos.
Offline (Unknown gender) Rusky

Resident Troll
Joined: Feb 2008
Posts: 954
View profile WWW
Reply #4 Posted on: June 22, 2010, 10:04:30 PM
RVO is my favorite.
Offline (Unknown gender) kkg

Member
Joined: Nov 2009
Posts: 84
View profile
Reply #5 Posted on: June 23, 2010, 05:09:14 AM
I have no clue what any of that is, but something being killed from a fatal signal is meant to be bad isn't it? >.<

* kkg dies
Offline (Unknown gender) The 11th plague of Egypt

Member
Joined: Dec 2009
Posts: 274
View profile
Reply #6 Posted on: June 23, 2010, 08:54:47 AM
Quote from: Josh @ Dreamland on June 22, 2010, 09:55:13 PM
Something about tacos.
Offline (Unknown gender) kkg

Member
Joined: Nov 2009
Posts: 84
View profile
Reply #7 Posted on: June 26, 2010, 10:19:32 AM
http://pastebin.com/eauCcd3Z

SADFACE >:
r269 (sorry Ism :D), recompiled ENIGMA as well. This was on win7 x64

EDIT: Oh and there were no errors or warnings when compiling ENIGMA either :S
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #8 Posted on: June 26, 2010, 11:09:13 PM
Please don't say "latest revision" on the forums. We could come back in a week and still think you're experiencing the problem with the latest revision.
Pages: 1