{"action":"created","issue":{"url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci/issues/61","repository_url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci","labels_url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci/issues/61/comments","events_url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci/issues/61/events","html_url":"https://github.com/NXPNFCLinux/linux_libnfc-nci/issues/61","id":280545710,"node_id":"MDU6SXNzdWUyODA1NDU3MTA=","number":61,"title":"nfcDemoApp segfaults in libpthread ","user":{"login":"sabelka","id":31314705,"node_id":"MDQ6VXNlcjMxMzE0NzA1","avatar_url":"https://avatars0.githubusercontent.com/u/31314705?v=4","gravatar_id":"","url":"https://api.github.com/users/sabelka","html_url":"https://github.com/sabelka","followers_url":"https://api.github.com/users/sabelka/followers","following_url":"https://api.github.com/users/sabelka/following{/other_user}","gists_url":"https://api.github.com/users/sabelka/gists{/gist_id}","starred_url":"https://api.github.com/users/sabelka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabelka/subscriptions","organizations_url":"https://api.github.com/users/sabelka/orgs","repos_url":"https://api.github.com/users/sabelka/repos","events_url":"https://api.github.com/users/sabelka/events{/privacy}","received_events_url":"https://api.github.com/users/sabelka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-12-08T16:34:07Z","updated_at":"2018-08-13T12:11:52Z","closed_at":null,"author_association":"NONE","body":"When I try to run the nfcDemoApp on a opensuse Tumbeweed PC it crashes with an segmentation fault.\r\n\r\nI've compiled the linux_libnfc-nci with the following options:\r\nCXXFLAGS=\"-g -O0\" CFLAGS=\"-g -O0\" ./configure --enable-pn7150 --enable-lpcusbsio --sysconfdir=/etc\r\n\r\nBacktrace:\r\n~~~~\r\n$ gdb /usr/local/sbin/nfcDemoApp\r\nGNU gdb (GDB; openSUSE Tumbleweed) 8.0.1\r\n(gdb) r poll\r\nStarting program: /usr/local/sbin/nfcDemoApp poll\r\n#########################################################################################\r\n##                                       NFC demo                                      ##\r\n#########################################################################################\r\n##                                 Poll mode activated                                 ##\r\n#########################################################################################\r\n[New Thread 0x7ffff5ce2700 (LWP 16786)]\r\n                              ... press enter to quit ...\r\n\r\n[New Thread 0x7ffff54e1700 (LWP 16787)]\r\n[New Thread 0x7ffff4ce0700 (LWP 16788)]\r\n[New Thread 0x7fffeffff700 (LWP 16789)]\r\n\r\nThread 4 \"nfcDemoApp\" received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x7ffff4ce0700 (LWP 16788)]\r\n__lll_unlock_elision (lock=0x7ffff4cdfd48, private=0)\r\n    at ../sysdeps/unix/sysv/linux/x86/elision-unlock.c:29\r\n29      ../sysdeps/unix/sysv/linux/x86/elision-unlock.c: No such file or directory.\r\n(gdb) bt\r\n#0  __lll_unlock_elision (lock=0x7ffff4cdfd48, private=0)\r\n    at ../sysdeps/unix/sysv/linux/x86/elision-unlock.c:29\r\n#1  0x00007ffff7b4f28e in ThreadMutex::unlock (this=0x7ffff4cdfd40)\r\n    at src/libnfc-nci/adaptation/NfcAdaptation.cpp:728\r\n#2  0x00007ffff7b4f44c in AutoThreadMutex::~AutoThreadMutex (\r\n    this=0x7ffff4cdfda0, __in_chrg=<optimized out>)\r\n    at src/libnfc-nci/adaptation/NfcAdaptation.cpp:820\r\n#3  0x00007ffff7b4ec53 in NfcAdaptation::Thread (arg=0)\r\n    at src/libnfc-nci/adaptation/NfcAdaptation.cpp:287\r\n#4  0x00007ffff7b16c16 in gki_task_entry (params=140737351857472)\r\n    at src/libnfc-nci/gki/ulinux/gki_ulinux.c:128\r\n#5  0x00007ffff725e558 in start_thread (arg=0x7ffff4ce0700)\r\n    at pthread_create.c:465\r\n#6  0x00007ffff6f956bf in clone ()\r\n    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95\r\n(gdb) \r\n~~~~"},"comment":{"url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci/issues/comments/412497315","html_url":"https://github.com/NXPNFCLinux/linux_libnfc-nci/issues/61#issuecomment-412497315","issue_url":"https://api.github.com/repos/NXPNFCLinux/linux_libnfc-nci/issues/61","id":412497315,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjQ5NzMxNQ==","user":{"login":"jgeslin","id":11649902,"node_id":"MDQ6VXNlcjExNjQ5OTAy","avatar_url":"https://avatars0.githubusercontent.com/u/11649902?v=4","gravatar_id":"","url":"https://api.github.com/users/jgeslin","html_url":"https://github.com/jgeslin","followers_url":"https://api.github.com/users/jgeslin/followers","following_url":"https://api.github.com/users/jgeslin/following{/other_user}","gists_url":"https://api.github.com/users/jgeslin/gists{/gist_id}","starred_url":"https://api.github.com/users/jgeslin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgeslin/subscriptions","organizations_url":"https://api.github.com/users/jgeslin/orgs","repos_url":"https://api.github.com/users/jgeslin/repos","events_url":"https://api.github.com/users/jgeslin/events{/privacy}","received_events_url":"https://api.github.com/users/jgeslin/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T12:11:52Z","updated_at":"2018-08-13T12:11:52Z","author_association":"CONTRIBUTOR","body":"Latest release R2.4 now includes the fix."}}
{"actor":{"display_login":"jgeslin"}}