sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: 1.15.1 (and earlier) armhf nondeterministically uses locking to implement atomic instructions when cross-compiling to x64 but not x86
Labels: O-Arm,C-bug

This was originally reported over at #33809 with the full build log [here](https://gist.github.com/mmatyas/b775b83908cbdfc6551ff79d8bf0b0ef) but back then I dismissed it as "just install binutils-multiarch". However, we just saw the exact same issue crop up when trying to bring rustc to Debian armhf.

Build machine: [hasse.debian.org](https://db.debian.org/machines.cgi?host=hasse)
Raw build log: https://buildd.debian.org/status/fetch.php?pkg=rustc&arch=armhf&ver=1.15.1%2Bdfsg1-1%7Eexp2&stamp=1488549003&raw=1

The relevant part is here, visible in both build logs:

~~~~
error: make failed
status: exit code: 2
command: "make"
stdout:
------------------------------------------
make[3]: Entering directory '/«BUILDDIR»/rustc-1.15.1+dfsg1/src/test/run-make/atomic-lock-free'
LD_LIBRARY_PATH="[..]" '[..]/rustc' [..] -C link-args=-Wl,-z,relro --target=i686-unknown-linux-gnu atomic_lock_free.rs
nm "[..]/libatomic_lock_free.rlib" | grep -vq __atomic_fetch_add
LD_LIBRARY_PATH="[..]" '[..]/rustc' [..] -C link-args=-Wl,-z,relro --target=x86_64-unknown-linux-gnu atomic_lock_free.rs
nm "[..]/libatomic_lock_free.rlib" | grep -vq __atomic_fetch_add
Makefile:9: recipe for target 'all' failed
make[3]: Leaving directory '/«BUILDDIR»/rustc-1.15.1+dfsg1/src/test/run-make/atomic-lock-free'

------------------------------------------
stderr:
------------------------------------------
nm: rust.metadata.bin: File format not recognized
nm: atomic_lock_free.0.bytecode.deflate: File format not recognized
nm: atomic_lock_free.0.o: File format not recognized
nm: rust.metadata.bin: File format not recognized
nm: atomic_lock_free.0.bytecode.deflate: File format not recognized
make[3]: *** [all] Error 1
~~~~

Note how, for `atomic_lock_free.0.o` for i686, `nm` complains "File format not recognized" but we get no such complaint for x86_64. This suggests that it did in fact read the file correctly, and `grep -v` is what caused `make` to fail.

However, I cannot reproduce this issue on another armhf machine, [abel.debian.org](https://db.debian.org/machines.cgi?host=abel) where this test passes.

This test also passes on all other architectures on Debian. It is very likely that all of the target architectures mentioned in `src/test/run-make/atomic-lock-free/Makefile` are being tested (on each host architecture that is running the tests), since `llvm-config --components` on Debian outputs all of the target architectures mentioned.

Arguably there is another bug here - if `nm` gives "File format not recognized" then this should fail the test, rather than causing it to pass (because `grep -v` finds nothing).
Repository: angular
Issue: bypassSecurityTrustStyle gives error on Safari
Labels: type: bug/fix,freq2: medium,area: core,core: sanitization,P3

<!--
IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING
-->

**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. -->
Gives an error:
```
 inline template:1:28 caused by: Attempted to assign to readonly property.
```

**Expected behavior**
<!-- Describe what the behavior would be without the bug. -->

**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).
-->
Check out this Plunkr on **Chrome**, then check it out on **Safari**. Chrome has no error. **Safari has a bunch of errors**:

https://plnkr.co/edit/YETcOvKxhZsIbjpd3FLh?p=preview

Here is a plunkr with no error on both (I removed bypassSecurityTrustStyle in the template):

https://plnkr.co/edit/BCpyitIqIGCc44k1w9Q9?p=preview

**What is the motivation / use case for changing the behavior?**
<!-- Describe the motivation or the concrete use case -->
Because its good to have it working on both browsers

**Please tell us about your environment:**
<!-- Operating system, IDE, package manager, HTTP server, ... -->
Mac OS Latest, fully updated. 

* **Angular version:** 2.4.9
<!-- Check whether this is still an issue in the most recent Angular version -->
Angular v2.4.9

* **Browser:** Safari 10.0.3
<!-- All browsers where this could be reproduced -->
 
* **Language:** TypeScript 2
Repository: youtube-dl
Issue: Vimeo On Demand download not working (I get the trailer)
Labels: account-needed

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.03.02**
- [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

### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

I'm trying to download a rented On Demand video from Vimeo, but I get the trailer, not the full movie.

In the logs I see ``WARNING: Unable to download JSON metadata: HTTP Error 403: Forbidden``, but if I try with a bad password then I get ``ERROR: Wrong login info: HTTP Error 418`` so the password is valid.

I will have access to the movie for 24h, email me at first.last@gmail.com and I can provide account credentials.

```
$ youtube-dl https://vimeo.com/ondemand/distract -u FOO -p BAR -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://vimeo.com/ondemand/distract', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.03.02
[debug] Python version 2.7.13 - Darwin-16.4.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[vimeo:ondemand] distract: Downloading webpage
[vimeo] Logging in
[vimeo] 204148215: Downloading webpage
[vimeo] 204148215: Extracting information
[vimeo] 204148215: Downloading JSON metadata
WARNING: Unable to download JSON metadata: HTTP Error 403: Forbidden
[vimeo] 204148215: Downloading akfire_interconnect m3u8 information
[vimeo] 204148215: Downloading fastly_skyfire m3u8 information
[vimeo] 204148215: Downloading akfire_interconnect_quic MPD information
[vimeo] 204148215: Downloading akfire_interconnect_quic MPD information
[vimeo] 204148215: Downloading fastly_skyfire MPD information
[vimeo] 204148215: Downloading fastly_skyfire MPD information
[debug] Invoking downloader on u'https://skyfire.vimeocdn.com/1488575127-0xa49db4470ebb2e3dae60f04429d9095b0641fc94/204148215/video/693502553,693502569,693502568,693502562/../'
[download] Dis.Traction-204148215.mp4 has already been downloaded
[download] 100% of 17.94MiB
```
Repository: youtube-dl
Issue: Youtube OPML subscription list support
Labels: request

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.03.02**

### Before submitting an *issue* make sure you have:
- [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

### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### Description of your *issue*, suggested solution and other information

Is it possible to support an OPML file downloaded manually from Youtube ?

https://www.youtube.com/subscription_manager?action_takeout=1
I would like to download the subscription list manually, and use the OPML as an input in youtube-dl, to avoid the use of argument --netrc and having to save/update my credentials in a netrc file.

Thanks
Repository: go
Issue: testing: output hard to read when a test case is stalling
Labels: help wanted,NeedsInvestigation

When the package contains a stalling case, the verbose is hard to read to figure out what has run and not finished finished yet. I often have to pipe the output to another program to match RUNs and PASSes (or FAILs) to filter what has not finished.

We might just consider printing the currently running test cases upon SIGINT. 

```
go test -v
=== RUN   TestTrace
=== RUN   TestTraceWithWait
--- PASS: TestTraceWithWait (0.01s)
=== RUN   TestTraceFromHeader
=== RUN   TestTraceFromHeaderWithWait
--- PASS: TestTraceFromHeaderWithWait (2.00s)
=== RUN   TestNewSpan
--- PASS: TestNewSpan (0.01s)
=== RUN   TestNoTrace
--- PASS: TestNoTrace (0.04s)
=== RUN   TestNoTraceWithWait
--- PASS: TestNoTraceWithWait (0.14s)
=== RUN   TestNoTraceFromHeader
--- PASS: TestNoTraceFromHeader (0.04s)
=== RUN   TestNoTraceFromHeaderWithWait
--- PASS: TestNoTraceFromHeaderWithWait (0.04s)
=== RUN   TestSample
--- PASS: TestSample (0.00s)
=== RUN   TestSampling
=== RUN   TestBundling
=== RUN   TestWeights
--- PASS: TestWeights (0.02s)
=== RUN   TestPropagation
--- PASS: TestPropagation (0.00s)
=== RUN   TestNoTraceIncoming
--- PASS: TestNoTraceIncoming (0.00s)
--- PASS: TestSampling (1.98s)
--- PASS: TestTrace (2.00s)
--- PASS: TestTraceFromHeader (2.00s)
^Csignal: interrupt
FAIL	cloud.google.com/go/trace	189.182s
```
Repository: vue
Issue: Allow Component Tag in Transition Group
Labels: feature request,transition

Allow this kind of feature for transition-group or transition

```html
<transition-group tag="todo-layout-container">
    <!-- Which will render a component rather a tag -->
</transition-group>
```

and will compile to
```html

<todo-layout-container>

</todo-layout-container>
```
and compiles to what is inside of the todo-layout-container
```js
let Todo = Vue.extend({
   name: 'todo-layout-container',
   methods: {
      //Per todo methods
   }
});
```
Repository: TypeScript
Issue: Can't find definition of a property on an object with an index signature.
Labels: Bug,Help Wanted,Domain: Symbol Navigation

Finding the definition for `foo.x` here works:

```
const foo = {
  x: () => {

  }
}

foo.x // here
```

This fails to find a definition:

```
const foo: { [key: string]: any } = {
  x: () => {

  }
}

foo.x // here
```

I understand in principle why this is the case, but in the second case, can't we just optimistically try the algorithm we used for the first case - and if it fails, _then_ fail to find the definition?
Repository: youtube-dl
Issue: Tests should use a modern hash (SHA-256 instead of MD5)
Labels: request

`youtube-dl`'s download tests all use MD5 as a hash. While it's probably not cryptographically critical that download testing use a secure hash, the world has moved past MD5, and past SHA-1. `youtube-dl` should at least support SHA-256 in the `info_dict`, and use whichever hash has been supplied in the `_TEST`'s `info_dict`.
Repository: TypeScript
Issue: Existential type?
Labels: Suggestion,In Discussion

Here's a case where I need a few existentials. It's for a definition file, where I need to have parameters for `Binding` and `Scheduler`, but it doesn't matter to me what they are. All I care about is that they're internally correct (and `any` doesn't cover this), and I'd rather not simulate it by making the constructor unnecessarily generic.

The alternative for me is to be able to declare additional constructor-specific type parameters that don't carry to other methods, but existentials would make it easier.

```ts
export interface Scheduler<Frame, Idle> {
    nextFrame(func: () => any): Frame;
    cancelFrame(frame: Frame): void;
    nextIdle(func: () => any): Idle;
    cancelIdle(frame: Idle): void;
    nextTick(func: () => any): void;
}

export interface Binding<E> extends Component {
    binding: E;

    patchEnd?(): void;

    patchAdd?(
        prev: string | E | void,
        next: string | E | void,
        pos: number,
    ): void;

    patchRemove?(
        prev: string | E | void,
        next: string | E | void,
        pos: number
    ): void;

    patchChange?(
        oldPrev: string | E | void,
        newPrev: string | E | void,
        oldNext: string | E | void,
        newNext: string | E | void,
        oldPos: number,
        newPos: number
    ): void;
}

export class Subtree {
    constructor(
        onError?: (err: Error) => any,
        scheduler?: type<F, I> Scheduler<F, I>
    );

    // ...
}

export class Root extends Subtree {
    constructor(
        component: type<E> Binding<E>,
        onError?: (err: Error) => any,
        scheduler?: type<F, I> Scheduler<F, I>
    );

    // ...
}
```
Repository: go
Issue: html/template: improve ErrBadHTML error report
Labels: NeedsFix

Please answer these questions before submitting your issue. Thanks!

#### What did you do?
Recently I got the `ErrBadHTML` error 2-3 times, and and each time it took longer than expected to fix the typo, since there was no line reported in the error message.

Here is an example:
https://play.golang.org/p/syrtLCXWeE

#### What did you expect to see?
The error message should report the line were the error was found.

#### What did you see instead?
The error message only reports
```
"<" in attribute name: " selected<"
```
but this does not help when searching for the error in a big template.

Looking at the source code, it is possible that this issue does not only affect ErrBadHTML but also other errors.

#### System details

```
go version go1.8 linux/amd64
GOARCH="amd64"
GOBIN="/home/manlio/.local/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/manlio/.local/lib/go:/home/manlio/code/src/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build656653276=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version go1.8 linux/amd64
GOROOT/bin/go tool compile -V: compile version go1.8 X:framepointer
uname -sr: Linux 4.9.11-1-ARCH
/usr/lib/libc.so.6: GNU C Library (GNU libc) stable release version 2.24, by Roland McGrath et al.
gdb --version: GNU gdb (GDB) 7.12.1
```
Repository: create-react-app
Issue: Refuse to build if user is importing something that isn't declared in package.json
Labels: contributions: up for grabs!,difficulty: complex

I think Brunch does this, if I recall correctly.

This is an important feature because people often misunderstand that transitive dependencies aren’t supposed to be importable.

See https://github.com/facebookincubator/create-react-app/issues/1714 and https://github.com/facebookincubator/create-react-app/issues/1622 for examples.
Repository: go
Issue: runtime: osyield is expensive on darwin?
Labels: Performance,OS-Darwin,early-in-cycle

This is a naive question about an unexpected and striking benchmarking result.

At tip, on my amd64 OS X laptop, I get:

```bash
$ go test -bench=BenchmarkSplitSingleByteSeparator -run=NONE bytes
BenchmarkSplitSingleByteSeparator-8   	     500	   2722171 ns/op
```

If I apply [CL 37795](https://golang.org/cl/37795), the execution time increases 65%:

```bash
$ go test -bench=BenchmarkSplitSingleByteSeparator -run=NONE bytes
BenchmarkSplitSingleByteSeparator-8   	     300	   4518575 ns/op
```

Note that in that CL, all that really happens is that a single function is removed from the call stack. Index checks the length of its argument, and if it is 1, then Index calls IndexByte.

CPU profiling indicates that basically all of the extra time is spent in runtime.usleep (called from runtime.osyield) and runtime.mach_semaphore_signal (called from runtime.notewakeup).

I'm left wondering:

(1) Is there a cheaper way to do an osyield on darwin that doesn't cost a full microsecond? (Linux appears to make an arch_prctl syscall instead of calling select.)

(2) Why does removing a function call from the stack create additional calls to osyield? Can this be avoided?

cc @ianlancetaylor @aclements
Repository: go
Issue: proposal: spec: add sum types / discriminated unions
Labels: LanguageChange,Proposal,LanguageChangeReview

This is a proposal for sum types, also known as discriminated unions.  Sum types in Go should essentially act like interfaces, except that:

- they are value types, like structs
- the types contained in them are fixed at compile-time

Sum types can be matched with a switch statement.  The compiler checks that all variants are matched.  Inside the arms of the switch statement, the value can be used as if it is of the variant that was matched.
Repository: go
Issue: crypto: constant time AES and GCM
Labels: NeedsInvestigation

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
1.7.4

### What operating system and processor architecture are you using (`go env`)?
    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPATH=""
    GORACE=""
    GOROOT="/home/dobenour/archives/go"
    GOTOOLDIR="/home/dobenour/archives/go/pkg/tool/linux_amd64"
    CC="gcc"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build902131924=/tmp/go-build -gno-record-gcc-switches"
    CXX="g++"
    CGO_ENABLED="1"

### What did you do?
Looked at the Go docs for `crypto/aes`

### What did you expect to see?
That the AES implementation uses bitslicing to make it constant time.

### What did you see instead?
That the AES-GCM implementation is not constatn time and is vulnerable to timing attacks.
Repository: vscode
Issue: Trigger save even if file is not dirty through API
Labels: feature-request,api,file-io

https://code.visualstudio.com/updates/v1_10#_manually-trigger-save-actions

I read this so I assumed the save() command from the API does the same thing.

https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L124

The comment here makes it seem like it doesn't. Does this call trigger a save even if the document is not dirty?
Repository: pytorch
Issue: dataloader parallels over elements vs over batches
Labels: todo,feature,module: dataloader,triaged

With current design of `dataloader`, if we set `num_workers=8`, 8 batches of data will be prepared in advance, each worker works on one batch. This is not very efficient especially when one batch is large/expensive to process; and normally we only need 1-2 batches ahead of time . Why didn't we go with the design where all workers work on one batch at a time? 

cc @SsnL @VitalyFedyunin @ejguan @NivekT
Repository: vscode
Issue: Investigate better UX for previewing things
Labels: feature-request,webview,workbench-editors,custom-editors

~~People use `previewHtml` for building UI which does't work well. We should investigate different options~~~

We will tackle the problem from the other side: https://github.com/Microsoft/vscode/issues/22068#issuecomment-293903020
Repository: go
Issue: tour: explain how to read a stacktrace
Labels: Proposal-Accepted

Hello,

I'd like to propose adding to the Tour of Go a page where the user is presented with a stack trace that occurs from a panic and guided into how to read / debug it.
I think this would be valuable for people just learning the language and would help them when they'll run for the first time into a such an issue.
If approved, I'd be happy to send a CL to do this (guidance welcomed).
What do you think?
Repository: TypeScript
Issue: Reformat ternary operator
Labels: Bug,Help Wanted,Domain: Formatter,VS Code Tracked

_From @lijunray on March 6, 2017 22:4_

<!-- Do you have a question? Please ask it on http://stackoverflow.com/questions/tagged/vscode -->

- VSCode Version: 1.9.1
- OS Version: MacOS 10.12.3

Steps to Reproduce:

The default reformatting for ternary operator is working unexpectedly.

What I want:

[![enter image description here][1]][1]

After Reformatting:

[![enter image description here][2]][2]

How can I config the reformatting so that it works as I expect?

  [1]: https://i.stack.imgur.com/vnwGM.png
  [2]: https://i.stack.imgur.com/yhZei.png


_Copied from original issue: Microsoft/vscode#22110_
Repository: rust
Issue: Same for loop up to 38% slower depending on iterator used
Labels: I-slow,C-enhancement

An issue making what would be the same code in C++ running at significantly different speed with Rust stable/beta/nightly depending on:

- The type of for loop used: `for y in buf` or `for i in 0..buf.len()`
- Whether the input data is contained in a Vec, Array or Array Slice
- Whether the test algorithm is inside a function used only with Vec or Array, Array Slice inputs but not several of them.

Previously reported as #40044 with imprecision.
Current stable is 1.15.1. The issue exists pre-MIR albeit with slightly different figures.

#### Real world examples measured on an audio DSP algorithm
##### arm
- Raspberry Pi, Rustc 1.15.1: up to 34% slower
##### armv7
- Raspberry Pi 3, Rustc 1.15.1: up to 34% slower, Array 4% slower than Vec
- Nexus 5, Rustc 1.15: up to 38% slower, Array 1% slower than Vec
- Nexus 5X, Rustc 1.15: up to 18% slower
##### aarch64
- Nexus 5X, Rustc 1.15: up to 27% slower
##### x86-64
- Core i5-750, Rustc 1.15: up to 18% slower

Test and demo project:
https://github.com/supercurio/rust-issue-vec-array-iterators-perf

Bench results:
https://github.com/supercurio/rust-issue-vec-array-iterators-perf/tree/master/benchs
Repository: opencv
Issue: opencv_traincascade may get in infinite loop on MacOSX
Labels: bug,category: core,category: apps

- OpenCV => master, probably others.
- Operating System / Platform => MacOSX
- Compiler => Apple LLVM version 8.0.0 (clang-800.0.42.1)

##### Detailed description

opencv_traincascade may get in infinite loop in `CvCascadeBoostTrainData::precalculate()`

```
parallel_for_( Range(numPrecalcVal, numPrecalcIdx),
                   FeatureIdxOnlyPrecalc(featureEvaluator, buf, sample_count, is_buf_16u!=0) );
```

`numPrecalcVal` and `numPrecalcIdx` are set in `CvCascadeBoostTrainData::setData()` and `numPrecalcIdx` can be zero if `featureEvaluator->getMaxCatCount() > 0`.

So, `numPrecalcVal` can be bigger then `numPrecalcIdx`.

On MacOSX `parallel_for_` is expanded to 

```
dispatch_apply_f(stripeRange.end - stripeRange.start, concurrent_queue, &pbody, block_function);
```

First parameter is unsigned, so we get some really big value here.

Possible fixes:

1. Don't allow ranges with `start > end`.
2. Check `stripeRange.end >= stripeRange.start` on MacOSX.