[so] [Tema1][Linux]Bad address

mihai chiritescu mihaichiritescu at gmail.com
Tue Mar 31 12:20:40 EEST 2009


Scuze, exemplul era:
> echo "
>
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
> > a.out
>  > cat a.out
> bash: cat: Bad address




2009/3/31 mihai chiritescu <mihaichiritescu at gmail.com>

> Salut,
>
> Cand redirectez o cantitate mai "mare" de caractere intr-un fisier si apoi
> imediat incerc sa afisez fisierul imi da
> eroarea: "bash: cat: Bad address". Ciudat este ca daca mai incerc odata sa
> afisez fisierul il afiseaza corect.
> Exmeplu:
> > echo
> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
>  > cat a.out
> bash: cat: Bad address
>
> Eu cand apelez functia execvp, fiecare argument al lui echo (in cazul asta)
> are alocat cate 1000 de caractere deci nu ar trebui sa fie problema de
> alocare..
> Are cineva vrea explicatie?
>
> Multumesc,
>
> Chiritescu Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090331/be950631/attachment.htm>


More information about the so mailing list