Infinite loop in HTTP VIM Server 32 bits

13 views
Skip to first unread message

ldeveaux

unread,
Aug 7, 2010, 6:46:37 AM8/7/10
to XAM Developers Group
Hi,

I now want to use HTTP_VIM for 32bits arch. I've compiled it with the
build_32 option but the VIM server seems broken.
Indeed, with this code :

xam_string vXRI = "snia-xam://httpvim!localhost?
targetServer.ipAddress=127.0.0.1&targetServer.port=9923&targetServer.vimname=Remote";
vStatus = XAMLibrary_Connect(vXRI, vpXSystem);

The program is blocked, no XSystem is returned.

When running gdb I have this backtrace:

#0 XAM_Utils::isCodepointValid (inChar=103) at /home/l_dev/project/
xamsdk-1.0.1/C_XAM_Library/src_Linux-GCC4/c/utils/XAM_Utils.cpp:473
#1 0xf1098462 in XAM_Utils::utf8_to_ucs4 (inMBChar=0xf39f5031
"getServer.port=9923&targetServer.vimname=Remote",
outChar=@0xf39f4ab0,
inValidate=true) at /home/l_dev/project/xamsdk-1.0.1/C_XAM_Library/
src_Linux-GCC4/c/utils/XAM_Utils.cpp:484
#2 0xf1099139 in XAM_Utils::validateUTF8 (
inChar=0xf39f4ff0 "snia-xam://httpvim!localhost?
targetServer.ipAddress=127.0.0.1&targetServer.port=9923&targetServer.vimname=Remote",
inNumChars=-1) at /home/l_dev/project/xamsdk-1.0.1/C_XAM_Library/
src_Linux-GCC4/c/utils/XAM_Utils.cpp:814
#3 0xf108f509 in XAM_Router::XAMLibrary_Connect (
inXRI=0xf39f4ff0 "snia-xam://httpvim!localhost?
targetServer.ipAddress=127.0.0.1&targetServer.port=9923&targetServer.vimname=Remote",
outHandle=0x82bae98) at /home/l_dev/project/xamsdk-1.0.1/
C_XAM_Library/src_Linux-GCC4/c/classlib/router/XAM_Router.cpp:1281
#4 0xf10b8c6f in XAMLibrary_Connect (
inXRI=0xf39f4ff0 "snia-xam://httpvim!localhost?
targetServer.ipAddress=127.0.0.1&targetServer.port=9923&targetServer.vimname=Remote",
outHandle=0x82bae98) at /home/l_dev/project/xamsdk-1.0.1/
C_XAM_Library/src_Linux-GCC4/c/api/xam.cpp:1671

xam.log returns:

Time FormattedTime LogLevel
PID.Thread Component
Message
1281082216153 2010-08-06 08:10:16.153 [none]
6799.-217093264 [---]
XAM SDK Logger Version 0.0.0
1281082216153 2010-08-06 08:10:16.153 [debug]
6799.-217093264
[xam_debug] ******* Start XAMLibrary Apply Configuration Updates
*******
1281082216153 2010-08-06 08:10:16.153 [debug]
6799.-217093264
[xam_debug] CONFIG [xam_string] .xam.config.path = "/home/l_dev/
Arcsys/ArcsysTransferServer/etc/xam/default/xamconfig.conf"
1281082216153 2010-08-06 08:10:16.153 [debug]
6799.-217093264
[xam_debug] CONFIG [xam_boolean] .xam.log.append = "false"
1281082216153 2010-08-06 08:10:16.153 [debug]
6799.-217093264
[xam_debug] CONFIG [xam_int] .xam.log.level = "5"
1281082216153 2010-08-06 08:10:16.153 [debug]
6799.-217093264
[xam_debug] CONFIG [xam_int] .xam.log.verbosity = "5"
1281082216153 2010-08-06 08:10:16.153 [debug]
6799.-217093264
[xam_debug] CONFIG [xam_string] .xam.config.vim.alias.httpvim =
"/
home/l_dev/project/xamsdk-1.0.1/C_XAM_Library/objects/Linux-GCC4_32/
http_vim/libxam_vim_http32.so"
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[xam_debug] CONFIG [xam_string] .xam.log.path = "/home/l_dev/
Arcsys/ArcsysTransferServer/log/xam.log"
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[xam_debug] ******* End XAMLibrary Apply Configuration Updates
*******
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[api_exit] Exit XAM_SetString
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[api_enter] XAMLibrary_Connect
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[api_param] [in] [xam_string] "snia-xam://httpvim!localhost?
targetServer.ipAddress=127.0.0.1&targetServer.port=9923&targetServer.vimname=Remote"
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[api_param] [in] [xsystem_handle*] 0x82872e0
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264 [lib]
Attempting to load library: "/home/l_dev/project/xamsdk-1.0.1/
C_XAM_Library/objects/Linux-GCC4_32/http_vim/libxam_vim_http32.so"
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264 [lib]
Successfully loaded library: "libxam_vim_http32.so"
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264 [lib]
VIM_LOADED: "/home/l_dev/project/xamsdk-1.0.1/C_XAM_Library/
objects/
Linux-GCC4_32/http_vim/libxam_vim_http32.so"
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[vim_enter] VIM_CreateXSystem (libxam_vim_http32.so)
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle*] 0x82872e0
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[vim_exit] Exit VIM_CreateXSystem
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [out] [xsystem_handle] 19620729
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[vim_enter] ******* Start XSystem initialization
(libxam_vim_http32.so) *******
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateBoolean (libxam_vim_http32.so)
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xsystem.initializing"
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] true
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateBoolean
1281082216154 2010-08-06 08:10:16.154 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateString (libxam_vim_http32.so)
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.config.vim.alias.httpvim"
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216154 2010-08-06 08:10:16.154 [debug]
6799.-217093264
[vim_param] [in] [xam_string] "/home/l_dev/project/xamsdk-1.0.1/
C_XAM_Library/objects/Linux-GCC4_32/http_vim/libxam_vim_http32.so"
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateString
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateInt (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.level"
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_int] 5
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateInt
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateInt (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.verbosity"
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_int] 5
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateInt
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateString (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.path"
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] "/home/l_dev/Arcsys/
ArcsysTransferServer/log/xam.log"
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateString
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateInt (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.format"
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_int] 1
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateInt
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateBoolean (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.append"
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateBoolean
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateInt (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.max.size"
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xam_int] 1048576
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateInt
1281082216155 2010-08-06 08:10:16.155 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateInt (libxam_vim_http32.so)
1281082216155 2010-08-06 08:10:16.155 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.max.rollovers"
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_int] 1
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateInt
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateString (libxam_vim_http32.so)
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.message.filter"
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ""
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateString
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_enter] VIM_XSystem_CreateString (libxam_vim_http32.so)
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xam.log.component.filter"
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_boolean] false
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ""
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_CreateString
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_enter] VIM_XSystem_DeleteField (libxam_vim_http32.so)
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] ".xsystem.initializing"
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_exit] Exit VIM_XSystem_DeleteField
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_exit] ******* End XSystem initialization
(libxam_vim_http32.so) *******
1281082216156 2010-08-06 08:10:16.156 [info]
6799.-217093264
[vim_enter] VIM_XSystem_Connect (libxam_vim_http32.so)
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xsystem_handle] 19620729
1281082216156 2010-08-06 08:10:16.156 [debug]
6799.-217093264
[vim_param] [in] [xam_string] "localhost?
targetServer.ipAddress=127.0.0.1&targetServer.port=9923&targetServer.vimname=Remote"


I think there is an infinite loop in utf8_to_ucs4 function.

I hope anyone can help me.
Best regards,
Reply all
Reply to author
Forward
0 new messages