• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux GDB constantly printing 121212211112

Joined
Apr 15, 2014
Messages
75
Reaction score
18
~ Not sure if I should use Linux or C++ tag ~

My GDB keeps printing tons of numbers 1 and 2 whenever something else is printed, here is an example:

Broadcasted message: "Soulless has accepted System invitation to war.".
12121212121212121212121212121212121212121212121212121212222212121212121212121212121212121212121212121212121212121212222212121212121212121212121222221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212122222121212121212121222221212121222221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212122222121212121212121212121212121212122222121212121212121212121212121212121212121212121212121212121212121212121212121212121212121222221212121212121212121212121212121212121212121212121212121212121212122222121212121212121212121212121212121212121212121212121212121212121212121212222212121212121212121212121222221212121222221212121212121212121212121212121212121212222212121212121212121212121212121212121212121212121212121212121212121212121212222212121212121212121212121212121

Does anyone have any idea of what can it be?
 
are you sure it's gdb producing this?
you can test if it's your server by putting this in global.lua:
Lua:
debug.sethook(function()
    local info = debug.getinfo(2)
    if info.name == "print" then
        local i = 1
        local name, var = debug.getlocal(2, i)
        local vars = {}
        while name and var do
            vars[#vars+1] = tostring(var)
            i = i + 1
            name, var = debug.getlocal(2, i)
        end
        print("print(".. table.concat(vars, ", ").. ")")
    end
end, "c")
each time print is executed, it will spit out the print call
for example:
Code:
somewhere in your files: print(1)

console output:
1
print(1)
 
I am confident it is GDB because the numbers appear everytime anything is printed, like

John Doe logged in
Jane Doe logged out
Broadcasted message: “aaa”

All above ones are printed in source, but it also occurs to lua prints, like

print(#getPlayersOnline())

All above print examples first display tons of 1212 and then the print result after the numbers.

But that is a really good try, Ill set it up to see if it helps me to find the cause, thank you
 
Back
Top Bottom