{"action":"created","issue":{"url":"https://api.github.com/repos/BOINC/boinc/issues/1159","labels_url":"https://api.github.com/repos/BOINC/boinc/issues/1159/labels{/name}","comments_url":"https://api.github.com/repos/BOINC/boinc/issues/1159/comments","events_url":"https://api.github.com/repos/BOINC/boinc/issues/1159/events","html_url":"https://github.com/BOINC/boinc/issues/1159","id":56208484,"number":1159,"title":"Client fails with malloc error, when stopped and started","user":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"davidpanderson","id":985729,"avatar_url":"https://avatars.githubusercontent.com/u/985729?v=3","gravatar_id":"","url":"https://api.github.com/users/davidpanderson","html_url":"https://github.com/davidpanderson","followers_url":"https://api.github.com/users/davidpanderson/followers","following_url":"https://api.github.com/users/davidpanderson/following{/other_user}","gists_url":"https://api.github.com/users/davidpanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpanderson/subscriptions","organizations_url":"https://api.github.com/users/davidpanderson/orgs","repos_url":"https://api.github.com/users/davidpanderson/repos","events_url":"https://api.github.com/users/davidpanderson/events{/privacy}","received_events_url":"https://api.github.com/users/davidpanderson/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-02T08:31:44Z","updated_at":"2015-02-03T01:23:08Z","closed_at":"2015-02-02T08:31:55Z","body":"**Reported by rybakowicki on 6 Oct 38893860 00:53 UTC**\nWhen signed to World Community Grid project URL: http://www.worldcommunitygrid.org/ and BOINC is disturbed (closed), either by ./boinc_cmd --quit or signal, the client fails to start again with an malloc error. \r\nTo start it again client_state*.xml have to be deleted.\r\n\r\nFailed:\r\n```\r\n21-Nov-2008 23:58:12 [Starting BOINC client version 6.2.15 for i686-pc-linux-gnu\r\n21-Nov-2008 23:58:12 [---](---]) log flags: task, file_xfer, sched_ops\r\n21-Nov-2008 23:58:12 [Libraries: libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3 c-ares/1.5.1\r\n21-Nov-2008 23:58:12 [---](---]) Data directory: /home/michal/BOINC\r\n21-Nov-2008 23:58:12 [Processor: 4 GenuineIntel Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz [Family 6 Model 15 Stepping 11](---])\r\n21-Nov-2008 23:58:12 [Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ssht tm pbe lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm\r\n21-Nov-2008 23:58:12 [---](---]) OS: Linux: 2.6.25.18-0.2-pae\r\n21-Nov-2008 23:58:12 [Memory: 1.98 GB physical, 2.01 GB virtual\r\n21-Nov-2008 23:58:12 [---](---]) Disk: 74.31 GB total, 64.13 GB free\r\n21-Nov-2008 23:58:12 [Local time is UTC +1 hours\r\n*** glibc detected *** ./boinc: malloc(): memory corruption: 0xbfd3eed4 ***\r\n======= Backtrace: =========\r\n/lib/libc.so.6[0xb7dd7fc4](---])\r\n/lib/libc.so.6[Memory map: ========\r\n08048000-081d7000 r-xp 00000000 08:07 3465920    /home/michal/BOINC/boinc\r\n081d7000-081e7000 rwxp 0018f000 08:07 3465920    /home/michal/BOINC/boinc\r\n081e7000-08346000 rwxp 081e7000 00:00 0          [heap](0xb7dda6aa]\r\n/lib/libc.so.6(__libc_malloc+0x9c)[0xb7ddc11c]\r\n/usr/lib/libstdc++.so.6(_Znwj+0x27)[0xb7fa9d67]\r\n./boinc[0x8058a60]\r\n=======)\r\nb7800000-b7821000 rwxp b7800000 00:00 0\r\nb7821000-b7900000 ---p b7821000 00:00 0\r\nb791a000-b7cd5000 r-xp 00000000 08:07 3056697    /usr/lib/libcuda.so.177.73\r\nb7cd5000-b7cd7000 rwxp 003ba000 08:07 3056697    /usr/lib/libcuda.so.177.73\r\nb7cd7000-b7d00000 rwxp b7cd7000 00:00 0\r\nb7d00000-b7d07000 r-xp 00000000 08:07 794939     /lib/librt-2.8.so\r\nb7d07000-b7d08000 r-xp 00006000 08:07 794939     /lib/librt-2.8.so\r\nb7d08000-b7d09000 rwxp 00007000 08:07 794939     /lib/librt-2.8.so\r\nb7d09000-b7d50000 r-xp 00000000 08:07 3752336    /usr/local/cuda/lib/libcudart.so.2.0\r\nb7d50000-b7d52000 rwxp 00046000 08:07 3752336    /usr/local/cuda/lib/libcudart.so.2.0\r\nb7d52000-b7d5b000 r-xp 00000000 08:07 794986     /lib/libnss_files-2.8.so\r\nb7d5b000-b7d5c000 r-xp 00008000 08:07 794986     /lib/libnss_files-2.8.so\r\nb7d5c000-b7d5d000 rwxp 00009000 08:07 794986     /lib/libnss_files-2.8.so\r\nb7d5d000-b7d5e000 rwxp b7d5d000 00:00 0\r\nb7d5e000-b7d6a000 r-xp 00000000 08:07 794674     /lib/libgcc_s.so.1\r\nb7d6a000-b7d6b000 r-xp 0000b000 08:07 794674     /lib/libgcc_s.so.1\r\nb7d6b000-b7d6c000 rwxp 0000c000 08:07 794674     /lib/libgcc_s.so.1\r\nb7d6c000-b7ea9000 r-xp 00000000 08:07 794975     /lib/libc-2.8.so\r\nb7ea9000-b7eab000 r-xp 0013d000 08:07 794975     /lib/libc-2.8.so\r\nb7eab000-b7eac000 rwxp 0013f000 08:07 794975     /lib/libc-2.8.so\r\nb7eac000-b7eb0000 rwxp b7eac000 00:00 0\r\nb7eb0000-b7ed4000 r-xp 00000000 08:07 794985     /lib/libm-2.8.so\r\nb7ed4000-b7ed5000 r-xp 00023000 08:07 794985     /lib/libm-2.8.so\r\nb7ed5000-b7ed6000 rwxp 00024000 08:07 794985     /lib/libm-2.8.so\r\nb7ed6000-b7eea000 r-xp 00000000 08:07 794677     /lib/libpthread-2.8.so\r\nb7eea000-b7eeb000 r-xp 00013000 08:07 794677     /lib/libpthread-2.8.so\r\nb7eeb000-b7eec000 rwxp 00014000 08:07 794677     /lib/libpthread-2.8.so\r\nb7eec000-b7eee000 rwxp b7eec000 00:00 0\r\nb7eee000-b7fd3000 r-xp 00000000 08:07 3056523    /usr/lib/libstdc++.so.6.0.10\r\nb7fd3000-b7fd7000 r-xp 000e5000 08:07 3056523    /usr/lib/libstdc++.so.6.0.10\r\nb7fd7000-b7fd8000 rwxp 000e9000 08:07 3056523    /usr/lib/libstdc++.so.6.0.10\r\nb7fd8000-b7fde000 rwxp b7fd8000 00:00 0\r\nb7fde000-b7ff0000 r-xp 00000000 08:07 794762     /lib/libz.so.1.2.3\r\nb7ff0000-b7ff1000 r-xp 00011000 08:07 794762     /lib/libz.so.1.2.3\r\nb7ff1000-b7ff2000 rwxp 00012000 08:07 794762     /lib/libz.so.1.2.3\r\nb7ff2000-b7ff4000 r-xp 00000000 08:07 794980     /lib/libdl-2.8.so\r\nb7ff4000-b7ff5000 r-xp 00001000 08:07 794980     /lib/libdl-2.8.so\r\nb7ff5000-b7ff6000 rwxp 00002000 08:07 794980     /lib/libdl-2.8.so\r\nb7ff6000-b8009000 r-xp 00000000 08:07 794749     /lib/libnsl-2.8.so\r\nb8009000-b800a000 r-xp 00012000 08:07 794749     /lib/libnsl-2.8.so\r\nb800a000-b800b000 rwxp 00013000 08:07 794749     /lib/libnsl-2.8.so\r\nb800b000-b800e000 rwxp b800b000 00:00 0\r\nb8027000-b8042000 r-xp 00000000 08:07 795070     /lib/ld-2.8.so\r\nb8042000-b8043000 r-xp 0001a000 08:07 795070     /lib/ld-2.8.so\r\nb8043000-b8044000 rwxp 0001b000 08:07 795070     /lib/ld-2.8.so\r\nbfd2e000-bfd43000 rwxp bffeb000 00:00 0          [r-xp 00000000 00:00 0          [vdso](stack]\r\nffffe000-fffff000)\r\nSIGABRT: abort called\r\nStack trace (11 frames):\r\n./boinc[after:\r\n```\r\nrm client_state*\r\n./boinc\r\n22-Nov-2008 00:18:01 [---](0x8094e76]\r\n[0xffffe400]\r\n[0xffffe430]\r\n/lib/libc.so.6(gsignal+0x50)[0xb7d96900]\r\n/lib/libc.so.6(abort+0x188)[0xb7d98238]\r\n/lib/libc.so.6[0xb7dd210d]\r\n/lib/libc.so.6[0xb7dd7fc4]\r\n/lib/libc.so.6[0xb7dda6aa]\r\n/lib/libc.so.6(__libc_malloc+0x9c)[0xb7ddc11c]\r\n/usr/lib/libstdc++.so.6(_Znwj+0x27)[0xb7fa9d67]\r\n./boinc[0x8058a60]\r\n\r\nExiting...\r\n```\r\nand) Starting BOINC client version 6.2.15 for i686-pc-linux-gnu\r\n22-Nov-2008 00:18:01 [log flags: task, file_xfer, sched_ops\r\n22-Nov-2008 00:18:01 [---](---]) Libraries: libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3 c-ares/1.5.1\r\n22-Nov-2008 00:18:01 [Data directory: /home/michal/BOINC\r\n22-Nov-2008 00:18:01 [---](---]) Processor: 4 GenuineIntel Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz [6 Model 15 Stepping 11](Family)\r\n22-Nov-2008 00:18:01 [Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ssht tm pbe lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm\r\n22-Nov-2008 00:18:01 [---](---]) OS: Linux: 2.6.25.18-0.2-pae\r\n22-Nov-2008 00:18:01 [Memory: 1.98 GB physical, 2.01 GB virtual\r\n22-Nov-2008 00:18:01 [---](---]) Disk: 74.31 GB total, 64.13 GB free\r\n22-Nov-2008 00:18:01 [Local time is UTC +1 hours\r\n22-Nov-2008 00:18:01 [---](---]) Coprocessor: CUDA (1)\r\n22-Nov-2008 00:18:01 [Community Grid](World) URL: http://www.worldcommunitygrid.org/; Computer ID: not assigned yet; location: (none); project prefs: default\r\n22-Nov-2008 00:18:01 [General prefs: from World Community Grid (last modified 01-Jan-1970 01:00:01)\r\n22-Nov-2008 00:18:01 [---](---]) Host location: none\r\n22-Nov-2008 00:18:01 [General prefs: using your defaults\r\n22-Nov-2008 00:18:01 [---](---]) Preferences limit memory usage when active to 1519.66MB\r\n22-Nov-2008 00:18:01 [Preferences limit memory usage when idle to 1519.66MB\r\n22-Nov-2008 00:18:01 [---](---]) Preferences limit disk usage to 3.73GB\r\n22-Nov-2008 00:18:01 [Running CPU benchmarks\r\n22-Nov-2008 00:18:01 [World Community Grid](---]) Fetching scheduler list\r\n22-Nov-2008 00:18:06 [Community Grid](World) Master file download succeeded\r\n22-Nov-2008 00:18:11 [Community Grid](World) Sending scheduler request: Project initialization.  Requesting 1 seconds of work, reporting 0 completed tasks\r\n22-Nov-2008 00:18:16 [Community Grid](World) Scheduler request succeeded: got 0 new tasks\r\n22-Nov-2008 00:18:16 [Community Grid](World) Message from server: Not sending work - last request too recent: 49 sec\r\n22-Nov-2008 00:18:18 [Community Grid](World) File stat_v01.png exists already, skipping download\r\n22-Nov-2008 00:18:18 [Community Grid](World) File default_00_v01.gif exists already, skipping download\r\n22-Nov-2008 00:18:18 [Community Grid](World) File dddt_00_v01.gif exists already, skipping download\r\n22-Nov-2008 00:18:18 [Community Grid](World) File dddt_01_v01.png exists already, skipping download\r\n```"},"comment":{"url":"https://api.github.com/repos/BOINC/boinc/issues/comments/72574560","html_url":"https://github.com/BOINC/boinc/issues/1159#issuecomment-72574560","issue_url":"https://api.github.com/repos/BOINC/boinc/issues/1159","id":72574560,"user":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T01:23:08Z","updated_at":"2015-02-03T01:23:08Z","body":"**Commented by Nicolas on 20 Aug 38893887 20:26 UTC**\nUgh. The problem is not malloc failing. The problem is something '''else''' is corrupting memory, and the next call to malloc (fortunately!) detects it and aborts the program. The real mess is finding what causes the memory corruption...\r\n\r\nCan you please attach your ```client_state.xml``` to this ticket? (The only \"private\" information in that file is your hostname)\r\n"}}