[so] [Tema1][Linux] Testul 8 si Testul 12

oana niculaescu oana.niculaescu at gmail.com
Wed Mar 27 09:48:33 EET 2013


2013/3/26 Adrian Sendroiu <molecula2788 at gmail.com>:
> oana niculaescu <oana.niculaescu at gmail.com> writes:
>
>> Salut,
>>
>> Sper ca postez bine :-S
>> Am o problema cu testul 8 si testul 12 pe linux, local imi trec ambele
>> teste, atat pe masina virtuala pusa la dispozitie de voi cat si pe
>> masina fizica(Ubuntu 12.10), dar vmchecker pica amandoua. De la ce ar
>> putea fi?
>>
>> Multumesc,
>> Oana Niculaescu
>
> Salut,
>
> Nu stiu sigur daca e de la asta, dar ai pe undeva o problema cu un acces
> nevalid la memorie.
>
> root at spook:~/test/tema1-checker-lin# ./mini-shell
>> a=3
>> exit
> root at spook:~/test/tema1-checker-lin# dmesg
> [  779.208774] mini-shell[5846]: segfault at 0 ip 080495d5 sp bfdcf380
> error 4 in mini-shell[8048000+8000]
>
> Adrian
> _______________________________________________
> http://ocw.cs.pub.ro/courses/so/info/lista-discutii

Salut,

Am incercat sa reproduc ce ai facut tu mai sus dar la mine apare
corect, adica nu imi intoarce segfaul-ul:

>root at spook:/home/student/tema1-checker-lin (2)# ./mini-shell
>> a=3
>> exit

si in gdb la fel:
>root at spook:/home/student/tema1-checker-lin (2)# gdb ./mini-shell
>(gdb) run
>Starting program: /home/student/tema1-checker-lin (2)/mini-shell
>> a=3
>> exit

>Program exited normally.

Deci tot nu imi dau seama de la ce ar putea fi. Repet pe masinile
locale trece toate testele, pe vmchecker testarea variabilelor de
mediu pica.

Multumesc inca o data,
Oana


More information about the so mailing list