{"action":"opened","issue":{"url":"https://api.github.com/repos/ElementsProject/lightning/issues/50","repository_url":"https://api.github.com/repos/ElementsProject/lightning","labels_url":"https://api.github.com/repos/ElementsProject/lightning/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/ElementsProject/lightning/issues/50/comments","events_url":"https://api.github.com/repos/ElementsProject/lightning/issues/50/events","html_url":"https://github.com/ElementsProject/lightning/issues/50","id":184675228,"number":50,"title":"getroute to myself crashes lightningd","user":{"login":"tdaede","id":1308314,"avatar_url":"https://avatars.githubusercontent.com/u/1308314?v=3","gravatar_id":"","url":"https://api.github.com/users/tdaede","html_url":"https://github.com/tdaede","followers_url":"https://api.github.com/users/tdaede/followers","following_url":"https://api.github.com/users/tdaede/following{/other_user}","gists_url":"https://api.github.com/users/tdaede/gists{/gist_id}","starred_url":"https://api.github.com/users/tdaede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdaede/subscriptions","organizations_url":"https://api.github.com/users/tdaede/orgs","repos_url":"https://api.github.com/users/tdaede/repos","events_url":"https://api.github.com/users/tdaede/events{/privacy}","received_events_url":"https://api.github.com/users/tdaede/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-23T06:58:37Z","updated_at":"2016-10-23T06:58:37Z","closed_at":null,"body":"```\r\n$ daemon/lightning-cli getroute 035f4dafaf485d5b3245a784cc02587e745d450d15eaaf187cf68a4f149569c522 1000 1\r\nlightning-cli: Non-object response ''\r\n```\r\nBacktrace:\r\n```\r\n#0  0x0000000000429c51 in find_route (dstate=0x697030, to=0x7fffffffdae0, msatoshi=1000, \r\n    riskfactor=1, fee=0x7fffffffdaa0, route=0x7fffffffdab0) at daemon/routing.c:345\r\n        n = 0x0\r\n        src = 0x698510\r\n        dst = 0x698510\r\n        it = {i = {off = 4}}\r\n        first = 0xa321d10\r\n        runs = 20\r\n        i = 21\r\n        best = 0\r\n        __PRETTY_FUNCTION__ = \"find_route\"\r\n#1  0x0000000000419eda in json_getroute (cmd=0x722120, \r\n    buffer=0xa321c80 \"{ \\\"method\\\" : \\\"getroute\\\", \\\"id\\\" : \\\"lightning-cli-4156\\\", \\\"params\\\" : [ \\\"035f4dafaf485d5b3245a784cc02587e745d450d15eaaf187cf68a4f149569c522\\\", 1000, 1] }\", \r\n    params=0x9deebb0) at daemon/pay.c:244\r\n        id = {pubkey = {\r\n            data = \"\\\"\\305i\\225\\024O\\212\\366|\\030\\257\\352\\025\\rE]t~X\\002̄\\247E2[]H\\257\\257M_C\\025w\\245\\071\\025\\327R\\231eyӇ3\\234KX\\276\\214\\223\\316R\\324Q\\314\\344lD\\233\\337\\017\\245\"}}\r\n        idtok = 0x9deebc0\r\n        msatoshitok = 0x9deebd0\r\n        riskfactortok = 0x9deebe0\r\n        response = 0x42fe7a <json_tok_streq+137>\r\n        i = 21\r\n        msatoshi = 1000\r\n        fee = 140737488345840\r\n        riskfactor = 1\r\n        route = 0x44daa5 <list_add_+44>\r\n        peer = 0x14\r\n        amounts = 0x1\r\n        total_amount = 1\r\n        total_delay = 0\r\n        delays = 0xa321ca0\r\n#2  0x0000000000415c3c in parse_request (jcon=0xa769710, tok=0x9deeb50) at daemon/jsonrpc.c:492\r\n        method = 0x9deeb70\r\n        id = 0x9deeb90\r\n        params = 0x9deebb0\r\n        cmd = 0x466680 <getroute_command>\r\n        __PRETTY_FUNCTION__ = \"parse_request\"\r\n#3  0x0000000000415ee1 in read_json (conn=0x5513fd0, jcon=0xa769710) at daemon/jsonrpc.c:554\r\n        toks = 0x9deeb50\r\n        valid = true\r\n#4  0x0000000000443255 in next_plan (conn=0x5513fd0, plan=0x5514018) at ccan/ccan/io/io.c:58\r\n        next = 0x415d83 <read_json>\r\n        __PRETTY_FUNCTION__ = \"next_plan\"\r\n#5  0x0000000000443cda in do_plan (conn=0x5513fd0, plan=0x5514018) at ccan/ccan/io/io.c:375\r\n        __PRETTY_FUNCTION__ = \"do_plan\"\r\n#6  0x0000000000443d18 in io_ready (conn=0x5513fd0, pollflags=1) at ccan/ccan/io/io.c:386\r\nNo locals.\r\n#7  0x0000000000444fd4 in io_loop (timers=0x6970d8, expired=0x7fffffffdcf0)\r\n---Type <return> to continue, or q <return> to quit---\r\n    at ccan/ccan/io/poll.c:303\r\n        c = 0x5513fd0\r\n        events = 1\r\n        i = 4\r\n        r = 0\r\n        ms_timeout = 6561\r\n        ret = 0x697030\r\n        __PRETTY_FUNCTION__ = \"io_loop\"\r\n#8  0x000000000040477c in main (argc=1, argv=0x7fffffffde08) at daemon/lightningd.c:529\r\n        expired = 0x0\r\n        v = 0x0\r\n        dstate = 0x697030\r\n        portnum = 0\r\n```"}}
{"actor":{"display_login":"tdaede"}}