g_printf doesn't work correctly.
I've compiled a oah build of glib. I found that it crash on g_printf("%s", NULL) because it uses "strlen", and strlen(0) would crash. The compiled version I downloaded here and the version I got from gtk site don't have that problem. What's the problem?
Here is the call stack:
ChildEBP RetAddr Args to Child
0021da24 02980d67 00000000 73007325 00000000 MSVCR90!strlen+0x30
0021dd60 02966cd7 0021dd7c 0021e208 00000000 libglib_
0021dd74 02971c32 0021dd8c 028aa048 0021e208 libglib_
0021dd90 029629f0 028aa048 0021e208 0021e2dc libglib_
0021e1d8 02962a9c 00000000 00000080 028aa048 libglib_
0021e1f4 02717f71 00000000 00000080 028aa048 libglib_
0021e2dc 02718766 01c73000 028b2aa0 0021e3ac vivs_core!
0021e350 0272e902 01c73000 028b2aa0 0021e3ac vivs_core!
0021e3b4 0272df60 01c6d180 00d72c38 cccccccc vivs_core!
0021e3dc 1d1aaee2 01c6d180 01c350fc 00360a2a vivs_core!
WARNING: Stack unwind information not available. Following frames may be wrong.
0021e3f8 1d1aa026 1d1a9eca 0021e418 00000010 _ctypes!
0021e424 1d1a737a 0270231c 0021e510 0021e4f0 _ctypes!
0021e4cc 1d1a79a6 00001101 0270231c 0021e500 _ctypes!
0021e598 1d1a4566 0270231c 00000000 00000000 _ctypes!
0021e5f0 1e01480f 00000000 00d295d0 00000000 _ctypes+0x4566
0021e608 1e010a32 00e17c60 00d295d0 00000000 python26!
0021e634 1e01106f 00d295d0 0021e788 00da94d8 python26!
00000000 00000000 00000000 00000000 00000000 python26!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- OAH Build Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- ablmf@hotmail.com
- Solved:
- Last query:
- Last reply: