{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11701","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11701/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11701/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11701/events","html_url":"https://github.com/JuliaLang/julia/pull/11701","id":88029584,"number":11701,"title":"Fix string formatting","user":{"login":"yuyichao","id":712232,"avatar_url":"https://avatars.githubusercontent.com/u/712232?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyichao","html_url":"https://github.com/yuyichao","followers_url":"https://api.github.com/users/yuyichao/followers","following_url":"https://api.github.com/users/yuyichao/following{/other_user}","gists_url":"https://api.github.com/users/yuyichao/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyichao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyichao/subscriptions","organizations_url":"https://api.github.com/users/yuyichao/orgs","repos_url":"https://api.github.com/users/yuyichao/repos","events_url":"https://api.github.com/users/yuyichao/events{/privacy}","received_events_url":"https://api.github.com/users/yuyichao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-06-13T16:29:41Z","updated_at":"2015-06-20T23:51:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/11701","html_url":"https://github.com/JuliaLang/julia/pull/11701","diff_url":"https://github.com/JuliaLang/julia/pull/11701.diff","patch_url":"https://github.com/JuliaLang/julia/pull/11701.patch"},"body":"Updated:\r\n\r\n1. Print address in hex instead of decimal\r\n2. Use the `format` function attribute in GCC to verify that the format string is used correctly.\r\n3. Fix a number of incorrect usage found with `format` attribute.\r\n\r\nOriginal post:\r\nThe problem of the output before\r\n\r\n1. It print the address as a signed integer and it's annoy to convert that into hex and to match the output of all other tools.\r\n2. It truncate the output to 32bit (because of `%d`) on 64bit system.\r\n\r\nPrinting of the backtrace with this PR is attached (don't worry about where the segfault happens, it's done with `kill -SEGV`).\r\n\r\nWill merge after the CI passes (or fail due to known reason.)\r\n\r\n```\r\nsignal (11): 段错误\r\nsyscall at /usr/lib/libc.so.6 (unknown line)\r\nuv__epoll_wait at /home/yuyichao/projects/julia/hex-address/deps/libuv/src/unix/linux-syscalls.c:316\r\nuv__io_poll at /home/yuyichao/projects/julia/hex-address/deps/libuv/src/unix/linux-core.c:202\r\nuv_run at /home/yuyichao/projects/julia/hex-address/deps/libuv/src/unix/core.c:295\r\nprocess_events at ./stream.jl:599\r\nwait at ./task.jl:299\r\nwait at ./task.jl:225\r\nwait_readnb at ./stream.jl:341\r\neof at ./stream.jl:49\r\nmatch_input at ./LineEdit.jl:751\r\njl_apply_generic at /home/yuyichao/projects/julia/hex-address/src/gf.c:1652\r\nmatch_input at ./LineEdit.jl:751\r\njl_apply_generic at /home/yuyichao/projects/julia/hex-address/src/gf.c:1652\r\nprompt! at ./LineEdit.jl:1575\r\nrun_interface at ./LineEdit.jl:1549\r\nunknown function (ip: 0x7ffff4115a60)\r\njl_apply_generic at /home/yuyichao/projects/julia/hex-address/src/gf.c:1652\r\nrun_frontend at ./REPL.jl:841\r\nrun_repl at ./REPL.jl:166\r\njl_apply_generic at /home/yuyichao/projects/julia/hex-address/src/gf.c:1652\r\n_start at ./client.jl:446\r\nunknown function (ip: 0x7ffff4130159)\r\njl_apply_generic at /home/yuyichao/projects/julia/hex-address/src/gf.c:1652\r\nunknown function (ip: 0x401a17)\r\nunknown function (ip: 0x40160f)\r\n__libc_start_main at /usr/lib/libc.so.6 (unknown line)\r\nunknown function (ip: 0x401669)\r\nunknown function (ip: 0x0)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/113842530","html_url":"https://github.com/JuliaLang/julia/pull/11701#issuecomment-113842530","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11701","id":113842530,"user":{"login":"ScottPJones","id":11798751,"avatar_url":"https://avatars.githubusercontent.com/u/11798751?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottPJones","html_url":"https://github.com/ScottPJones","followers_url":"https://api.github.com/users/ScottPJones/followers","following_url":"https://api.github.com/users/ScottPJones/following{/other_user}","gists_url":"https://api.github.com/users/ScottPJones/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottPJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottPJones/subscriptions","organizations_url":"https://api.github.com/users/ScottPJones/orgs","repos_url":"https://api.github.com/users/ScottPJones/repos","events_url":"https://api.github.com/users/ScottPJones/events{/privacy}","received_events_url":"https://api.github.com/users/ScottPJones/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T23:51:22Z","updated_at":"2015-06-20T23:51:22Z","body":"I like the idea of the change very much, just the minor nits above to deal with..."}}