Jump to content

hello i have down core 0x28bac06e in memcpy () from /usr/lib32/libc.so.7


Recommended Posts

hello every one i have doen core and this is debug 

this debug command

Spoiler

(gdb) file game
Load new symbol table from "game"? (y or n) y
Reading symbols from game...done.
(gdb) cd /a/hs/h/chan/ch1/core1/
Working directory /a/hs/h/chan/ch1/core1.
(gdb) core game.core
warning: exec file is newer than core file.
Core was generated by `game'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib32/compat/libmd.so.5...done.
Loaded symbols for /usr/local/lib32/compat/libmd.so.5
Reading symbols from /usr/local/lib32/compat/libssl.so.6...done.
Loaded symbols for /usr/local/lib32/compat/libssl.so.6
Reading symbols from /usr/local/lib32/compat/libstdc++.so.6...done.
Loaded symbols for /usr/local/lib32/compat/libstdc++.so.6
Reading symbols from /usr/lib32/libm.so.5...done.
Loaded symbols for /usr/lib32/libm.so.5
Reading symbols from /usr/lib32/libgcc_s.so.1...done.
Loaded symbols for /usr/lib32/libgcc_s.so.1
Reading symbols from /usr/lib32/libthr.so.3...done.
Loaded symbols for /usr/lib32/libthr.so.3
Reading symbols from /usr/lib32/libc.so.7...done.
Loaded symbols for /usr/lib32/libc.so.7
Reading symbols from /usr/local/lib32/compat/libcrypto.so.6...done.
Loaded symbols for /usr/local/lib32/compat/libcrypto.so.6
Reading symbols from /usr/local/lib32/compat/libsupc++.so.1...done.
Loaded symbols for /usr/local/lib32/compat/libsupc++.so.1
Reading symbols from /libexec/ld-elf32.so.1...done.
Loaded symbols for /libexec/ld-elf32.so.1
#0  0x28bac06e in memcpy () from /usr/lib32/libc.so.7
[New Thread 294030b429403d00 (LWP 100207/<unknown>)]
[New Thread 28a645e429403a80 (LWP 100203/<unknown>)]
[New Thread 29403d3429403800 (LWP 100202/<unknown>)]
[New Thread 29403ab429403080 (LWP 100115/<unknown>)]
Cannot find new threads: generic error

and this is where command

Spoiler

(gdb) where
#0  0x28bac06e in memcpy () from /usr/lib32/libc.so.7
#1  0x28ba9dbb in fwrite () from /usr/lib32/libc.so.7
#2  0x28ba9a75 in fwrite () from /usr/lib32/libc.so.7
#3  0x0829bb6a in iWriteFile ()
#4  0x082d05ef in iSaveTargaInternal ()
#5  0x082d0cff in ilSaveTargaF ()
#6  0x082d0d5e in ilSaveTarga ()
#7  0x082a5fbd in ilSave ()
#8  0x08057856 in CGuildMarkImage::Save (this=0x2ac00000, c_szFileName=0x3d249c8c "mark/mark_0.tga") at MarkImage.cpp:51
#9  0x08058ab8 in CGuildMarkManager::SaveMarkImage (this=0xffffa8fc, imgIdx=0) at MarkManager.cpp:118
#10 0x08058cec in CGuildMarkManager::SaveMark (this=0xffffa8fc, guildID=9525, pbMarkImage=0x339c9005 "\004") at MarkManager.cpp:236
#11 0x08165b70 in CInputLogin::Analyze (this=0x1b031e6c, d=0x1b031e00, bHeader=102 'f', c_pData=0x339c9000 "f5%") at input_login.cpp:1120
#12 0x081551ab in CInputProcessor::Process (this=0x1b031e6c, lpDesc=0x1b031e00, c_pvOrig=0x339c9000, iBytes=773, r_iBytesProceed=@0xffffa444) at input.cpp:103
#13 0x0811c1d3 in DESC::ProcessInput (this=0x1b031e00) at desc.cpp:303
#14 0x08293bc4 in io_loop (fdw=0x29540c80) at main.cpp:1045
#15 0x082945b9 in idle () at main.cpp:928
#16 0x08295cb8 in main (argc=1, argv=0xffffdbe4) at main.cpp:567

this is my at MarkImage.cpp:51

Spoiler

bool CGuildMarkImage::Save(const char* c_szFileName)
{
    ilEnable(IL_FILE_OVERWRITE);
    ilBindImage(m_uImg);

    if (!ilSave(IL_TGA, (const ILstring)c_szFileName))     /// this is line 51 problem here and i don't see this function in any place
        return false;

    return true;
}

plz help 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.