Keep getting busybox segmentation fault when running with generic_linux
See original GitHub issueIssue Description
Describe the issue Hi, I am trying to run workload-automation with linux running on zcu102 as target. I set the following parameters in config: device: generic_linux device_config: host: ‘172.19.253.142’ username: ‘root’ password: ‘’
but when I run wa, I get this error: (this happens for all the benchmarks that I have run)
wa run idle -d out_workload/idle_1
INFO Creating output directory.
INFO Initializing run
INFO Initializing execution context
INFO Connecting to target
INFO Setting up target
WARNING No CGroups controller available
ERROR Got exit code 139
ERROR from: export PATH=/home/root/devlib-target/bin:$PATH && export LC_ALL=C && /home/root/devlib-target/bin/busybox hostid
ERROR OUTPUT: sh: line 1: 962 Segmentation fault /home/root/devlib-target/bin/busybox hostid
ERROR
INFO Done.
INFO Run duration: N/A
INFO Ran a total of 0 iterations:
INFO Results can be found in out_workload/idle_1
Run Log This is my run.log:
2021-04-03 14:22:12,740 DEBUG command_li: Version: 3.3.1.dev1
2021-04-03 14:22:12,740 DEBUG command_li: devlib version: 1.3.1.dev1
2021-04-03 14:22:12,740 DEBUG command_li: Command Line: /home/rdubey/virtual-package-environment/bin/wa run idle -d out_workload/idle_1
2021-04-03 14:22:12,740 DEBUG command_li: System Encoding: UTF-8
2021-04-03 14:22:12,741 DEBUG pluginload: Discovering plugins in packages
2021-04-03 14:22:12,777 DEBUG pluginload: Checking module wa.commands
2021-04-03 14:22:12,778 DEBUG pluginload: Checking module wa.commands.create
2021-04-03 14:22:12,779 DEBUG pluginload: Adding command create
2021-04-03 14:22:12,779 DEBUG pluginload: Checking module wa.commands.list
2021-04-03 14:22:12,779 DEBUG pluginload: Adding command list
2021-04-03 14:22:12,779 DEBUG pluginload: Checking module wa.commands.process
2021-04-03 14:22:12,779 DEBUG pluginload: Adding command process
2021-04-03 14:22:12,779 DEBUG pluginload: Checking module wa.commands.report
2021-04-03 14:22:12,779 DEBUG pluginload: Adding command report
2021-04-03 14:22:12,779 DEBUG pluginload: Checking module wa.commands.revent
2021-04-03 14:22:12,779 DEBUG pluginload: Adding command record
2021-04-03 14:22:12,779 DEBUG pluginload: Adding command replay
2021-04-03 14:22:12,779 DEBUG pluginload: Checking module wa.commands.run
2021-04-03 14:22:12,780 DEBUG pluginload: Adding command run
2021-04-03 14:22:12,780 DEBUG pluginload: Checking module wa.commands.show
2021-04-03 14:22:12,780 DEBUG pluginload: Adding command show
2021-04-03 14:22:12,856 DEBUG pluginload: Checking module wa.framework.getters
2021-04-03 14:22:12,857 DEBUG pluginload: Adding resource_getter package
2021-04-03 14:22:12,857 DEBUG pluginload: Adding resource_getter user
2021-04-03 14:22:12,857 DEBUG pluginload: Adding resource_getter http
2021-04-03 14:22:12,857 DEBUG pluginload: Adding resource_getter filer
2021-04-03 14:22:12,857 DEBUG pluginload: Checking module wa.framework.target.descriptor
2021-04-03 14:22:12,857 DEBUG pluginload: Skipping target_descriptor TargetDescriptor as it does not define a name
2021-04-03 14:22:12,857 DEBUG pluginload: Adding target_descriptor devlib_targets
2021-04-03 14:22:12,857 DEBUG pluginload: Adding target_descriptor adhoc_targets
2021-04-03 14:22:12,865 DEBUG pluginload: Checking module wa.instruments
2021-04-03 14:22:12,865 DEBUG pluginload: Checking module wa.instruments.delay
2021-04-03 14:22:12,865 DEBUG pluginload: Adding instrument delay
2021-04-03 14:22:12,865 DEBUG pluginload: Checking module wa.instruments.dmesg
2021-04-03 14:22:12,865 DEBUG pluginload: Adding instrument dmesg
2021-04-03 14:22:12,866 DEBUG pluginload: Checking module wa.instruments.energy_measurement
2021-04-03 14:22:12,866 DEBUG pluginload: Skipping energy_instrument_backend EnergyInstrumentBackend as it does not define a name
2021-04-03 14:22:12,866 DEBUG pluginload: Adding energy_instrument_backend daq
2021-04-03 14:22:12,866 DEBUG pluginload: Adding energy_instrument_backend energy_probe
2021-04-03 14:22:12,866 DEBUG pluginload: Adding energy_instrument_backend arm_energy_probe
2021-04-03 14:22:12,866 DEBUG pluginload: Adding energy_instrument_backend acme_cape
2021-04-03 14:22:12,866 DEBUG pluginload: Adding energy_instrument_backend monsoon
2021-04-03 14:22:12,866 DEBUG pluginload: Adding energy_instrument_backend juno_readenergy
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument energy_measurement
2021-04-03 14:22:12,866 DEBUG pluginload: Checking module wa.instruments.fps
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument fps
2021-04-03 14:22:12,866 DEBUG pluginload: Checking module wa.instruments.hwmon
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument hwmon
2021-04-03 14:22:12,866 DEBUG pluginload: Checking module wa.instruments.misc
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument sysfs_extractor
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument execution_time
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument apk_version
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument interrupts
2021-04-03 14:22:12,866 DEBUG pluginload: Adding instrument cpufreq
2021-04-03 14:22:12,866 DEBUG pluginload: Checking module wa.instruments.perf
2021-04-03 14:22:12,867 DEBUG pluginload: Adding instrument perf
2021-04-03 14:22:12,867 DEBUG pluginload: Checking module wa.instruments.poller
2021-04-03 14:22:12,867 DEBUG pluginload: Adding instrument file_poller
2021-04-03 14:22:12,867 DEBUG pluginload: Checking module wa.instruments.proc_stat
2021-04-03 14:22:12,867 DEBUG pluginload: Adding instrument proc_stat
2021-04-03 14:22:12,867 DEBUG pluginload: Checking module wa.instruments.screencap
2021-04-03 14:22:12,867 DEBUG pluginload: Adding instrument screen_capture
2021-04-03 14:22:12,867 DEBUG pluginload: Checking module wa.instruments.serialmon
2021-04-03 14:22:12,867 DEBUG pluginload: Adding instrument serialmon
2021-04-03 14:22:12,867 DEBUG pluginload: Checking module wa.instruments.trace_cmd
2021-04-03 14:22:12,867 DEBUG pluginload: Adding instrument trace-cmd
2021-04-03 14:22:12,873 DEBUG pluginload: Checking module wa.output_processors
2021-04-03 14:22:12,874 DEBUG pluginload: Checking module wa.output_processors.cpustates
2021-04-03 14:22:12,874 DEBUG pluginload: Adding output_processor cpustates
2021-04-03 14:22:12,874 DEBUG pluginload: Checking module wa.output_processors.csvproc
2021-04-03 14:22:12,874 DEBUG pluginload: Adding output_processor csv
2021-04-03 14:22:12,874 DEBUG pluginload: Checking module wa.output_processors.postgresql
2021-04-03 14:22:12,874 DEBUG pluginload: Adding output_processor postgres
2021-04-03 14:22:12,874 DEBUG pluginload: Checking module wa.output_processors.sqlite
2021-04-03 14:22:12,874 DEBUG pluginload: Adding output_processor sqlite
2021-04-03 14:22:12,874 DEBUG pluginload: Checking module wa.output_processors.status
2021-04-03 14:22:12,874 DEBUG pluginload: Adding output_processor status
2021-04-03 14:22:12,874 DEBUG pluginload: Checking module wa.output_processors.targz
2021-04-03 14:22:12,874 DEBUG pluginload: Adding output_processor targz
2021-04-03 14:22:12,875 DEBUG pluginload: Checking module wa.output_processors.uxperf
2021-04-03 14:22:12,875 DEBUG pluginload: Adding output_processor uxperf
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.adobereader
2021-04-03 14:22:12,930 DEBUG pluginload: Adding workload adobereader
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.aitutu
2021-04-03 14:22:12,930 DEBUG pluginload: Adding workload aitutu
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.androbench
2021-04-03 14:22:12,930 DEBUG pluginload: Adding workload androbench
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.angrybirds_rio
2021-04-03 14:22:12,930 DEBUG pluginload: Adding workload angrybirds_rio
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.antutu
2021-04-03 14:22:12,930 DEBUG pluginload: Adding workload antutu
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.apache
2021-04-03 14:22:12,930 DEBUG pluginload: Adding workload apache
2021-04-03 14:22:12,930 DEBUG pluginload: Checking module wa.workloads.applaunch
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload applaunch
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.benchmarkpi
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload benchmarkpi
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.chrome
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload chrome
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.deepbench
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload deepbench
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.dhrystone
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload dhrystone
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.exoplayer
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload exoplayer
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.geekbench
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload geekbench
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload geekbench-corporate
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.gfxbench
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload gfxbench-corporate
2021-04-03 14:22:12,931 DEBUG pluginload: Checking module wa.workloads.glbenchmark
2021-04-03 14:22:12,931 DEBUG pluginload: Adding workload glbenchmark
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.gmail
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload gmail
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.googlemaps
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload googlemaps
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.googlephotos
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload googlephotos
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.googleplaybooks
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload googleplaybooks
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.googleslides
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload googleslides
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.hackbench
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload hackbench
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.homescreen
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload homescreen
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.hwuitest
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload hwuitest
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.idle
2021-04-03 14:22:12,932 DEBUG pluginload: Adding workload idle
2021-04-03 14:22:12,932 DEBUG pluginload: Checking module wa.workloads.jankbench
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload jankbench
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.lmbench
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload lmbench
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.manual
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload manual
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.meabo
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload meabo
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.memcpy
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload memcpy
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.mongoperf
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload mongoperf
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.motionmark
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload motionmark
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.openssl
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload openssl
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.pcmark
2021-04-03 14:22:12,933 DEBUG pluginload: Adding workload pcmark
2021-04-03 14:22:12,933 DEBUG pluginload: Checking module wa.workloads.recentfling
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload recentfling
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.rt_app
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload rt-app
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.shellscript
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload shellscript
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.speedometer
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload speedometer
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.stress_ng
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload stress-ng
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.sysbench
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload sysbench
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.templerun2
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload templerun2
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.the_chase
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload thechase
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.uibench
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload uibench
2021-04-03 14:22:12,934 DEBUG pluginload: Checking module wa.workloads.uibenchjanktests
2021-04-03 14:22:12,934 DEBUG pluginload: Adding workload uibenchjanktests
2021-04-03 14:22:12,935 DEBUG pluginload: Checking module wa.workloads.vellamo
2021-04-03 14:22:12,935 DEBUG pluginload: Adding workload vellamo
2021-04-03 14:22:12,935 DEBUG pluginload: Checking module wa.workloads.youtube
2021-04-03 14:22:12,935 DEBUG pluginload: Adding workload youtube
2021-04-03 14:22:12,935 DEBUG pluginload: Checking module wa.workloads.youtube_playback
2021-04-03 14:22:12,935 DEBUG pluginload: Adding workload youtube_playback
2021-04-03 14:22:12,935 DEBUG pluginload: Discovering plugins in paths
2021-04-03 14:22:12,935 DEBUG pluginload: Checking path /home/rdubey/.workload_automation/plugins
2021-04-03 14:22:12,946 DEBUG config: Creating section node
2021-04-03 14:22:12,946 DEBUG config: “id” to “global”
2021-04-03 14:22:12,946 DEBUG config: “iterations” to “1”
2021-04-03 14:22:12,947 DEBUG config: “workload_name” to “None”
2021-04-03 14:22:12,947 DEBUG config: “workload_parameters” to “None”
2021-04-03 14:22:12,947 DEBUG config: “runtime_parameters” to “None”
2021-04-03 14:22:12,947 DEBUG config: “boot_parameters” to “None”
2021-04-03 14:22:12,947 DEBUG config: “label” to “None”
2021-04-03 14:22:12,947 DEBUG config: “augmentations” to “None”
2021-04-03 14:22:12,947 DEBUG config: “flash” to “None”
2021-04-03 14:22:12,947 DEBUG config: “classifiers” to “None”
2021-04-03 14:22:12,961 DEBUG config: Parsing config from “/home/rdubey/.workload_automation/config.yaml”
2021-04-03 14:22:12,961 DEBUG config: Setting meta “user_directory” to “/home/rdubey/.workload_automation”
2021-04-03 14:22:12,961 DEBUG config: Setting meta “assets_repository” to “”
2021-04-03 14:22:12,961 DEBUG config: Setting meta “logging” to “{‘color’: True, ‘file_format’: ‘%(asctime)s %(levelname)-8s %(name)s: %(message)s’, ‘regular_format’: ‘%(levelname)-8s %(message)s’, ‘verbose_format’: ‘%(asctime)s %(levelname)-8s %(name)s: %(message)s’}”
2021-04-03 14:22:12,961 DEBUG config: Setting meta “verbosity” to “0”
2021-04-03 14:22:12,961 DEBUG config: Setting meta “default_output_directory” to “wa_output”
2021-04-03 14:22:12,961 DEBUG config: Setting run “execution_order” to “by_iteration”
2021-04-03 14:22:12,961 DEBUG config: Setting run “reboot_policy” to “as_needed”
2021-04-03 14:22:12,961 DEBUG config: Setting run “device” to “generic_linux”
2021-04-03 14:22:12,961 DEBUG config: Setting run “retry_on_status” to “[‘FAILED’, ‘PARTIAL’]”
2021-04-03 14:22:12,961 DEBUG config: Setting run “max_retries” to “2”
2021-04-03 14:22:12,961 DEBUG config: Setting run “bail_on_init_failure” to “True”
2021-04-03 14:22:12,961 DEBUG config: Setting run “bail_on_job_failure” to “False”
2021-04-03 14:22:12,961 DEBUG config: Setting run “allow_phone_home” to “True”
2021-04-03 14:22:12,961 DEBUG config: Setting global “augmentations” to “toggle_set({‘interrupts’, ‘csv’, ‘execution_time’, ‘status’})”
2021-04-03 14:22:12,961 DEBUG config: Caching “device_config” with “{‘host’: ‘172.19.253.142’, ‘username’: ‘root’, ‘password’: ‘’}”
2021-04-03 14:22:12,962 DEBUG run: Using output directory: out_workload/idle_1
2021-04-03 14:22:12,962 INFO output: Creating output directory.
2021-04-03 14:22:12,982 DEBUG output: Adding artifact: run.log
2021-04-03 14:22:12,983 DEBUG config: Parsing agenda from “CMDLINE_ARGS”
2021-04-03 14:22:12,983 DEBUG config: Creating workload node
2021-04-03 14:22:12,983 DEBUG config: “id” to “wk1”
2021-04-03 14:22:12,983 DEBUG config: “workload_name” to “idle”
2021-04-03 14:22:12,983 DEBUG signal: Connecting
Other comments (optional)
The linux that runs on zcu102 board (ARM arch) is booted via uboot and was built via yocto project.
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Hi @richidubey, I’ve been working on this in https://github.com/ARM-software/devlib/pull/540, linked above. When you see status switch to Merged, please try this again. I believe the segfault is caused by statically-linked glibc causing an issue in
__nss_readline
.The PR switches the C library to uClibc, which should present no such issues.
Hi @benjaminmordaunt, Around a week ago, I cloned fresh master sources of devlib and wa and installed them with python setup.py install (workload-automation at
7f0a6da8 (HEAD -> master, origin/master, origin/HEAD) build(deps): bump pyyaml from 5.3.1 to 5.4
and devlib ate7bafd6 (HEAD -> master, origin/master, origin/HEAD) version: Bump dev version ca84124 doc/target: Fix Typo
) and I did not have any issue with the hostid i.e. I did not have to make any plugin and it worked as it is. 😃Thanks for reaching out.