sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Add option to define environment vars
Labels: C-feature-request

Right now, code can use `env!()` and `option_env!()` to query arbitrary environment variables set at the time rustc is invoked. This is a subtle leak of the compilation environment into the generated code, which can cause issues with build reproducibility, and could conceivably be considered a security problem.

I'd like to have the option to completely define the "environment" that's available to `env!()` on the compiler command line to an explicitly delimited set of names and values

For example:

`--override-env` - disable querying of real environment
`--set-env name=val` - define an environment variable (added to existing env if `--override-env` not set)
`--unset-env name` - make a name unset

cc @luser - this seems pertinent to caching https://github.com/rust-lang/cargo/issues/3066
Repository: rust
Issue: Assertion failed in llvm/include/llvm/Support/Casting.h
Labels: I-crash,A-LLVM,T-compiler,C-bug

Source:

```rust
pub extern "C" fn alt_main() {
    extern {
        fn main() -> i32;
    }

    unsafe { main(); }
}

pub fn main() {
    println!("Hello");
}
```

Result:

```
$ rustc alt_main.rs -C link-args="-e_alt_main"
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/llvm/include/llvm/Support/Casting.h, line 237.
```

Rustc:
rustc 1.17.0-nightly (c49d10207 2017-02-07) on OS X


Edit: I'm aware that there are issues w/ the actual code, but even if I fix them, the assertion still fails
Repository: youtube-dl
Issue: Site Request: NowTV.com
Labels: site-support-request,account-needed

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.02.07**
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Site support request (request for adding support for a new site)

---

### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:

Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://watch.nowtv.com/watch-entertainment/mo
rph/1950055733548510VgnVCM1000000b43150a____/seasons/1/episodes/1']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.02.07
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[generic] 1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1: Downloading webpage
[generic] 1: Extracting information
ERROR: Unsupported URL: http://watch.nowtv.com/watch-entertainment/morph/1950055
733548510VgnVCM1000000b43150a____/seasons/1/episodes/1
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfjt892j_\bu
ild\youtube_dl\YoutubeDL.py", line 696, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfjt892j_\bu
ild\youtube_dl\extractor\common.py", line 369, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfjt892j_\bu
ild\youtube_dl\extractor\generic.py", line 2589, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: http://watch.nowtv.com/watch
-entertainment/morph/1950055733548510VgnVCM1000000b43150a____/seasons/1/episodes
/1
...
<end of log>
```

---

### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: http://watch.nowtv.com/watch-entertainment/morph/1950055733548510VgnVCM1000000b43150a____/seasons/1/episodes/1

Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

---

### Description of your *issue*, suggested solution and other information

I'd like to make a request for nowtv.com please, thank you.
Repository: angular
Issue: Update DOM when changing template in reactive form fails
Labels: type: bug/fix,freq3: high,area: forms,state: confirmed,P3

**I'm submitting a ...**  (check one with "x")
```
[ x ] bug report => search github for a similar issue or PR before submitting
[   ] feature request
[   ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

**Current behavior**
<!-- Describe how the bug manifests. -->
Changing a reactive form template fails. When replacing the form, it throws an error: `Error in ./App class App - inline template:0:6 caused by: control.registerOnChange is not a function`


**Expected behavior**
<!-- Describe what the behavior would be without the bug. -->
It should not throw any error... and should change the template


**Minimal reproduction of the problem with instructions**
<!--
If the current behavior is a bug or you can illustrate your feature request better with an example, 
please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->
https://plnkr.co/edit/dJ1KyDLFDOOa1FUfWu5d?p=preview

Click on new template and check the console

**What is the motivation / use case for changing the behavior?**
<!-- Describe the motivation or the concrete use case -->

**Please tell us about your environment:**
<!-- Operating system, IDE, package manager, HTTP server, ... -->
NodeJS 7.4.0 running on Windows 10

* **Angular version:** 2.4.7

* **Browser:** Chrome 55 64bit

* **Language:** Typescript
Repository: vscode
Issue: Git - Support GitHub 2FA
Labels: help wanted,feature-request,git

- VSCode Version: 1.9.1
- OS Version: Ubuntu 14.04, 16.04

Steps to Reproduce:

1. Make changes to a GitHub repo with two-factor authentication enabled
2. Push/Sync changes.

> Error: Authentication failed on the git remote.

A dialog box appears to enter your git username/password, but there is no subsequent dialog for the two-factor authentication code, and so the process just fails. 

The `https` protocol was used for the `git clone` on this repo.
Repository: flutter
Issue: `flutter doctor` should warn if `flutter` is not in your path.
Labels: c: new feature,tool,t: flutter doctor,P2,team-tool,triaged-tool

`brew doctor` and other tools do this.  Our current flutter.io/setup instructions don't instruct you how to permenently add `flutter` to your path so it's easy to get into this state (if you restart).

It's possible we separately will want a `flutter install-in-path` or `flutter fix-path` or whatever to help folks with this over time.
Repository: go
Issue: cmd/compile: add tool for understanding/debugging SSA rules
Labels: compiler/runtime

As discussed in [CL 36329](https://golang.org/cl/36329), debugging SSA rules can be tedious and time-consuming. [CL 36646](https://golang.org/cl/36646) adds some rudimentary tools to help. This issue describes a pie-in-the-sky tool. Maybe we'll settle on something in between. :)

ssa.html appropriately treats rule-based passes (opt, dec, lower) as a single phase, but they actually perform a very long series of transformations, and it can be hard to see how the input relates to the output. In a typical rule pass, many many rules get applied, so putting them all side-by-side is not feasible.

But imagine some html dedicated to a single rule-based pass. Two columns, before and after, similar to existing ssa.html columns. A header at the top shows a single rule being applied, and if it does not apply, why it does not apply. Before column shows input to that rule, after shows output. Use arrow keys to step forward/back to watch rules get applied (or not) one at a time.

This would be unusable without a way to filter--there are too many rules to view them all one at a time. Filtering should consist of marking either rules and/or values of interest. Any rule marked as interesting always gets shown, whether it applies or not. Any rule that alters a value of interest gets shown. All other rules get compressed into a single "n rules applied" rule.

So a typical debugging experience might be:

* Mark rules as interesting in the rules file somehow.
* Provide a list of interesting values, from observing previous compilations of the same code. (Where/how? envvar? file? Specifying values of interest dynamically in UI might be too hard, for data volume and sanity reasons.)
* Compile, generating html artifact.
* Poke around at the rules/values you care about.
* Glorious comprehension / profit.

cc @rasky @randall77 @minux
Repository: rust
Issue: Tracking issue for sanitizer support
Labels: B-unstable,T-dev-tools,A-sanitizers,C-tracking-issue,S-tracking-needs-summary,A-CLI

Currently we have:

- A rustc flag, `-Z sanitizer`, to sanitize rlibs (it adds an extra LLVM pass/attribute) and executables (it links to the sanitizer runtime). Added in #38699.

- An attribute `#[no_sanitize]` to disable sanitization on specific functions. Also lints if those functions are marked as requesting inlining. Added in https://github.com/rust-lang/rust/pull/68164.
  - `#[no_sanitize]` suppresses `#[inline]` hints. A lint is issued if combined with `#[inline(always)]`.

- A few violations (false positives?) in the test runner
  - [x] ThreadSanitizer detects a data race in the test runner (`rustc --test`) #39608
  - [x] MemorySanitizer detects an use of unitialized value in the test runner (`rustc --test`) #39610

- Known issues
  - [x] Incremental compilation breaks sanitizers #39611

- Unresolved questions:
  - [ ] Should we call the attribute `#[no_sanitize]` or perhaps something like `#[sanitize(never)]` or some other variation? In particular, might we at some point want "positive options" like `#[sanitize(miri(aggressive))]`? There is much back and forth in #68164.
  - [ ] What should the user experience be to enable sanitizers, particularly when using cargo? Should cargo have first-class support? Is that blocked on build-std stabilizing?
Repository: tensorflow
Issue: `tf.dynamic_stitch` gradient is incorrect
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.9

### If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)

Original reproduction code (TensorFlow 1.0)
``` python
import tensorflow as tf

x = tf.zeros((1, 3))
y = tf.dynamic_stitch([[0], [0]], [x, tf.ones((1, 3))])

with tf.Session() as sess:
    print("y")
    print(sess.run(y))

    analytic, numeric = tf.test.compute_gradient(x, (1, 3), y, (1, 3))
    print("analytic")
    print(analytic)
    print("numeric")
    print(numeric)
```
Updated reproduction code (TensorFlow 2.16)
``` python
import tensorflow as tf

x = tf.zeros((1, 3))

analytic, numeric = tf.test.compute_gradient(
    lambda x: tf.dynamic_stitch([[0], [0]], [x, tf.ones((1, 3))]), [x]
)
print("analytic")
print(analytic)
print("numeric")
print(numeric)
```

gives output
```
y
[[ 1.  1.  1.]]
analytic
[[ 1.  0.  0.]
 [ 0.  1.  0.]
 [ 0.  0.  1.]]
numeric
[[ 0.  0.  0.]
 [ 0.  0.  0.]
 [ 0.  0.  0.]]
```

The numeric gradient correctly shows that `x` has no impact on `y` (since the value of `x` is completely overwritten by a constant in the `dynamic_stitch`).  The analytic gradient is incorrect; it seems like the gradient calculation in `dynamic_stitch` does not handle the case where there are duplicate indices being merged.
Repository: go
Issue: cmd/pprof: invokeVisualizer is racy
Labels: compiler/runtime

In `invokeVisualizer`, we [defer deleting the temporary file](https://github.com/golang/go/blob/c439a5d8b77a3b87d94bc49714faeeb2a04112f4/src/cmd/pprof/internal/commands/commands.go#L205) when invoking the visualizer until the end of the `pprof` program. However, the `invokeVisualizer` [does not wait for the viewer to finish](https://github.com/golang/go/blob/c439a5d8b77a3b87d94bc49714faeeb2a04112f4/src/cmd/pprof/internal/commands/commands.go#L225-L229) when not running in interactive mode.

Thus, the following race occurs in non-interactive mode:
* `pprof` generates some report
* `pprof` invokes the browser to show report; Chrome starts running
* Without waiting for browser to end, we return from `invokeVisualizer` and the `pprof` program begins terminations.
* The `DeferDelete` is run, deleting the report file
* Chrome has finished starting up, but cannot find the file. Oops.

The fix is probably to wait for the visualizer to end regardless of "interactivity".
Repository: neovim
Issue: "dd if=/dev/zero | nvim -s -" hangs
Labels: bug,io,input,system

- `nvim --version: NVIM 0.1.7 // Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -DNDEBUG -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.7/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser`
- Vim (version: ) behaves differently and accepts interrupts
- Operating system/version: arch linux, latest packages as of 11.02.2017.
- Terminal name/version: any or urxvt
- `$TERM`: rxvt-unicode-256color

### Actual behaviour
«dd if=/dev/zero | nvim» doesn't accept interrupts and the terminal is effectively *locked*

### Expected behaviour
Embrace the interrupt and die or stop reading from stdin.

### Steps to reproduce using `nvim -u NORC`
«dd if=/dev/zero | nvim -u NORC»
Repository: opencv
Issue: CMake cannot find PythonLibs
Labels: wontfix,category: build/install

##### System information (version)
- OpenCV => 3.2.0
- Operating System / Platform => Windows 10
- Compiler => GNU 4.8.1
- Python => 3.5.0
- CMake => 3.7.2
- Generator => MinGW Makefiles

##### Detailed description

When I _configure_ using CMake-gui, I get

```
Found PythonInterp: D:/Python35/python.exe (found suitable version "3.5", minimum required is "2.7") 
Found PythonInterp: D:/Python35/python.exe (found suitable version "3.5", minimum required is "3.4") 
Could NOT find PythonLibs (missing:  PYTHON_INCLUDE_DIRS) (Required is exact version "3.5.0")
```

On setting `PYTHON_INCLUDE_DIRS` to `D:/Python35/include` and configuring again, I no longer get the "could not find ..." message, but libraries are still not found:
```
  Python 3:
    Interpreter:                 D:/Python35/python.exe (ver 3.5)
    Libraries:                   NO
    numpy:                       D:/Python35/lib/site-packages/numpy/core/include (ver 1.11.2)
    packages path:               D:/Python35/Lib/site-packages
```

CMake screenshot:
![image](https://cloud.githubusercontent.com/assets/13014700/22824978/6dceefc2-efac-11e6-8994-e0d5c477bfe7.png)
Repository: youtube-dl
Issue: Site Request: wuaki.tv
Labels: site-support-request,geo-restricted,account-needed

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.02.10**
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Site support request (request for adding support for a new site)

---

### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:

Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
youtube-dl.exe -v https://uk.wuaki.tv/movies/sintel
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://uk.wuaki.tv/movies/sintel']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.02.07
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-83410-gb1e2192, ffprobe N-83410-gb1e2192
[debug] Proxy map: {}
[generic] sintel: Requesting header
[redirect] Following redirect to https://uk.wuaki.tv/pages/update_browser
[generic] update_browser: Requesting header
WARNING: Falling back on generic information extractor.
[generic] update_browser: Downloading webpage
[generic] update_browser: Extracting information
ERROR: Unsupported URL: https://uk.wuaki.tv/pages/update_browser
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfjt892j_\bu
ild\youtube_dl\YoutubeDL.py", line 696, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfjt892j_\bu
ild\youtube_dl\extractor\common.py", line 369, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfjt892j_\bu
ild\youtube_dl\extractor\generic.py", line 2589, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://uk.wuaki.tv/pages/up
date_browser
...
<end of log>
```

---

### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://uk.wuaki.tv/movies/sintel   (This is a free video)

Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

---

### Description of your *issue*, suggested solution and other information

I'd like to make a request for wuaki.tv please, thank you.
Repository: opencv
Issue: Clustering wiki page missing description of bestLabels function argument 
Labels: feature,priority: low,category: documentation,affected: 2.4

- OpenCV => 2.4.3
- Operating System / Platform => Ubuntu 14.04
- Compiler => gcc

The wiki page on clustering (http://docs.opencv.org/2.4.3/modules/core/doc/clustering.html) doesn't have a description of what the function argument "bestLabels" does?
Repository: go
Issue: net, net/http: unpredictable slowness of TestSendfile and TestOnlyWriteTimeout w/ squeezed TCP windows
Labels: Performance

This is probably not an issue for the standard library; for the runtime package which retrieves data readable/writable notifications from the kernel, for the net package which invokes read/write system calls, and for the net/http package which adds, drops and manages in-flight connections and IO calls for customer traffic. This happens, as fa as I can observe, on any combination of FreeBSD 10 through 12  and go1.7 through tip.

When we run a script like the following:
```
#!/usr/bin/env bash

function die() {
        rc=$?
        sudo sysctl -w net.inet.tcp.recvspace=65536
        sudo sysctl -w net.inet.tcp.sendspace=32768
        exit $rc
}

for (( wnd=65536; wnd >= 1024; wnd /= 2 )); do
        sudo sysctl -w net.inet.tcp.recvspace=$wnd
        sudo sysctl -w net.inet.tcp.sendspace=$wnd
        go test -v -run TestSendfile net || die
#        go test -v -run TestOnlyWriteTimeout net/http || die
done

die
```
TestSendfile takes a bit long time with some window size.
```
net.inet.tcp.recvspace: 65536 -> 65536
net.inet.tcp.sendspace: 32768 -> 65536
=== RUN   TestSendfile
--- PASS: TestSendfile (0.11s)
net.inet.tcp.recvspace: 65536 -> 32768
net.inet.tcp.sendspace: 65536 -> 32768
=== RUN   TestSendfile
--- PASS: TestSendfile (15.24s)
net.inet.tcp.recvspace: 32768 -> 16384
net.inet.tcp.sendspace: 32768 -> 16384
=== RUN   TestSendfile
--- PASS: TestSendfile (0.21s)
net.inet.tcp.recvspace: 16384 -> 8192
net.inet.tcp.sendspace: 16384 -> 8192
=== RUN   TestSendfile
--- PASS: TestSendfile (83.76s)
net.inet.tcp.recvspace: 8192 -> 4096
net.inet.tcp.sendspace: 8192 -> 4096
=== RUN   TestSendfile
--- PASS: TestSendfile (14.93s)
net.inet.tcp.recvspace: 4096 -> 2048
net.inet.tcp.sendspace: 4096 -> 2048
=== RUN   TestSendfile
--- PASS: TestSendfile (25.12s)
net.inet.tcp.recvspace: 2048 -> 1024
net.inet.tcp.sendspace: 2048 -> 1024
=== RUN   TestSendfile
--- PASS: TestSendfile (45.75s)
```
With a quick glance at system call trace, it looks like the kevent system call sometimes takes a long breath.

Not sure the reason; sb{r,w}wakeup miss some important condition? tcp_input miscalculates some threshold for sb{r,w}wakeup? tcp over ip over loopback interface does some special short-circuit/fuse stuff? or runtime-integrated network poller is not invoked appropriately? (the last one is unlikely)

Note that I ran the above test under some VM stuff on my '09 laptop and I guess that test results may vary on circumstances.
Repository: opencv
Issue: cvtColor on OpenCL (AMD) doesn't compile
Labels: invalid,priority: low,category: ocl

##### System information (version)
- OpenCV => 3.2
- Operating System / Platform => Linux Ubuntu 16.04 64 Bit
- Compiler => gcc 5.4.0
- GPU => AMD FirePro S9300 x2 

##### Detailed description
OpenCL kernel for cvtColor cannot be compiled using ROCm 1.4 driver. When the function compiles (when it is used) the compiler returns:
> OpenCL program build log: -D depth=0 -D scn=3 -D PIX_PER_WI_Y=1 -D dcn=1 -D bidx=0 -D STRIPE_SIZE=1 -D AMD_DEVICE
> error: <unknown>:0:0: in function Lab2BGR void (i8 addrspace(1)*, i32, i32, i8 addrspace(1)*, i32, i32, i32, i32, float addrspace(2)*, float, float): unsupported call to function Lab2BGR_f
> Error: Creating the executable failed: Compiling LLVM IRs to exe.

When looking at Lab2BGR in cvtcolor.cl we see it really does use a function named Lab2BGR_f. There seems nothing out of the ordinary about that function, except that it is inline. And while it normally wouldn't cause any problems it seems that with the current AMD CL driver this crashes. When I remove the inline everything works fine. 
It doesn't return any stack trace or clang dump.
Cannot be replicated on Nvidia GPU's with Nvidia driver.
##### Steps to reproduce
```.cpp
    // Just call cvtColor (any conversion) with OpenCL active
   cv::cvtColor(in_device, out_device, cv::COLOR_BGR2GRAY);
```