Bug 2218 - unable to run valgrind through waf
unable to run valgrind through waf
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3-dev
All All
: P5 critical
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-14 04:44 UTC by Tommaso Pecorella
Modified: 2015-11-15 12:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-11-14 04:44:53 UTC
pecos@nightwatch ~/workspace/ns-3-allinone/ns-3-dev $ python --version
Python 2.7.6

pecos@nightwatch ~/workspace/ns-3-allinone/ns-3-dev $ ./waf --run scratch/first --valgrind
Waf: Entering directory `/home/pecos/workspace/ns-3-allinone/ns-3-dev/build'
Waf: Leaving directory `/home/pecos/workspace/ns-3-allinone/ns-3-dev/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.569s)
Traceback (most recent call last):
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/.waf-1.8.13-4da49748f68a49832130c7ef124357f6/waflib/Scripting.py", line 108, in waf_entry_point
    run_commands()
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/.waf-1.8.13-4da49748f68a49832130c7ef124357f6/waflib/Scripting.py", line 171, in run_commands
    run_command('shutdown')
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/.waf-1.8.13-4da49748f68a49832130c7ef124357f6/waflib/Scripting.py", line 160, in run_command
    ctx.execute()
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/.waf-1.8.13-4da49748f68a49832130c7ef124357f6/waflib/Context.py", line 93, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/.waf-1.8.13-4da49748f68a49832130c7ef124357f6/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/wscript", line 993, in shutdown
    visualize=Options.options.visualize)
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/wutils.py", line 215, in run_program
    return run_argv(execvec, env, cwd=cwd)
  File "/home/pecos/workspace/ns-3-allinone/ns-3-dev/wutils.py", line 119, in run_argv
    proc = subprocess.Popen(argv, env=proc_env, cwd=cwd, stderr=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
AttributeError: 'list' object has no attribute 'rfind'
Comment 1 Tommaso Pecorella 2015-11-14 04:49:43 UTC
Forgot to mention

pecos@nightwatch ~/workspace/ns-3-allinone/ns-3-dev $ uname -a
Linux nightwatch 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

pecos@nightwatch ~/workspace/ns-3-allinone/ns-3-dev $ hg tip
changeset:   11763:59d0e8916e1f
tag:         tip
user:        Tommaso Pecorella <tommaso.pecorella@unifi.it>
date:        Wed Nov 11 21:52:39 2015 -0800
summary:     some small fixes
Comment 2 Tom Henderson 2015-11-15 12:17:43 UTC
fixed in 11765:308891f0a6da