[so] Re:[Tema4]segfault problem

Octavian Purdila tavi at cs.pub.ro
Sun Feb 11 18:16:57 EET 2007


On Sunday 11 February 2007 17:26, Florin wrote:
> am adaugat flagul -g la compilare, insa din pacate cand uploadez pe sit raman
>  aceleasi probleme: testele acelea picate , iar la sfarsit tot nu primesc informatii
>  suplimentare- imi spune : 
> 
> (no debugging symbols found)
> 
> insa am mai descoperit ceva: si pe calculatorul de acasa,
> daca rulez testele la gramada, unul dupa altul, imi pica 
> vreo cateva. Insa, daca le rulez separat, fiecare imi trece.
> Cu siguranta ceva este gresit, dar nu stiu de unde sa pornesc 
> k sa imi dau seama ce e gresit.
> 
> 

Yep, era o problema in checker. Acum pare sa mearga:

checker: fault analysis starts
cd ./testslin && gdb -q -ex bt -ex quit -c core ../client
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Reading symbols from /lib/tls/librt.so.1...done.
Loaded symbols for /lib/tls/librt.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `../client 127.0.0.1 rd input'.
Program terminated with signal 11, Segmentation fault.
#0  0x08048e95 in SendParam (nServerSocket=3, 
    strParameterName=0x8049dc2 "offset-ul in fisier", strParameter=0x0)
    at src/connection.c:56
56		nSent = (strlen(strParameter) + 1 ) * sizeof(char);
#0  0x08048e95 in SendParam (nServerSocket=3, 
    strParameterName=0x8049dc2 "offset-ul in fisier", strParameter=0x0)
    at src/connection.c:56
#1  0x0804939d in SendParamsToServer (nServerSocket=3, argv=0xbff1fcf4)
    at src/server_session.c:40
#2  0x08048e35 in main (argc=4, argv=0xbff1fcf4) at src/client.c:114
checker: fault analysis ends
	
tavi


More information about the so mailing list