Kevin Buzzard on Fri, 21 Nov 1997 17:50:16 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

gp version 2.0 under emacs


Hi pari-users. I've compiled gp version 2.0 alpha for RedHat Linux on an i586
and it works just fine by itself, but I can't get it to run under emacs.
I've manged to compile pari.el, and M-x gpman
does work, but M-x gp just leads me into an infinite loop with
the message "Waiting for gp output ..." at the bottom line of my
emacs window, and the buffer is still *scratch*. The problem occurs
with both the static and dynamic compilations. Could it be a prompt
problem? I have *not* changed the default prompt in my .gprc; the only
thing my .gprc does is bumps up parisize to 10 000 000. I have no GPRC set.
My prompt is "? " if I run gp from a shell.

Anyone have any ideas/experienced similar problems?

Kevin Buzzard

***

PS for the hackers amongst you, here's the last few lines of the
output of strace -s51 (I don't understand strace output at all but
someone here probably does)

write(1, "                             Copyright 1989-1997 by"..., 52) = 52
write(1, "          C. Batut, K. Belabas, D. Bernardi, H. Coh"..., 70) = 70
write(1, "\nType ? for help.\n\n", 19)  = 19
write(1, "   realprecision = 28 significant digits\n", 41) = 41
write(1, "   seriesprecision = 16 significant terms\n", 42) = 42
write(1, "   format = g0.28\n", 18)     = 18
write(1, "\nparisize = 10000000, primelimit = 500000, buffers"..., 63) = 63
mmap(0, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40c8e000
time(NULL)                              = 880130450
open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 3
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0"..., 6460) = 1322
close(3)                                = 0
time(NULL)                              = 880130450
ioctl(0, TCGETS, {B38400 opost isig icanon -echo ...}) = 0
open("/home/buzzard/.terminfo/x/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/home/buzzard/.terminfo/x", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/terminfo/x/xterm", O_RDONLY) = 3
read(3, "\32\1:\0\25\0\3\0d\0015\2", 12) = 12
read(3, "xterm|vs100|xterm terminal emulator (X11R6 Window S"..., 58) = 58
read(3, "\0\1\0\0\1\0\0\0\1\0\0\0\0\1\1\0\0\0\0\0\1", 21) = 21
read(3, "\0", 1)                        = 1
read(3, "P\0\10\0A\0", 6)               = 6
read(3, "\377\377\0\0\2\0\4\0\25\0\32\0\"\0&\0\377\377\377\377"..., 712) = 712
read(3, "\7\0\r\0\33[%i%p1%d;%p2%dr\0\33[3k\0\33[H\33[2J\0\33"..., 565) = 565
close(3)                                = 0
ioctl(1, TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=819, ws_ypixel=484}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=819, ws_ypixel=484}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=819, ws_ypixel=484}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=819, ws_ypixel=484}) = 0
ioctl(0, TCGETA, {B38400 opost isig icanon -echo ...}) = 0
stat("/home/buzzard/.inputrc", 0xbffff960) = -1 ENOENT (No such file or directory)
sigprocmask(SIG_BLOCK, [INT], [])       = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=819, ws_ypixel=484}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=819, ws_ypixel=484}) = 0
ioctl(0, TCGETA, {B38400 opost isig icanon -echo ...}) = 0
ioctl(0, TCSETA, {B38400 opost isig -icanon -echo ...}) = 0
write(1, "\33[?1h\33=", 7)              = 7
sigprocmask(SIG_SETMASK, [], [INT])     = 0
sigaction(SIGINT, {0x401df0b0, [], 0}, {0x804b140, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT}) = 0
sigaction(SIGALRM, {0x401df0b0, [], 0}, {SIG_DFL}) = 0
sigaction(SIGTSTP, {0x401df0b0, [], 0}, {SIG_DFL}) = 0
sigaction(SIGTTOU, {0x401df0b0, [], 0}, {SIG_DFL}) = 0
sigaction(SIGTTIN, {0x401df0b0, [], 0}, {SIG_DFL}) = 0
sigaction(SIGWINCH, {0x401df040, [], 0}, {SIG_DFL}) = 0
write(1, "? ", 2)                       = 2
read(0, 

(at this point we just sit and wait forever; I can type C-g and break out
of the loop, and I get a corrupted gp session in my emacs window, whose
last few lines are

                             Copyright 1989-1997 by
          C. Batut, K. Belabas, D. Bernardi, H. Cohen and M. Olivier.

Type ? for help.

   realprecision = 28 significant digits
   seriesprecision = 16 significant terms
   format = g0.28

parisize = 10000000, primelimit = 500000, buffersize = 200000
[?1h=? 

It is possible to use gp now...but I have to press the delete key 6 times
before I enter each command, to eat up the gunk in the prompt.)