hack のためのネタ帳, etc,,,

状況

snapcraft で SDL のプロジェクトを snap パッケージ化する Segmentation fault (コアダンプ) で止まる。
gdb にかけるとこんな感じ。
$ gdb sdl2test
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from sdl2test...(no debugging symbols found)...done.
(gdb) run
Starting program: /snap/bin/sdl2test 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff77ef700 (LWP 27241)]
[New Thread 0x7ffff6fee700 (LWP 27242)]
[New Thread 0x7ffff67ed700 (LWP 27243)]
[New Thread 0x7ffff5fec700 (LWP 27244)]
[Thread 0x7ffff67ed700 (LWP 27243) exited]
[Thread 0x7ffff5fec700 (LWP 27244) exited]
[Thread 0x7ffff6fee700 (LWP 27242) exited]
[Thread 0x7ffff77ef700 (LWP 27241) exited]
process 27237 is executing new program: /snap/core/4017/usr/bin/snap
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff77ef700 (LWP 27245)]
[New Thread 0x7ffff6fee700 (LWP 27246)]
[New Thread 0x7ffff67ed700 (LWP 27247)]
[New Thread 0x7ffff5fec700 (LWP 27248)]
[Thread 0x7ffff5fec700 (LWP 27248) exited]
[Thread 0x7ffff67ed700 (LWP 27247) exited]
[Thread 0x7ffff6fee700 (LWP 27246) exited]
[Thread 0x7ffff77ef700 (LWP 27245) exited]
process 27237 is executing new program: /snap/core/4017/usr/lib/snapd/snap-confine
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
need to run as root or suid
[Inferior 1 (process 27237) exited with code 01]
SDL はハード叩くので root か suid よこせと言ってる?

以下にポストがあるが解決できてない模様。

関連

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます