[Pkg-opencl-devel] Bug#768185: beignet kills calling application on program build errors, logging errors to console

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Wed Nov 5 19:16:22 UTC 2014


Package: beignet
Version: 0.9.3~dfsg-1
Severity: important

Running clinfo from http://github.com/Oblomov/clinfo with beignet installed
results in two undesired behaviours when clinfo tries to compile some
kernels:

1. the following messages are logged to stderr

<premain>: CommandLine Error: Option 'error-reporting-is-cold' registered more than once!
<premain>: CommandLine Error: Option 'simplifycfg-hoist-cond-stores' registered more than once!
<premain>: CommandLine Error: Option 'simplifycfg-sink-common' registered more than once!
<premain>: CommandLine Error: Option 'simplifycfg-dup-ret' registered more than once!
<premain>: CommandLine Error: Option 'phi-node-folding-threshold' registered more than once!
<premain>: CommandLine Error: Option 'unlikely-branch-weight' registered more than once!
<premain>: CommandLine Error: Option 'likely-branch-weight' registered more than once!
<premain>: CommandLine Error: Option 'no-discriminators' registered more than once!
<premain>: CommandLine Error: Option 'combine-loads' registered more than once!
<premain>: CommandLine Error: Option 'reroll-loops' registered more than once!
<premain>: CommandLine Error: Option 'use-new-sroa' registered more than once!
<premain>: CommandLine Error: Option 'use-gvn-after-vectorization' registered more than once!
<premain>: CommandLine Error: Option 'vectorize-slp-aggressive' registered more than once!
<premain>: CommandLine Error: Option 'vectorize-slp' registered more than once!
<premain>: CommandLine Error: Option 'vectorize-loops' registered more than once!
<premain>: CommandLine Error: Option 'internalize-public-api-list' registered more than once!
<premain>: CommandLine Error: Option 'internalize-public-api-file' registered more than once!
<premain>: CommandLine Error: Option 'inlinecold-threshold' registered more than once!
<premain>: CommandLine Error: Option 'inlinehint-threshold' registered more than once!
<premain>: CommandLine Error: Option 'inline-threshold' registered more than once!
<premain>: CommandLine Error: Option 'enable-objc-arc-opts' registered more than once!
<premain>: CommandLine Error: Option 'enable-tbaa' registered more than once!
<premain>: CommandLine Error: Option 'verify-scev' registered more than once!
<premain>: CommandLine Error: Option 'scalar-evolution-max-iterations' registered more than once!
<premain>: CommandLine Error: Option 'verify-loop-info' registered more than once!
<premain>: CommandLine Error: Option 'da-delinearize' registered more than once!
<premain>: CommandLine Error: Option 'info-output-file' registered more than once!
<premain>: CommandLine Error: Option 'track-memory' registered more than once!
<premain>: CommandLine Error: Option 'stats' registered more than once!
<premain>: CommandLine Error: Option 'rng-seed' registered more than once!
<premain>: CommandLine Error: Option 'view-background' registered more than once!
<premain>: CommandLine Error: Option 'version' registered more than once!
<premain>: CommandLine Error: Option 'print-all-options' registered more than once!
<premain>: CommandLine Error: Option 'print-options' registered more than once!
<premain>: CommandLine Error: Option 'help-hidden' registered more than once!
<premain>: CommandLine Error: Option 'help' registered more than once!
<premain>: CommandLine Error: Option 'help-list-hidden' registered more than once!
<premain>: CommandLine Error: Option 'help-list' registered more than once!
<premain>: CommandLine Error: Option 'sample-profile-max-propagate-iterations' registered more than once!
<premain>: CommandLine Error: Option 'sample-profile-file' registered more than once!
<premain>: CommandLine Error: Option 'sroa-strict-inbounds' registered more than once!
<premain>: CommandLine Error: Option 'sroa-random-shuffle-slices' registered more than once!
<premain>: CommandLine Error: Option 'force-ssa-updater' registered more than once!
<premain>: CommandLine Error: Option 'mlsm' registered more than once!
<premain>: CommandLine Error: Option 'loop-unswitch-threshold' registered more than once!
<premain>: CommandLine Error: Option 'pragma-unroll-threshold' registered more than once!
<premain>: CommandLine Error: Option 'unroll-runtime' registered more than once!
<premain>: CommandLine Error: Option 'unroll-allow-partial' registered more than once!
<premain>: CommandLine Error: Option 'unroll-count' registered more than once!
<premain>: CommandLine Error: Option 'unroll-threshold' registered more than once!
<premain>: CommandLine Error: Option 'rotation-max-header-size' registered more than once!
<premain>: CommandLine Error: Option 'max-reroll-increment' registered more than once!
<premain>: CommandLine Error: Option 'disable-licm-promotion' registered more than once!
<premain>: CommandLine Error: Option 'jump-threading-threshold' registered more than once!
<premain>: CommandLine Error: Option 'liv-reduce' registered more than once!
<premain>: CommandLine Error: Option 'verify-indvars' registered more than once!
<premain>: CommandLine Error: Option 'max-recurse-depth' registered more than once!
<premain>: CommandLine Error: Option 'enable-load-pre' registered more than once!
<premain>: CommandLine Error: Option 'enable-pre' registered more than once!
<premain>: CommandLine Error: Option 'tsan-instrument-memintrinsics' registered more than once!
<premain>: CommandLine Error: Option 'tsan-instrument-atomics' registered more than once!
<premain>: CommandLine Error: Option 'tsan-instrument-func-entry-exit' registered more than once!
<premain>: CommandLine Error: Option 'tsan-instrument-memory-accesses' registered more than once!
<premain>: CommandLine Error: Option 'msan-wrap-indirect-calls-fast' registered more than once!
<premain>: CommandLine Error: Option 'msan-wrap-indirect-calls' registered more than once!
<premain>: CommandLine Error: Option 'msan-instrumentation-with-call-threshold' registered more than once!
<premain>: CommandLine Error: Option 'msan-dump-strict-instructions' registered more than once!
<premain>: CommandLine Error: Option 'msan-check-access-address' registered more than once!
<premain>: CommandLine Error: Option 'msan-handle-icmp-exact' registered more than once!
<premain>: CommandLine Error: Option 'msan-handle-icmp' registered more than once!
<premain>: CommandLine Error: Option 'msan-poison-undef' registered more than once!
<premain>: CommandLine Error: Option 'msan-poison-stack-pattern' registered more than once!
<premain>: CommandLine Error: Option 'msan-poison-stack-with-call' registered more than once!
<premain>: CommandLine Error: Option 'msan-poison-stack' registered more than once!
<premain>: CommandLine Error: Option 'msan-keep-going' registered more than once!
<premain>: CommandLine Error: Option 'msan-track-origins' registered more than once!
<premain>: CommandLine Error: Option 'default-gcov-version' registered more than once!
<premain>: CommandLine Error: Option 'dfsan-debug-nonzero-labels' registered more than once!
<premain>: CommandLine Error: Option 'dfsan-combine-pointer-labels-on-store' registered more than once!
<premain>: CommandLine Error: Option 'dfsan-combine-pointer-labels-on-load' registered more than once!
<premain>: CommandLine Error: Option 'dfsan-args-abi' registered more than once!
<premain>: CommandLine Error: Option 'dfsan-abilist' registered more than once!
<premain>: CommandLine Error: Option 'dfsan-preserve-alignment' registered more than once!
<premain>: CommandLine Error: Option 'bounds-checking-single-trap' registered more than once!
<premain>: CommandLine Error: Option 'asan-debug-max' registered more than once!
<premain>: CommandLine Error: Option 'asan-debug-min' registered more than once!
<premain>: CommandLine Error: Option 'asan-debug-func' registered more than once!
<premain>: CommandLine Error: Option 'asan-debug-stack' registered more than once!
<premain>: CommandLine Error: Option 'asan-debug' registered more than once!
<premain>: CommandLine Error: Option 'asan-check-lifetime' registered more than once!
<premain>: CommandLine Error: Option 'asan-opt-globals' registered more than once!
<premain>: CommandLine Error: Option 'asan-opt-same-temp' registered more than once!
<premain>: CommandLine Error: Option 'asan-opt' registered more than once!
<premain>: CommandLine Error: Option 'asan-mapping-scale' registered more than once!
<premain>: CommandLine Error: Option 'asan-keep-uninstrumented-functions' registered more than once!
<premain>: CommandLine Error: Option 'asan-memory-access-callback-prefix' registered more than once!
<premain>: CommandLine Error: Option 'asan-instrumentation-with-call-threshold' registered more than once!
<premain>: CommandLine Error: Option 'asan-realign-stack' registered more than once!
<premain>: CommandLine Error: Option 'asan-detect-invalid-pointer-pair' registered more than once!
<premain>: CommandLine Error: Option 'asan-initialization-order' registered more than once!
<premain>: CommandLine Error: Option 'asan-coverage-block-threshold' registered more than once!
<premain>: CommandLine Error: Option 'asan-coverage' registered more than once!
<premain>: CommandLine Error: Option 'asan-globals' registered more than once!
<premain>: CommandLine Error: Option 'asan-use-after-return' registered more than once!
<premain>: CommandLine Error: Option 'asan-stack' registered more than once!
<premain>: CommandLine Error: Option 'asan-max-ins-per-bb' registered more than once!
<premain>: CommandLine Error: Option 'asan-always-slow-path' registered more than once!
<premain>: CommandLine Error: Option 'asan-instrument-atomics' registered more than once!
<premain>: CommandLine Error: Option 'asan-instrument-writes' registered more than once!
<premain>: CommandLine Error: Option 'asan-instrument-reads' registered more than once!
<premain>: CommandLine Error: Option 'max-cg-scc-iterations' registered more than once!
<premain>: CommandLine Error: Option 'slp-vectorize-hor-store' registered more than once!
<premain>: CommandLine Error: Option 'slp-vectorize-hor' registered more than once!
<premain>: CommandLine Error: Option 'slp-threshold' registered more than once!
<premain>: CommandLine Error: Option 'enable-cond-stores-vec' registered more than once!
<premain>: CommandLine Error: Option 'enable-ind-var-reg-heur' registered more than once!
<premain>: CommandLine Error: Option 'vectorize-num-stores-pred' registered more than once!
<premain>: CommandLine Error: Option 'enable-loadstore-runtime-unroll' registered more than once!
<premain>: CommandLine Error: Option 'loop-vectorize-with-block-frequency' registered more than once!
<premain>: CommandLine Error: Option 'small-loop-cost' registered more than once!
<premain>: CommandLine Error: Option 'force-target-instruction-cost' registered more than once!
<premain>: CommandLine Error: Option 'force-target-max-vector-unroll' registered more than once!
<premain>: CommandLine Error: Option 'force-target-max-scalar-unroll' registered more than once!
<premain>: CommandLine Error: Option 'force-target-num-vector-regs' registered more than once!
<premain>: CommandLine Error: Option 'force-target-num-scalar-regs' registered more than once!
<premain>: CommandLine Error: Option 'enable-mem-access-versioning' registered more than once!
<premain>: CommandLine Error: Option 'vectorizer-min-trip-count' registered more than once!
<premain>: CommandLine Error: Option 'enable-if-conversion' registered more than once!
<premain>: CommandLine Error: Option 'force-vector-unroll' registered more than once!
<premain>: CommandLine Error: Option 'force-vector-width' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-fast-dep' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-mem-op-boost' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-aligned-only' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-mem-ops' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-gep' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-cmp' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-select' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-fma' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-bitmanip' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-math' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-casts' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-pointers' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-floats' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-ints' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-no-bools' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-max-cycle-check-pairs' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-max-pairs-per-group' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-max-instr-per-group' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-pow2-len-only' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-max-iter' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-vector-bits' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-splat-breaks-chain' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-search-limit' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-use-chain-depth' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-req-chain-depth' registered more than once!
<premain>: CommandLine Error: Option 'bb-vectorize-ignore-target-info' registered more than once!
<premain>: CommandLine Error: Option 'enable-double-float-shrink' registered more than once!
<premain>: CommandLine Error: Option 'enable-bc-uselist-preserve' registered more than once!
<premain>: CommandLine Error: Option 'fatal-assembler-warnings' registered more than once!
<premain>: CommandLine Error: Option 'verify-debug-info' registered more than once!
<premain>: CommandLine Error: Option 'time-passes' registered more than once!
<premain>: CommandLine Error: Option 'print-after-all' registered more than once!
<premain>: CommandLine Error: Option 'print-before-all' registered more than once!
<premain>: CommandLine Error: Option 'print-after' registered more than once!
<premain>: CommandLine Error: Option 'print-before' registered more than once!
<premain>: CommandLine Error: Option 'debug-pass' registered more than once!
<premain>: CommandLine Error: Option 'verify-dom-info' registered more than once!
<premain>: CommandLine Error: Option 'pass-remarks-analysis' registered more than once!
<premain>: CommandLine Error: Option 'pass-remarks-missed' registered more than once!
<premain>: CommandLine Error: Option 'pass-remarks' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

2. the invoking application (clinfo) is terminated right after

Both of these behaviours should be avoided in the following way:

1. all errors during compilation should be logged internally, and made
available only through the build log API of OpenCL;
2. beignet should not call exit() directly, but only return the
appropriate error.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages beignet depends on:
ii  libc6                     2.19-12
ii  libdrm-intel1             2.4.58-2
ii  libdrm2                   2.4.58-2
ii  libedit2                  3.1-20140620-2
ii  libffi6                   3.1-2
ii  libgcc1                   1:4.9.2-1
ii  libgl1-mesa-glx [libgl1]  10.3.2-1
ii  libstdc++6                4.9.2-1
ii  libtinfo5                 5.9+20140913-1
ii  libx11-6                  2:1.6.2-3
ii  libxext6                  2:1.3.3-1
ii  libxfixes3                1:5.0.1-2
ii  zlib1g                    1:1.2.8.dfsg-2

beignet recommends no packages.

beignet suggests no packages.

-- no debconf information



More information about the Pkg-opencl-devel mailing list