[Simh] trouble selecting VAX ethernet on CentOS

Michael L. Umbricht mike at umbricht.org
Sun Feb 26 19:50:16 EST 2012


Here is the GDB output. -mikeu

[root at rigel vms]# gdb ./vax
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/mikeu/Downloads/simhv38-2/vms/vax...done.
(gdb) run
Starting program: /home/mikeu/Downloads/simhv38-2/vms/vax 
[Thread debugging using libthread_db enabled]

VAX simulator V3.8-2
NVR: buffering file in memory
[New Thread 0x7ffff7fe0700 (LWP 3555)]
[New Thread 0x7fffd6e64700 (LWP 3556)]
RQ2: unit is read only
[New Thread 0x7fffd6462700 (LWP 3557)]
RQ3: unit is read only
[New Thread 0x7fffd5a60700 (LWP 3558)]
Listening on port 2020 (socket 13)
Modem control activated
Auto disconnect activated
sim> at xq eth1
libpcap version 1.0.0

Program received signal SIGSEGV, Segmentation fault.
0x00000000004533e1 in eth_open (dev=Cannot access memory at address
0x7fff00366877
) at sim_ether.c:1454
1454	  savname = eth_getname(num, temp);
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.47.el6_2.5.x86_64
libpcap-devel-1.0.0-6.20091201git117cb5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64 readline-devel-6.0-3.el6.x86_64
(gdb) 



> -------- Original Message --------
> Subject: Re: [Simh] trouble selecting VAX ethernet on CentOS
> From: Jan-Benedict Glaw <jbglaw at lug-owl.de>
> Date: Sun, February 26, 2012 5:45 pm
> To: "Michael L. Umbricht" <mike at umbricht.org>
> Cc: Mark Pizzolato - Info Comm <Mark at infocomm.com>,
> "simh at trailing-edge.com" <simh at trailing-edge.com>
> 
> 
> On Sun, 2012-02-26 15:16:21 -0700, Michael L. Umbricht <mike at umbricht.org> wrote:
> > Yeah, I didn't have such a great night of sleep last night... I kind of
> > noticed "-aa" was but just did a c&p. Anyway, now it compiles! Thank
> > you, all, for the suggestions and help.
> > 
> > Same sort of trouble, though. It only allows me to choose "eth" which
> > grabs eth0 or I can choose "wlan0" to grab the wireless. Any attempt to
> > attach to either "eth0" or "eth1" fails with a seg fault.
> > 
> > -mikeu
> > 
> > VAX simulator V3.8-2
> > 
> > sim> at xq ?
> > libpcap version 1.0.0
> > ETH devices:
> >   0  eth0     (No description available)  ! on-board gig ethernet
> >   1  wlan0    (No description available)  ! on-board wireless
> >   2  virbr0   (No description available)  ! used by VirtualBox
> >   3  eth1     (No description available)  ! PCMCIA 10b2 or 10bT
> >   4  tap:tapN (Integrated Tun/Tap support)
> > Select device (ethX or <device_name>)? eth0
> > Segmentation fault (core dumped)
> > 
> > sim> at xq eth
> > libpcap version 1.0.0
> > Eth: opened OS device eth0
> > sim> at xq wlan0
> > Eth: closed eth0
> > Eth: opened OS device wlan0
> > sim> at xq eth1
> > Eth: closed wlan0
> > Segmentation fault (core dumped)
> 
> Are all object files built with -g and is the `vax' binary not
> stripped? Then you'd just run it with gdb:
> 
> $ gdb ./vax .....
> 
> Then do your work (-> make it segfault) and when you're back at GDB's
> prompt, use the `bt' command to show us where it's breaking.
> 
> MfG, JBG
> 
> -- 
>       Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
> Signature of:               The real problem with C++ for kernel modules is:
> the second  :                                 the language just sucks.
>                                                    -- Linus Torvalds




More information about the Simh mailing list