Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/tmp_r) is not within the allowed path(s): (/membri:/membri2) in /membri/x2s2hx/bugtracker/includes/class.flyspray.php on line 997
FS#98 : Bug in findop

2Steps2Hell's -BanBot-

A low resource c++ urban terror bot that keeps track of players on specified servers and applies bans keeping the servers hacker clean :)
Tasklist

FS#98 - Bug in findop

Attached to Project: 2Steps2Hell's -BanBot-
Opened by Simone (Zamy) - Saturday, 13 August 2011, 00:10 GMT+2
Last edited by n3m3s1s (n3m3s1s) - Thursday, 20 October 2011, 16:05 GMT+2
Task Type Bug Report
Category Backend / Core
Status Closed
Assigned To n3m3s1s (n3m3s1s)
Simone (Zamy)
Operating System Linux
Severity High
Priority Normal
Reported Version ver 1.x
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Da controllare dove è esattamente (se in db o analyzer):

[OK] Is an admin. Doing findop.
[-]Searching for ss.
Db::execQuery - select id,nick from oplist where nick='ss' limit 7;
using database @: /home/zamy/BanBot/databaseCube/
VDATA INFO
34
VDATA INFO
ss
Db::execQuery result code is > 0 sending value 1
Db::findPreciseIdNickViaNickOp
ANSWER 0 is -> 34ANSWER 1 is -> ssDb::execQuery - select id,nick,level from oplist where nick like '%ss%' limit 16;
using database @: /home/zamy/BanBot/databaseCube/
VDATA INFO
34
VDATA INFO
ss
VDATA INFO
100
Db::execQuery result code is > 0 sending value 1
Db::findAproxIdNickViaNickOp
ANSWER 0 is -> 34ANSWER 1 is -> ssANSWER 2 is -> 100search: 1 1
Segmentation fault
This task depends upon

Closed by  n3m3s1s (n3m3s1s)
Thursday, 20 October 2011, 16:05 GMT+2
Reason for closing:  Fixed
Additional comments about closing:  https://gitorious.org/urtbanbot/banbot/c ommit/afbb7267cbb6920ac3257fd5228a1b2579 4038a9
Comment by Simone (Zamy) - Monday, 22 August 2011, 19:09 GMT+2
Allora, ci sono parecchie cose che non mi tornano:
1-faccio una ricerca precisa dell'admin 'ss': mi torna un'unica struct idNickStruct (dentro al vettore) (tra l'altro con il livello non inizializzato): ma l'admin non esiste (oltretutto, l'id 34 da dove cazzo salta fuori?!? è l'id che appartiene ad Andi, non c'entra un cazzo con 'ss').
Qua tra l'altro (forse irrilevante per il bug cmq) ti sei dimenticato durante l'"upgrade" di inserire il level nella ricerca, come in quella approssimativa ;)
2-faccio la ricerca approssimativa: questa funzione era stata adattata all'uso del level. Però anche qua "trova" l'admin ss con id 34 e levello 100 (si beh...).

Tornato ad analyzer, stampa i risultati: 1 risultato per la ricerca precisa, e 1 per la ricerca approssimativa.
A questo punto, crasha, e non capisco perchè.

Loading...