Re: [patch] Fix runttys segfault

2001-11-21 Thread Ryan M. Golbeck
Roland McGrath <[EMAIL PROTECTED]> writes: > Thanks! I also found some other wrong-sized allocations and fixed those, > and added checks for malloc failure in the places it was missing. > Please test the new version of runttys. Updating my checkout now. I'll let you know if it causes any probl

[patch] Fix runttys segfault

2001-11-21 Thread Ryan M. Golbeck
Here's the fix for the runttys segfaulting. It was an off by one error in allocating space to hold an argv vector during construction of the string for the terminal used. runttys.c: 2001-11-21 Ryan M Golbeck <[EMAIL PROTECTED]> * runttys.c (setup_terminal): Fixed off b

Re: runttys segfaulting

2001-11-21 Thread Ryan M. Golbeck
Roland McGrath <[EMAIL PROTECTED]> writes: > When using mcheck, you can insert calls "mcheck_check_all ();" in various > places to have it check for overruns and such. Otherwise it only checks > periodically. Or you can try "mcehck_pedantic (0)" early in main, > and leave out -lmcheck in that c

Re: runttys segfaulting

2001-11-21 Thread Ryan M. Golbeck
Roland McGrath <[EMAIL PROTECTED]> writes: > That probably indicates some memory clobberation. > Try linking runttys with -lmcheck. Here is a more comprehensive backtrace with a debug version of libc: #0 0x010b7618 in chunk_free (ar_ptr=0x1186d40, p=0x14) at malloc.c:3224 #1 0x010b731a in c

runttys segfaulting

2001-11-19 Thread Ryan M. Golbeck
[EMAIL PROTECTED] (Ryan M. Golbeck) writes (on debian-hurd): > [EMAIL PROTECTED] (Ryan M. Golbeck) writes (on debian-hurd): > >> I'm trying to get gnumach to start a login shell on the serial port. >> >> I have uncommented the line in /etc/ttys that reads: &