Right here in fmtString, the function gets a 0x0, 0x5 arg, which is I
believe a string of length 5 with a nil slice. So it looks like
somehow r.Second_subid has nil buffer here. When a string is used as
an interface{}, afaik, the interface keeps the value, not the pointer
to the string. So I can't see how this is possible. But I wonder if
copying the value before sprintf could fix it:
x:=r.Second_subid
r.Second_subid_8=fmt.Sprintf("1%07v", x)
> /usr/local/go/src/fmt/print.go:448 +0x132
> fmt.(*pp).printArg(0xc023c17740, 0x9978e0, 0xc016a68a30, 0x76)
> /usr/local/go/src/fmt/print.go:684 +0x880
> fmt.(*pp).doPrintf(0xc023c17740, 0xa6e22f, 0x5, 0xc048c27818, 0x1, 0x1)
> /usr/local/go/src/fmt/print.go:1112 +0x3ff
> fmt.Sprintf(0xa6e22f, 0x5, 0xc048c27818, 0x1, 0x1, 0x80, 0xa36200)
> /usr/local/go/src/fmt/print.go:214 +0x66
> code/sharedobjects/sources.(*Subid_info).Prepare_subid_logic(0xc019292f80, 0x2)
>
> Given that we can't reproduce it, what's the logical way to debug this and find out what's happening?
>
> Thanks!
>
> --
> 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...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.