[OSy] Diff na opravu toho segfaultu
Ondrej Mikle
ondrej.mikle at gmail.com
Thu Oct 28 16:18:34 CEST 2004
Pridavam diff na opravu tej chyby (podla toho ako si myslim ze by sa
to malo spravat).
On Thu, 28 Oct 2004 15:33:54 +0200, Ondrej Mikle <ondrej.mikle at gmail.com> wrote:
> V interaktivnom mode simulator sposobi segmentation fault pri ukonceni
> vystupu (napr. Ctrl+D).
>
> Problemovy kod (machine.c):
>
> 286
> 287 if (*commline) //<--tuto
> 288 interpret( commline, -1);
> 289 else
>
> backtrace:
> #0 0x0804d384 in interactive_control () at machine.c:288
> #1 0x0804d487 in go_machine () at machine.c:345
> #2 0x0804da1f in main (argc=0, args=0x0) at main.c:152
>
> (gdb) p commline
> $3 = 0x0 <--- na riadku 287 sa dereferencuje NULL pointer
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: machine.c.diff
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20041028/4ee0323f/attachment.bin>
More information about the NSWI004
mailing list