Nmap Development mailing list archives

Re: An unexpected error has crashed Zenmap.


From: Daniel Miller <bonsaiviking () gmail com>
Date: Thu, 11 Feb 2016 12:00:37 -0600

Bob,

Thanks for the report. The scan_profile.usp file is copied from the zenmap
share/config directory, which is located relative to Zenmap's installation
path. Check that /usr/local/share/zenmap/config/scan_profile.usp exists and
is readable.

On a related note, we have an issue in our bug tracker to change Zenmap so
that it does not crash when there are problems with the config file, but
instead gracefully continues: https://github.com/nmap/nmap/issues/88

Dan

On Mon, Jan 25, 2016 at 8:33 PM, bob <gillb4 () telusplanet net> wrote:

Hello.  The crash report asked me to send this.  Note that I am using
lua-5.3.2.  LUA was built as:
# build LUA
banner LUA
sleep 1
cd $SCRIPTDIR
LUA=`ls lua* | grep tar | sort -V | tail -1 | sed 's,lua-,,' | sed
's,.tar.gz,,'`
echo lua-$LUA
ls lua* | grep : | sed 's,:,,' | while read ALLFILES; do rm -rf
./"$ALLFILES"; done
tar -xzpvf lua-$LUA.tar.gz
cd $SCRIPTDIR/lua-$LUA
make linux -j 16
make install
RC=$?
if [ $RC -ne 0 ]
then
echo "LUA build/install failed"
exit
fi
cd /usr/lib
SHAREDLIB=`find $SCRIPTDIR/lua-$LUA -name "*.so"`
SHAREFILE=`basename $SHAREDLIB`
if [ $SHAREDLIB == "" ]
then
echo "Error, lua shared library not found"
else
rm ./$SHAREFILE
ln -s $SHAREDLIB $SHAREFILE
fi
-----------------------------------------------------------
I built zenmap as:
#!/bin/bash
SRCDIR=`pwd`
# svn co --username guest --password "" svn://svn.insecure.org/nmap/.

VERSION=7.01
tar -xjpvf nmap-$VERSION.bz2
cd nmap-$VERSION
# cd nmap

# ./configure changed it yelps about lua without this...
./configure --with-liblua=included
make -j 16
make check
sudo make install
echo "Nmap and zenmap built, nmap is the command line tool,"
echo "zenmap (or if you prefer) nmapfe is the front end tool."

Version: 7.01
Traceback (most recent call last):
  File "/usr/local/bin/zenmap", line 188, in <module>
    zenmapGUI.App.run()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/App.py", line
330, in run
    window = new_window()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/App.py", line
187, in new_window
    w = ScanWindow()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/MainWindow.py",
line 200, in __init__
    self.scan_interface = ScanInterface()
  File
"/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanInterface.py", line
203, in __init__
    self.__create_toolbar()
  File
"/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanInterface.py", line
329, in __create_toolbar
    self.toolbar = ScanToolbar()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanToolbar.py",
line 171, in __init__
    self._create_profile()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ScanToolbar.py",
line 205, in _create_profile
    self.profile_entry = ProfileCombo()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ProfileCombo.py",
line 137, in __init__
    self.update()
  File "/usr/local/lib/python2.7/dist-packages/zenmapGUI/ProfileCombo.py",
line 149, in update
    profile = CommandProfile()
  File "/usr/local/lib/python2.7/dist-packages/zenmapCore/UmitConf.py",
line 313, in __init__
    Profile.__init__(self, user_profile)
  File "/usr/local/lib/python2.7/dist-packages/zenmapCore/UmitConf.py",
line 257, in __init__
    user_profile = Path.scan_profile
  File "/usr/local/lib/python2.7/dist-packages/zenmapCore/Paths.py", line
224, in __getattr__
    join(self.user_config_dir, base_paths[name]))
  File "/usr/local/lib/python2.7/dist-packages/zenmapCore/Paths.py", line
282, in return_if_exists
    raise Exception("File '%s' does not exist or could not be found!" %
path)
Exception: File '/root/.zenmap/scan_profile.usp' does not exist or could
not be found!

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: