GNU Prolog 1.2.16 hangs on 'A=A+1'.

Roger Ferrer Ibáñez <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

maybe this is an expected behaviour of GNU Prolog. If is this case I
apologize for wasting your time.

$ gprolog
GNU Prolog 1.2.16
By Daniel Diaz
Copyright (C) 1999-2002 Daniel Diaz
| ?- A = A + 1.
Segmentation fault
$

I have also checked Win32 (1.2.16) version and also hangs (with a Win32
checkbox dialog error).

Bug Context
- -----------

* Linux ordenata2 2.4.23 #10 dj des 25 18:20:33 CET 2003 i686 AMD
Athlon(TM) XP 1800+ AuthenticAMD GNU/Linux

* $ gprolog --version
Prolog top-Level (GNU Prolog) 1.2.16
By Daniel Diaz
Copyright (C) 1999-2002 Daniel Diaz

* ./configure --prefix=/usr --mandir=/usr/share/man
- --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
- --localstatedir=/var/lib

* I have ltraced gprolog, after having typed 'A=A+1.' and pressed ENTER.

~  0.000000 malloc(7)                             = 0x0825ef58
~  0.000378 strcpy(0x0825ef58, "A=A+1.")          = 0x0825ef58
~  0.000496 write(1, "\n", 1)                     = 1
~  0.000821 tcsetattr(0, 0, 0x0813e640)           = 0
~  0.000388 tcsetattr(1, 0, 0x0813e6c0)           = 0
~  0.000368 strlen("A=A+1.\n")                    = 7
~  0.001142 strcpy(0x08140ec0, "A")               = 0x08140ec0
~  0.000082 strlen("=")                           = 1
~  0.000060 strcmp("=", "=")                      = 0
~  0.000057 strcmp("A", "A")                      = 0
~  0.000054 strlen("+")                           = 1
~  0.000046 strcmp("+", "+")                      = 0
~  0.000058 __ctype_b_loc(0x08252dd0, 0, 0, 0x08048e4a, 0x40172968) =
0x401752f8
~  0.000100 sscanf(0x081c6ee4, 0x080e2f02, 0x081c96e8, 0x08048e4a,
0x40172968) = 1
~  0.000116 strlen("A")                           = 1
~  0.000046 strcmp("A", "A")                      = 0
~  0.000071 getrusage(0, 0xbfffe28c, 1, 0x080db8e2, 0x0813d842) = 0
~  0.000107 __strtol_internal("N", 0xbfffdae0, 10) = 0
~  0.000076 strncmp("A", "_", 1)                  = -30
~  0.036543 --- SIGSEGV (Segmentation fault) ---
~  0.000083 --- SIGSEGV (Segmentation fault) ---
~  0.001393 +++ killed by SIGSEGV +++

At the moment I've not been able to test the unstable version. I expect
this report to be useful.

Bye.

- --
Roger Ferrer Ibáñez
Correu: [email protected]
Correu (FIB): [email protected]
Correu (Casa): [email protected]
Correu (JEDI): [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/7Eqos5A+cAGo9FoRAqDPAJ4yQe+bGk9397iFgz52fbyTrJgDLACfdkny
eZebcgR/QY9j6xucJK/FrcU=
=85DL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.