Re: [go-nuts] Where can I find the format definition of stack trace?

2016-06-29 Thread Aram Hăvărneanu
On Wed, Jun 29, 2016 at 3:28 PM, Jingguo Yao  wrote:
> Could you point out where you find the format information?

As far as I know, it is not formally documented anywhere (and can
change at any time).

-- 
Aram Hăvărneanu

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Where can I find the format definition of stack trace?

2016-06-29 Thread Aram Hăvărneanu
> What is the meaning of +0x2d following the line number?

The address of the assembly instruction relative to the start of the function.

> And what is the meanings of the numbers in
> Commit(0xc8201a86e0, 0x0, 0x0)?

Those are the function arguments.

-- 
Aram Hăvărneanu

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Where can I find the format definition of stack trace?

2016-06-28 Thread Jingguo Yao
Invoking https://golang.org/pkg/runtime/debug/#PrintStack produces the
following result:

  goroutine 35 [running]:
  runtime/debug.Stack(0x0, 0x0, 0x0)
/usr/local/go/src/runtime/debug/stack.go:24 +0x80
  runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x18
  github.com/cockroachdb/cockroach/client.(*Txn).send(0xc8201a86e0, 0x0, 
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn.go:642 
+0x9a9
  
github.com/cockroachdb/cockroach/client.(*Txn).sendEndTxnReq(0xc8201a86e0, 
0x1, 0x0, 0x0, 0x0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn.go:442 
+0x294
  github.com/cockroachdb/cockroach/client.(*Txn).commit(0xc8201a86e0, 0x0, 
0x0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn.go:352 
+0x3e
  github.com/cockroachdb/cockroach/client.(*Txn).Commit(0xc8201a86e0, 0x0, 
0x0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn.go:373 
+0x2d
  github.com/cockroachdb/cockroach/client.(*Txn).Exec(0xc8201a86e0, 
0xc8204b0101, 0x0, 0x0, 0xc8204ba080, 0x0, 0x0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn.go:545 
+0x354
  github.com/cockroachdb/cockroach/client.(*DB).Txn(0xc820233ef8, 
0xc82000e720, 0x0, 0x0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/db.go:433 
+0x2b2
  
github.com/cockroachdb/cockroach/client.TestTransactionKeyNotChangedInRestart(0xc8202138c0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn_test.go:470 
+0x368
  testing.tRunner(0xc8202138c0, 0x241ea80)
/usr/local/go/src/testing/testing.go:473 +0x98
  created by testing.RunTests
/usr/local/go/src/testing/testing.go:582 +0x892

Take the following stack trace entry as an example. What is the
meaning of +0x2d following the line number? And what is the meanings
of the numbers in Commit(0xc8201a86e0, 0x0, 0x0)?

  github.com/cockroachdb/cockroach/client.(*Txn).Commit(0xc8201a86e0, 0x0, 
0x0)

/home/jing/code/go/src/github.com/cockroachdb/cockroach/client/txn.go:373 
+0x2d

I have checked the documentation for PrintStack. But I can't find a
format definition for stack trace.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.