Hi,

When trying to use minicom, it segfaults when trying to open the
serial port.  The serial port exists and has a translator running on
it.  I have a feeling that this is a hurd problem.

I have compiled minicom with debugging support.  You can get it at
ftp://walfield.org/pub/people/neal/hurd/minicom.tar.bz2.  All it requires
is a make install.  You may also have to create the /var/spool/uucp
directory (which the debian package should have check for IMHO).

Before reporting any bugs, I would like a second opinion.  Here are the
results of my tests to date:

# showtrans /dev/ttyS0
/hurd/term /dev/ttyS0 pty-slave /dev/ptyS0

# minicom
Segmentation fault

Note that minicom -s works.  And will begins to segfault on exit
once a a valid serial port is entered.

# gdb `which minicom`
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-gnu0.2"...
(gdb) run
Starting program: /usr/bin/minicom 
[Switching to thread 553.3]
[Switching to thread 553.4]
Lockfile is stale. Overriding it..

Program received signal SIGSEGV, Segmentation fault.
0x10e80e3 in memcpy () from /lib/libc.so.0.2
(gdb) bt
#0  0x10e80e3 in memcpy () from /lib/libc.so.0.2
#1  0x11491d5 in in.156 () from /lib/libc.so.0.2
#2  0x114924b in send_rpc.153 () from /lib/libc.so.0.2
#3  0x109a4b4 in _hurd_ctty_output () from /lib/libc.so.0.2
#4  0x1149c5f in ioctl () from /lib/libc.so.0.2
#5  0x805fbcf in m_flush (fd=5) at sysdep1.c:308
#6  0x8060f71 in open_term (doinit=1) at main.c:232
#7  0x804c50b in main (argc=1, argv=0x101ac04) at minicom.c:1189
(gdb) up 6
#6  0x8060f71 in open_term (doinit=1) at main.c:232
232       if (doinit > 0) m_flush(portfd);
(gdb) l
227       /* Set CLOCAL mode */
228       m_nohang(portfd);
229     
230       /* Set Hangup on Close if program crashes. (Hehe) */
231       m_hupcl(portfd, 1);
232       if (doinit > 0) m_flush(portfd);
233       drop_privs();
234       return(0);
235     }
236     
(gdb) up
#7  0x804c50b in main (argc=1, argv=0x101ac04) at minicom.c:1189
1189          while((dial_tty = get_port(P_PORT)) != NULL && open_term(doinit) < 0)
(gdb) l
1184            st_attr = XA_REVERSE;
1185      }
1186    
1187      if (dial_tty == NULL) {
1188        if (!dosetup) {
1189          while((dial_tty = get_port(P_PORT)) != NULL && open_term(doinit) < 0)
1190            ;
1191          if(dial_tty == NULL)
1192            exit(1);
1193        }
(gdb) 


Thanks,
-Neal

-- 
----------------------------------------------------------------------------
Neal Walfield                                              [EMAIL PROTECTED]
UMass Lowell - Fox 1512                                  Phone: 978-934-5347
                                                           Fax: 603-415-3645
Love is the triumph of imagination over intelligence.
                -- H. L. Mencken

Reply via email to