{"action":"created","issue":{"url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/339","labels_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/339/comments","events_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/339/events","html_url":"https://github.com/PurpleI2P/i2pd/issues/339","id":128319171,"number":339,"title":"Coredumping when using .ini on FreeBSD 10.2 amd64 with 2.3.0","user":{"login":"stargrave","id":194657,"avatar_url":"https://avatars.githubusercontent.com/u/194657?v=3","gravatar_id":"","url":"https://api.github.com/users/stargrave","html_url":"https://github.com/stargrave","followers_url":"https://api.github.com/users/stargrave/followers","following_url":"https://api.github.com/users/stargrave/following{/other_user}","gists_url":"https://api.github.com/users/stargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/stargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stargrave/subscriptions","organizations_url":"https://api.github.com/users/stargrave/orgs","repos_url":"https://api.github.com/users/stargrave/repos","events_url":"https://api.github.com/users/stargrave/events{/privacy}","received_events_url":"https://api.github.com/users/stargrave/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-23T10:15:16Z","updated_at":"2016-01-31T03:36:31Z","closed_at":"2016-01-31T03:36:31Z","body":"Greetings!\r\n\r\nI have 2.3.0 compiled with clang under FreeBSD 10.2 amd64. If I try to use .ini file (does not matter what options are in it), then i2pd coredumps. If I will specify the same options as command line arguments, then everything is fine.\r\n\r\n    $ cat i2pd.ini\r\n    port = 9002\r\n    $ ./i2pd --conf i2pd.ini\r\n    13:10:07/info -\r\n    i2pd v2.3.0 starting\r\n    13:10:07/debug - data directory: /home/stargrave/.i2pd\r\n    Abort trap (core dumped)\r\n\r\nrunning under truss:\r\n\r\n    $ truss ./i2pd --conf i2pd.ini\r\n    [...]\r\n    write(2,\"\\n\\n\\n\\ni2pd v2.3.0 starting\\n\\n\",26)   = 26 (0x1a)\r\n    stat(\"/home/stargrave/.i2pd\",{ mode=drwxr-xr-x ,inode=3293,size=6,blksize=131072 }) = 0 (0x0)\r\n    stat(\"/home/stargrave/.i2pd\",{ mode=drwxr-xr-x ,inode=3293,size=6,blksize=131072 }) = 0 (0x0)\r\n    1write(2,\"1\",1)                                  = 1 (0x1)\r\n    3write(2,\"3\",1)                                  = 1 (0x1)\r\n    :write(2,\":\",1)                                  = 1 (0x1)\r\n    1write(2,\"1\",1)                                  = 1 (0x1)\r\n    0write(2,\"0\",1)                                  = 1 (0x1)\r\n    :write(2,\":\",1)                                  = 1 (0x1)\r\n    2write(2,\"2\",1)                                  = 1 (0x1)\r\n    2write(2,\"2\",1)                                  = 1 (0x1)\r\n    /write(2,\"/\",1)                                  = 1 (0x1)\r\n    debugwrite(2,\"debug\",5)                          = 5 (0x5)\r\n     - write(2,\" - \",3)                              = 3 (0x3)\r\n    data directory: /home/stargrave/.i2pd\r\n    write(2,\"data directory: /home/stargrave/\"...,38) = 38 (0x26)\r\n    stat(\"/home/stargrave/.i2pd\",{ mode=drwxr-xr-x ,inode=3293,size=6,blksize=131072 }) = 0 (0x0)\r\n    stat(\"/home/stargrave/.i2pd\",{ mode=drwxr-xr-x ,inode=3293,size=6,blksize=131072 }) = 0 (0x0)\r\n    open(\"/home/stargrave/.i2pd\",O_RDONLY,0666)      = 6 (0x6)\r\n    fstat(6,{ mode=drwxr-xr-x ,inode=3293,size=6,blksize=131072 }) = 0 (0x0)\r\n    read(6,\"\\^C\\0\\0\\0\\0\\0\",131072)                   = 6 (0x6)\r\n    read(6,0x805ea3000,131072)                       = 0 (0x0)\r\n    sigprocmask(SIG_SETMASK,SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)\r\n    thr_self(0x7fffffffd7c0,0x7fffffffd7c0,0x0,0x0,0x7fffffffd398,0x803a00000) = 0 (0x0)\r\n    thr_kill(0x18c56,0x6,0x0,0x0,0x7fffffffd398,0x803a00000) = 0 (0x0)\r\n    SIGNAL 6 (SIGABRT)\r\n    process exit, rval = 0\r\n"},"comment":{"url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/comments/177375271","html_url":"https://github.com/PurpleI2P/i2pd/issues/339#issuecomment-177375271","issue_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/339","id":177375271,"user":{"login":"orignal","id":5358364,"avatar_url":"https://avatars.githubusercontent.com/u/5358364?v=3","gravatar_id":"","url":"https://api.github.com/users/orignal","html_url":"https://github.com/orignal","followers_url":"https://api.github.com/users/orignal/followers","following_url":"https://api.github.com/users/orignal/following{/other_user}","gists_url":"https://api.github.com/users/orignal/gists{/gist_id}","starred_url":"https://api.github.com/users/orignal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orignal/subscriptions","organizations_url":"https://api.github.com/users/orignal/orgs","repos_url":"https://api.github.com/users/orignal/repos","events_url":"https://api.github.com/users/orignal/events{/privacy}","received_events_url":"https://api.github.com/users/orignal/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T03:36:31Z","updated_at":"2016-01-31T03:36:31Z","body":"Нашел в чем дело.\r\nНадо ./i2pd --conf=i2pd.ini\r\nПроверил под FreeBSD, все работаетю\r\nТо падение починю, чтобы параметр игнорировался, а не падало."}}