Skip to content

Tags: rootAvish/panicparse

Tags

1.3.1

Toggle 1.3.1's commit message
Revert "Change module name for go.modules"

This reverts commit c889245.

v1.3.0

Toggle v1.3.0's commit message
stack: add support for Go 1.13beta1

It now prints 'pc' in addition to 'fp' and 'sp'.

Include unit test.

v1.2.1

Toggle v1.2.1's commit message
panic: make it work on go1.7.6

Replace sort.Slice() with strings.FieldsFunc().

sort.Slice() was introduced in go1.8.

I need panic to work on go1.7 to diagnose an issue with
'additional frames elided' not being printed anymore.

v1.2.0

Toggle v1.2.0's commit message
Switch to go.mod

Keeps the vendored files, but that the occasion to update them.

Did approximatively:

- git rm -rf vendor Gopkg.*
- git commit -a -m .
- Move the directory out of GOPATH
- export GO111MODULE=on
- go mod init
- go test ./...
- go vendor
- Edited go.mod to specify "go 1.11" instead of "go 1.12".
- git add .
- git commit -a --amend <this content>

Then I add to add GO111MODULE=off before calling pcg in .travis.yml
because it confuses it. I will have to fix pcg or stop using it eventually.

v1.1.1

Toggle v1.1.1's commit message
Update vendors

Now that ut dependency is removed, this removes a few additional dependencies.

v1.1.0

Toggle v1.1.0's commit message
Fix "Current not implemented on freebsd/amd64" error (maruel#39)

v1.0.2

Toggle v1.0.2's commit message
internal/panic: add tool to generate panics

The source code is designed to scale to a large number of panic styles.
Eventually testing should be transformed to smoke tests that run this tool, this
way this will test the whole toolchain behavior.

v1.0.1

Toggle v1.0.1's commit message
Add map and channel type (maruel#34)

* Add map and channel type

* Add tests for map/channel type

Closes maruel#30

* Better handle complex types

* Update name to use switch statement

* Skip processing of last Stack.Calls element instead of first

The leaf function wasn't being processed before, so the following snippet:

  package main

  func g([]string) {
    panic("g")
  }

  func f(map[int]int) {
    g(make([]string, 5))
    panic("f")
  }

  func main() {
    f(map[int]int{})
  }

resulted in:

  panic: g

  exit status 2

  To see all goroutines, visit https://github.com/maruel/panicparse#GOTRACEBACK

  18:25:04.051198 load(/path/to/main.go)
  1: running
      main main.go:4  g(0xc420045ee8, 0x5, 0x5)
      main main.go:8  f(map[int]int(0xc420078000))
      main main.go:13 main()

and now results in:

  panic: g

  exit status 2

  To see all goroutines, visit https://github.com/maruel/panicparse#GOTRACEBACK

  18:25:42.981470 load(/path/to/main.go)
  1: running
      main main.go:4  g([]string(0xc420045ee8 len=5 cap=5))
      main main.go:8  f(map[int]int(0xc420066000))
      main main.go:13 main()

v1.0.0

Toggle v1.0.0's commit message
Fix >50% in README.md