@@ -109,12 +109,12 @@ func TestParseDump1(t *testing.T) {
109109 Args {}, "??" , 0 ),
110110 newCall (
111111 "gopkg.in/yaml%2ev2.handleErr" ,
112- Args {Values : []Arg {{Value : 0x433b20 }}},
112+ Args {Values : []Arg {{Value : 0x433b20 , IsPtr : true }}},
113113 "/gopath/src/gopkg.in/yaml.v2/yaml.go" ,
114114 153 ),
115115 newCall (
116116 "reflect.Value.assignTo" ,
117- Args {Values : []Arg {{Value : 0x570860 }, {Value : 0xc20803f3e0 }, {Value : 0x15 }}},
117+ Args {Values : []Arg {{Value : 0x570860 , IsPtr : true }, {Value : 0xc20803f3e0 , IsPtr : true }, {Value : 0x15 }}},
118118 "/goroot/src/reflect/value.go" ,
119119 2125 ),
120120 newCall (
@@ -170,7 +170,7 @@ func TestParseDumpLongWait(t *testing.T) {
170170 Calls : []Call {
171171 newCall (
172172 "gopkg.in/yaml%2ev2.handleErr" ,
173- Args {Values : []Arg {{Value : 0x433b20 }}},
173+ Args {Values : []Arg {{Value : 0x433b20 , IsPtr : true }}},
174174 "/gopath/src/gopkg.in/yaml.v2/yaml.go" ,
175175 153 ),
176176 },
@@ -187,7 +187,7 @@ func TestParseDumpLongWait(t *testing.T) {
187187 Calls : []Call {
188188 newCall (
189189 "gopkg.in/yaml%2ev2.handleErr" ,
190- Args {Values : []Arg {{Value : 0x8033b21 , Name : "#1" }}},
190+ Args {Values : []Arg {{Value : 0x8033b21 , Name : "#1" , IsPtr : true }}},
191191 "/gopath/src/gopkg.in/yaml.v2/yaml.go" ,
192192 153 ),
193193 },
@@ -204,7 +204,7 @@ func TestParseDumpLongWait(t *testing.T) {
204204 Calls : []Call {
205205 newCall (
206206 "gopkg.in/yaml%2ev2.handleErr" ,
207- Args {Values : []Arg {{Value : 0x8033b22 , Name : "#2" }}},
207+ Args {Values : []Arg {{Value : 0x8033b22 , Name : "#2" , IsPtr : true }}},
208208 "/gopath/src/gopkg.in/yaml.v2/yaml.go" ,
209209 153 ),
210210 },
@@ -484,11 +484,11 @@ func TestParseDumpElided(t *testing.T) {
484484 "github.com/maruel/panicparse/stack/stack.recurseType" ,
485485 Args {
486486 Values : []Arg {
487- {Value : 0x7f4fa9a3ec70 },
488- {Value : 0xc208062580 },
489- {Value : 0x7f4fa9a3e818 },
490- {Value : 0x50a820 },
491- {Value : 0xc20803a8a0 },
487+ {Value : 0x7f4fa9a3ec70 , IsPtr : true },
488+ {Value : 0xc208062580 , IsPtr : true },
489+ {Value : 0x7f4fa9a3e818 , IsPtr : true },
490+ {Value : 0x50a820 , IsPtr : true },
491+ {Value : 0xc20803a8a0 , IsPtr : true },
492492 },
493493 },
494494 "/gopath/src/github.com/maruel/panicparse/stack/stack.go" ,
@@ -543,7 +543,7 @@ func TestParseDumpSysCall(t *testing.T) {
543543 "runtime.notetsleepg" ,
544544 Args {
545545 Values : []Arg {
546- {Value : 0x918100 },
546+ {Value : 0x918100 , IsPtr : true },
547547 {Value : 0xffffffffffffffff },
548548 {Value : 0x1 },
549549 },
@@ -887,7 +887,7 @@ func TestParseDumpCCode(t *testing.T) {
887887 Args {
888888 Values : []Arg {
889889 {Value : 0x4 },
890- {Value : 0x7fff671c7118 },
890+ {Value : 0x7fff671c7118 , IsPtr : true },
891891 {Value : 0xffffffff00000080 },
892892 {},
893893 {Value : 0xffffffff0028c1be },
@@ -903,23 +903,23 @@ func TestParseDumpCCode(t *testing.T) {
903903 400 ),
904904 newCall (
905905 "runtime.netpoll" ,
906- Args {Values : []Arg {{Value : 0x901b01 }, {}}},
906+ Args {Values : []Arg {{Value : 0x901b01 , IsPtr : true }, {}}},
907907 "/goroot/src/runtime/netpoll_epoll.go" ,
908908 68 ),
909909 newCall (
910910 "findrunnable" ,
911- Args {Values : []Arg {{Value : 0xc208012000 }}},
911+ Args {Values : []Arg {{Value : 0xc208012000 , IsPtr : true }}},
912912 "/goroot/src/runtime/proc.c" ,
913913 1472 ),
914914 newCall ("schedule" , Args {}, "/goroot/src/runtime/proc.c" , 1575 ),
915915 newCall (
916916 "runtime.park_m" ,
917- Args {Values : []Arg {{Value : 0xc2080017a0 }}},
917+ Args {Values : []Arg {{Value : 0xc2080017a0 , IsPtr : true }}},
918918 "/goroot/src/runtime/proc.c" ,
919919 1654 ),
920920 newCall (
921921 "runtime.mcall" ,
922- Args {Values : []Arg {{Value : 0x432684 }}},
922+ Args {Values : []Arg {{Value : 0x432684 , IsPtr : true }}},
923923 "/goroot/src/runtime/asm_amd64.s" ,
924924 186 ),
925925 },
@@ -964,12 +964,12 @@ func TestParseDumpWithCarriageReturn(t *testing.T) {
964964 0 ),
965965 newCall (
966966 "gopkg.in/yaml%2ev2.handleErr" ,
967- Args {Values : []Arg {{Value : 0x433b20 }}},
967+ Args {Values : []Arg {{Value : 0x433b20 , IsPtr : true }}},
968968 "/gopath/src/gopkg.in/yaml.v2/yaml.go" ,
969969 153 ),
970970 newCall (
971971 "reflect.Value.assignTo" ,
972- Args {Values : []Arg {{Value : 0x570860 }, {Value : 0xc20803f3e0 }, {Value : 0x15 }}},
972+ Args {Values : []Arg {{Value : 0x570860 , IsPtr : true }, {Value : 0xc20803f3e0 , IsPtr : true }, {Value : 0x15 }}},
973973 "/goroot/src/reflect/value.go" ,
974974 2125 ),
975975 newCall (
@@ -1034,12 +1034,12 @@ func TestParseDumpIndented(t *testing.T) {
10341034 209 ),
10351035 newCall (
10361036 "foo/bar.TestArchiveFail" ,
1037- Args {Values : []Arg {{Value : 0x3382000 , Name : "#1" }}},
1037+ Args {Values : []Arg {{Value : 0x3382000 , Name : "#1" , IsPtr : true }}},
10381038 "/home/maruel/go/src/foo/bar_test.go" ,
10391039 155 ),
10401040 newCall (
10411041 "testing.tRunner" ,
1042- Args {Values : []Arg {{Value : 0x3382000 , Name : "#1" }, {Value : 0x1615bf8 }}},
1042+ Args {Values : []Arg {{Value : 0x3382000 , Name : "#1" , IsPtr : true }, {Value : 0x1615bf8 , IsPtr : true }}},
10431043 "/home/maruel/golang/go/src/testing/testing.go" ,
10441044 865 ),
10451045 },
@@ -1341,7 +1341,7 @@ func testPanicStr(t *testing.T, c *Context, b *bytes.Buffer, ppDir string) {
13411341 Calls : []Call {
13421342 newCallLocal (
13431343 "main.panicstr" ,
1344- Args {Values : []Arg {{Value : 0x123456 }, {Value : 4 }}},
1344+ Args {Values : []Arg {{Value : 0x123456 , IsPtr : true }, {Value : 4 }}},
13451345 pathJoin (ppDir , "main.go" ),
13461346 50 ),
13471347 newCallLocal ("main.glob..func17" , Args {}, pathJoin (ppDir , "main.go" ), 307 ),
@@ -1378,7 +1378,7 @@ func testPanicUTF8(t *testing.T, c *Context, b *bytes.Buffer, ppDir string) {
13781378 // runtime stack generator. The path is escaped, but symbols are
13791379 // not.
13801380 "github.com/maruel/panicparse" + ver + "/cmd/panic/internal/%c3%b9tf8.(*Strùct).Pànic" ,
1381- Args {Values : []Arg {{Value : 0xc0000b2e48 }}},
1381+ Args {Values : []Arg {{Value : 0xc0000b2e48 , IsPtr : true }}},
13821382 // See TestCallUTF8 in stack_test.go for exercising the methods on
13831383 // Call in this situation.
13841384 pathJoin (ppDir , "internal" , "ùtf8" , "ùtf8.go" ),
@@ -1667,6 +1667,7 @@ func identifyPanicwebSignature(t *testing.T, b *Bucket, pwebDir string) panicweb
16671667 for j := range b .Signature .Stack .Calls [i ].Args .Values {
16681668 b .Signature .Stack .Calls [i ].Args .Values [j ].Value = 0
16691669 b .Signature .Stack .Calls [i ].Args .Values [j ].Name = ""
1670+ b .Signature .Stack .Calls [i ].Args .Values [j ].IsPtr = false
16701671 }
16711672 }
16721673 similarSignatures (t , & want , & b .Signature )
@@ -1727,7 +1728,7 @@ func identifyPanicwebSignature(t *testing.T, b *Bucket, pwebDir string) panicweb
17271728 newCallLocal ("main.sysHang" , Args {}, pathJoin (pwebDir , mainOS ), 12 ),
17281729 newCallLocal (
17291730 "main.main.func2" ,
1730- Args {Values : []Arg {{Value : 0xc000140720 , Name : "#135" }}},
1731+ Args {Values : []Arg {{Value : 0xc000140720 , Name : "#135" , IsPtr : true }}},
17311732 pathJoin (pwebDir , "main.go" ),
17321733 65 ),
17331734 }
0 commit comments