{"action":"created","issue":{"url":"https://api.github.com/repos/HDF-NI/hdf5.node/issues/66","repository_url":"https://api.github.com/repos/HDF-NI/hdf5.node","labels_url":"https://api.github.com/repos/HDF-NI/hdf5.node/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/HDF-NI/hdf5.node/issues/66/comments","events_url":"https://api.github.com/repos/HDF-NI/hdf5.node/issues/66/events","html_url":"https://github.com/HDF-NI/hdf5.node/issues/66","id":323971730,"number":66,"title":"Alignment trap","user":{"login":"NINI1988","id":2767665,"avatar_url":"https://avatars3.githubusercontent.com/u/2767665?v=4","gravatar_id":"","url":"https://api.github.com/users/NINI1988","html_url":"https://github.com/NINI1988","followers_url":"https://api.github.com/users/NINI1988/followers","following_url":"https://api.github.com/users/NINI1988/following{/other_user}","gists_url":"https://api.github.com/users/NINI1988/gists{/gist_id}","starred_url":"https://api.github.com/users/NINI1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NINI1988/subscriptions","organizations_url":"https://api.github.com/users/NINI1988/orgs","repos_url":"https://api.github.com/users/NINI1988/repos","events_url":"https://api.github.com/users/NINI1988/events{/privacy}","received_events_url":"https://api.github.com/users/NINI1988/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-05-17T10:53:38Z","updated_at":"2018-05-18T13:18:32Z","closed_at":"2018-05-18T10:22:51Z","author_association":"NONE","body":"Code Example:\r\n```\r\nconst table = new Array();\r\n\r\nconst tempModeCol = new Int8Array(1);\r\ntempModeCol.name = 'temperatureMode';\r\ntempModeCol[0] = -1;\r\ntable.push(tempModeCol);\r\n\r\nconst tempSollCol = new Float64Array(1);\r\ntempSollCol.name = 'temperatureSoll';\r\ntempSollCol[0] =-1;\r\ntable.push(tempSollCol);\r\n\r\nh5tb.makeTable(id, 'infos', table);\r\n```\r\n\r\nError in dmesg:\r\n```\r\n[ 3721.859828] Alignment trap: not handling instruction ed840b00 at [<b46d5486>]\r\n[ 3721.866958] Unhandled fault: alignment exception (0x801) at 0x019c6fc1\r\n[ 3721.873457] pgd = dc398000\r\n[ 3721.876169] [019c6fc1] *pgd=17166831, *pte=140d875f, *ppte=140d8c7f\r\n```\r\n\r\nOn windows it works, but under linux on arm makeTable failed with the above error.\r\n\r\nIt happens on line https://github.com/HDF-NI/hdf5.node/blob/master/src/h5_tb.hpp#L165\r\ni:1, j: 0, type_size:9, field_offsets[i]:1, \r\n\r\nMaybe we need to add padding like in this description https://support.hdfgroup.org/HDF5/Tutor/h5table.html"},"comment":{"url":"https://api.github.com/repos/HDF-NI/hdf5.node/issues/comments/390204060","html_url":"https://github.com/HDF-NI/hdf5.node/issues/66#issuecomment-390204060","issue_url":"https://api.github.com/repos/HDF-NI/hdf5.node/issues/66","id":390204060,"user":{"login":"rimmartin","id":6502360,"avatar_url":"https://avatars1.githubusercontent.com/u/6502360?v=4","gravatar_id":"","url":"https://api.github.com/users/rimmartin","html_url":"https://github.com/rimmartin","followers_url":"https://api.github.com/users/rimmartin/followers","following_url":"https://api.github.com/users/rimmartin/following{/other_user}","gists_url":"https://api.github.com/users/rimmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/rimmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rimmartin/subscriptions","organizations_url":"https://api.github.com/users/rimmartin/orgs","repos_url":"https://api.github.com/users/rimmartin/repos","events_url":"https://api.github.com/users/rimmartin/events{/privacy}","received_events_url":"https://api.github.com/users/rimmartin/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T13:18:32Z","updated_at":"2018-05-18T13:18:32Z","author_association":"COLLABORATOR","body":"Are you on a 32 bit machine?\r\n\r\nstd::cout<<\" sizeof long long \"<<sizeof(long long) <<std::endl;\r\n\r\nput out\r\nsizeof long long 8\r\n\r\n8 bytes * 8 bits is 64 bits"}}
{"actor":{"display_login":"rimmartin"}}