{"action":"opened","issue":{"url":"https://api.github.com/repos/brpc/brpc/issues/350","repository_url":"https://api.github.com/repos/brpc/brpc","labels_url":"https://api.github.com/repos/brpc/brpc/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/brpc/brpc/issues/350/comments","events_url":"https://api.github.com/repos/brpc/brpc/issues/350/events","html_url":"https://github.com/brpc/brpc/issues/350","id":328471679,"node_id":"MDU6SXNzdWUzMjg0NzE2Nzk=","number":350,"title":"AddBuiltinServices coredump","user":{"login":"yjhjstz","id":3832082,"node_id":"MDQ6VXNlcjM4MzIwODI=","avatar_url":"https://avatars3.githubusercontent.com/u/3832082?v=4","gravatar_id":"","url":"https://api.github.com/users/yjhjstz","html_url":"https://github.com/yjhjstz","followers_url":"https://api.github.com/users/yjhjstz/followers","following_url":"https://api.github.com/users/yjhjstz/following{/other_user}","gists_url":"https://api.github.com/users/yjhjstz/gists{/gist_id}","starred_url":"https://api.github.com/users/yjhjstz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjhjstz/subscriptions","organizations_url":"https://api.github.com/users/yjhjstz/orgs","repos_url":"https://api.github.com/users/yjhjstz/repos","events_url":"https://api.github.com/users/yjhjstz/events{/privacy}","received_events_url":"https://api.github.com/users/yjhjstz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-01T10:50:53Z","updated_at":"2018-06-01T10:50:53Z","closed_at":null,"author_association":"NONE","body":"```\r\n(gdb) bt\r\n#0  0x00007f3760eed604 in google::protobuf::Descriptor::full_name (this=0x0) at ./google/protobuf/descriptor.h:1836\r\n#1  0x00007f3760ef7271 in google::protobuf::FieldDescriptor::FieldTypeNameDebugString (this=0x247c098)\r\n    at google/protobuf/descriptor.cc:2640\r\n#2  0x00007f3760ef7469 in google::protobuf::FieldDescriptor::DebugString (this=0x181fc18, depth=1,\r\n    print_label_flag=google::protobuf::FieldDescriptor::PRINT_LABEL, contents=0x7ffd878b0e70, debug_string_options=...)\r\n    at google/protobuf/descriptor.cc:2661\r\n#3  0x00007f3760ef609e in google::protobuf::Descriptor::DebugString (this=0x2267590, depth=1, contents=0x7ffd878b0e70,\r\n    debug_string_options=..., include_opening_clause=true) at google/protobuf/descriptor.cc:2557\r\n#4  0x00007f3760ef5b7e in google::protobuf::Descriptor::DebugStringWithOptions (this=0x2267590, options=...)\r\n    at google/protobuf/descriptor.cc:2504\r\n#5  0x00007f3760ef5b37 in google::protobuf::Descriptor::DebugString (this=0x2267590) at google/protobuf/descriptor.cc:2498\r\n#6  0x00007f37624c583a in brpc::ProtobufsService::Init (this=this@entry=0x226a000)\r\n    at /home/luban/DDL-Serving/brpc/src/brpc/builtin/protobufs_service.cpp:54\r\n#7  0x00007f37624c5f78 in brpc::ProtobufsService::ProtobufsService (this=0x226a000, server=<optimized out>)\r\n    at /home/luban/DDL-Serving/brpc/src/brpc/builtin/protobufs_service.cpp:29\r\n#8  0x00007f376249dbc4 in brpc::Server::AddBuiltinServices (this=this@entry=0x7ffd878b1680)\r\n    at /home/luban/DDL-Serving/brpc/src/brpc/server.cpp:463\r\n#9  0x00007f376249f966 in brpc::Server::StartInternal (this=0x7ffd878b1680, ip=..., port_range=..., opt=<optimized out>)\r\n    at /home/luban/DDL-Serving/brpc/src/brpc/server.cpp:832\r\n#10 0x00007f37624a01b0 in brpc::Server::Start (this=<optimized out>, endpoint=..., opt=<optimized out>)\r\n    at /home/luban/DDL-Serving/brpc/src/brpc/server.cpp:992\r\n#11 0x00007f37624a02da in brpc::Server::Start (this=<optimized out>, port=8002, opt=<optimized out>)\r\n    at /home/luban/DDL-Serving/brpc/src/brpc/server.cpp:1010\r\n#12 0x0000000000407073 in main (argc=1, argv=0x7ffd878b2490) at /home/luban/DDL-Serving/server.cc:170\r\n```\r\n* proto *\r\n```c++\r\nsyntax = \"proto2\";\r\n\r\npackage caffe2;\r\nimport \"caffe2/proto/caffe2.proto\";\r\n\r\noption cc_generic_services = true;\r\n\r\n// Metadata for an inference request such as the model name and version.\r\nmessage ModelSpec {\r\n  // Required servable name.\r\n  required string name = 1;\r\n\r\n  // Optional version.\r\n  optional int64 version = 2;\r\n\r\n  // A named signature to evaluate. If unspecified, the default signature will\r\n  // be used.\r\n  optional string signature_name = 3;\r\n}\r\n\r\n\r\nmessage PredictRequest {\r\n  // Model Specification. If version is not specified, will use the latest\r\n  // (numerical) version.\r\n  required ModelSpec model_spec = 1;\r\n\r\n  // Input tensors.\r\n  // Names of input tensor are alias names. The mapping from aliases to real\r\n  // input tensor names is stored in the SavedModel export as a prediction\r\n  // SignatureDef under the 'inputs' field.\r\n  map<string, TensorProto> inputs = 2;\r\n}\r\n\r\n// Response for PredictRequest on successful run.\r\nmessage PredictResponse {\r\n   optional ModelSpec model_spec = 2;\r\n  // Output tensors.\r\n   map<string, TensorProto> outputs = 1;\r\n}\r\n\r\n// open source marker; do not remove\r\n// PredictionService provides access to machine-learned models loaded by\r\n// model_servers.\r\nservice PredictionService {\r\n  rpc Predict(PredictRequest) returns (PredictResponse);\r\n  \r\n}\r\n```\r\n\r\n\r\n环境：\r\n- Linux Centos\r\n- gcc 4.8\r\n- protobuf 3.5\r\n\r\n@jamesge "}}
{"actor":{"display_login":"yjhjstz"}}