Nobita/021.vfs,vnodeをvalgrindで


Top / Nobita / 021.vfs,vnodeをvalgrindで

これは何か

valgrindで発見されたバグを淡々と直します。
下に行くほど古いバグです。

4.

同じく 2重deleteだった。

Invalid free() / delete / delete[]
   at 0x4007319: operator delete(void*) (vg_replace_malloc.c:244)
   by 0x473E707D: (within /usr/lib/libstdc++.so.6.0.5)
   by 0x47435487: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.5)
   by 0x805C1C8: Pnode::~Pnode() (basic_string.h:228)
   by 0x805B680: ProcessFileSystem::~ProcessFileSystem() (ProcessFileSystem.cpp:16)
   by 0x8055033: FileServer::~FileServer() (FileServer.cpp:17)
   by 0x8050F40: main (main.cpp:25)

3.

ISO9660FileSystem.cppでEntryの2重解放があったので修正

2.

EntriesMap* entries = (*it).second;でdeleteするようにした。

400 (96 direct, 304 indirect) bytes in 4 blocks are definitely lost in loss record 3 of 4
   at 0x4006888: operator new(unsigned) (vg_replace_malloc.c:163)
   by 0x804BD53: VnodeCacher::add(Vnode*, std::string const&, Vnode*) (VnodeCacher.cpp:69)
   by 0x8050EDD: VnodeManager::mount(Vnode*, std::string const&, Vnode*) (VnodeManager.cpp:195)
   by 0x805516A: FileServer::initializeMountedFileSystems() (FileServer.cpp:47)
   by 0x8055498: FileServer::initializeFileSystems() (FileServer.cpp:29)
   by 0x8050E06: main (main.cpp:18)

1.

これはgethostbynameの問題なの対処は必要ない。

Conditional jump or move depends on uninitialised value(s)
  at 0x46713C3E: (within /lib/ld-2.3.5.so)
  by 0x46817A75: (within /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x4670E105: (within /lib/ld-2.3.5.so)
  by 0x46818737: _dl_open (in /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x46819CBC: (within /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x4670E105: (within /lib/ld-2.3.5.so)
  by 0x46819D9D: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x467F480D: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x467F499E: (within /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x467F6316: __nss_hosts_lookup (in /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x467F8F48: gethostbyname_r (in /lib/tls/i686/cmov/libc-2.3.5.so)
  by 0x467F87F3: gethostbyname (in /lib/tls/i686/cmov/libc-2.3.5.so)

コメント

コメントはありません。 コメント/Nobita/021.vfs,vnodeをvalgrindで?

お名前:

MENU

now: 6

リンク


最新の20件
2018-10-07 2018-09-20 2018-09-03 2018-05-09 2017-09-29 2017-01-10 2016-12-11 2016-10-04 2016-08-14 2016-05-29 2015-12-28 2013-02-25 2013-02-21 2013-02-20 2013-02-12 2013-02-11 2013-02-10
最新の20件
2010-02-01 2010-01-31 2010-01-30 2010-01-29 2010-01-16

Counter: 2011, today: 1, yesterday: 0

リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

Last-modified: 2008-03-28 (金) 15:47:55 (3859d);  Modified by mona
PukiWiki 1.4.6 Copyright © 2001-2005 PukiWiki Developers Team. License is GPL.
Based on "PukiWiki" 1.3 by yu-ji
Powered by PHP 5.2.17
HTML convert time to 0.036 sec.