awesome

Welcome to awesome bug tracking system.
Tasklist

FS#701 - crash with "unprotected error in call to Lua API (stack overflow (too much signal))"

Attached to Project: awesome
Opened by Igor Rudchenko (igor1st) - Thursday, 17 December 2009, 16:58 GMT
Last edited by Uli Schlachter (psychon) - Tuesday, 17 August 2010, 15:38 GMT
Task Type Bug Report
Category Core
Status Closed
Assigned To No-one
Operating System Linux
Severity High
Priority Normal
Reported Version 3.4.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

System: Debian testing, amd64.

Crash happens after several days of uptime, so not easily reproduce.

First crash with awesome 3.4.2-2 from Debian happens when I navigate in menu of foobar2000 running under wine:

--------------------------------------------------------------------------------------------------------------
W: awesome: luaA_panic:679: unprotected error in call to Lua API (stack overflow (too much signal))
E: awesome: signal_fatal:260: dumping backtrace
x-window-manager(backtrace_get+0x26) [0x43b6d6]
x-window-manager [0x40f51c]
/lib/libpthread.so.0 [0x7fc6cb00c990]
/lib/libc.so.6(cfree+0x39) [0x7fc6cab186c9]
x-window-manager [0x410e96]
/usr/lib/liblua5.1.so.0 [0x7fc6cb6e7a56]
/usr/lib/liblua5.1.so.0 [0x7fc6cb6e7f69]
/usr/lib/liblua5.1.so.0 [0x7fc6cb6e978f]
/usr/lib/liblua5.1.so.0 [0x7fc6cb6e9e18]
/usr/lib/liblua5.1.so.0 [0x7fc6cb6e7647]
/usr/lib/liblua5.1.so.0(lua_close+0x60) [0x7fc6cb6eeac0]
x-window-manager(awesome_atexit+0x1d9) [0x40fa59]
x-window-manager(awesome_restart+0x9) [0x40fab9]
x-window-manager [0x42648e]
/usr/lib/liblua5.1.so.0 [0x7fc6cb6e792e]
/usr/lib/liblua5.1.so.0(lua_error+0x9) [0x7fc6cb6e2eb9]
/usr/lib/liblua5.1.so.0(luaL_error+0xc2) [0x7fc6cb6f4072]
x-window-manager(signal_object_emit+0xbe) [0x43be5e]
x-window-manager(client_unmanage+0x1d0) [0x4154f0]
x-window-manager [0x41b802]
x-window-manager [0x40f49d]
/usr/lib/libev.so.3(ev_invoke_pending+0x61) [0x7fc6cb909481]
/usr/lib/libev.so.3(ev_loop+0x84c) [0x7fc6cb90e1bc]
x-window-manager(main+0x8bf) [0x4103af]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7fc6caac1a8d]
x-window-manager [0x40f2a9]
-----------------------------------------------------------------------------------------------------------------------

After that crash I build version 3.4.2-3+git20091210 from git 3.4 84acfc46521e756c4f44754cf7ebd69bc6b70f71. And today I have another crash while open openoffice:

-----------------------------------------------------------------------------------------------------------------------
W: awesome: luaA_panic:679: unprotected error in call to Lua API (stack overflow (too much signal)), restarting awesome
*** glibc detected *** x-window-manager: double free or corruption (out): 0x0000000002a7c120 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f31f8c6ed56]
/lib/libc.so.6(cfree+0x6c)[0x7f31f8c739bc]
x-window-manager[0x410ec6]
/usr/lib/liblua5.1.so.0[0x7f31f9843a56]
/usr/lib/liblua5.1.so.0[0x7f31f9843f69]
/usr/lib/liblua5.1.so.0[0x7f31f984578f]
/usr/lib/liblua5.1.so.0[0x7f31f9845e18]
/usr/lib/liblua5.1.so.0[0x7f31f9843647]
/usr/lib/liblua5.1.so.0(lua_close+0x60)[0x7f31f984aac0]
x-window-manager(awesome_atexit+0x1d9)[0x40fa89]
x-window-manager(awesome_restart+0x9)[0x40fae9]
x-window-manager[0x4264de]
/usr/lib/liblua5.1.so.0[0x7f31f984392e]
/usr/lib/liblua5.1.so.0(lua_error+0x9)[0x7f31f983eeb9]
/usr/lib/liblua5.1.so.0(luaL_error+0xc2)[0x7f31f9850072]
x-window-manager(signal_object_emit+0xbe)[0x43c2ae]
x-window-manager(client_manage+0x50b)[0x415ccb]
x-window-manager[0x41b431]
/usr/lib/liblua5.1.so.0[0x7f31f9845e18]
/usr/lib/liblua5.1.so.0[0x7f31f9843647]
/usr/lib/liblua5.1.so.0(lua_close+0x60)[0x7f31f984aac0]
x-window-manager(awesome_atexit+0x1d9)[0x40fa89]
x-window-manager(awesome_restart+0x9)[0x40fae9]
x-window-manager[0x4264de]
/usr/lib/liblua5.1.so.0[0x7f31f984392e]
/usr/lib/liblua5.1.so.0(lua_error+0x9)[0x7f31f983eeb9]
/usr/lib/liblua5.1.so.0(luaL_error+0xc2)[0x7f31f9850072]
x-window-manager(signal_object_emit+0xbe)[0x43c2ae]
x-window-manager(client_manage+0x50b)[0x415ccb]
7f31fb582000-7f31fb583000 rw-p 00003000 08:05 5351 /usr/lib/libxcb-icccm.so.1.0.0
7f31fb583000-7f31fb585000 r-xp 00000000 08:05 5365 /usr/lib/libxcb-keysyms.so.1.0.0
7f31fb585000-7f31fb784000 ---p 00002000 08:05 5365 /usr/lib/libxcb-keysyms.so.1.0.0
7f31fb784000-7f31fb785000 rw-p 00001000 08:05 5365 /usr/lib/libxcb-keysyms.so.1.0.0
7f31fb785000-7f31fb788000 r-xp 00000000 08:05 35158 /usr/lib/libxcb-aux.so.0.0.0
7f31fb788000-7f31fb987000 ---p 00003000 08:05 35158 /usr/lib/libxcb-aux.so.0.0.0
7f31fb987000-7f31fb988000 rw-p 00002000 08:05 35158 /usr/lib/libxcb-aux.so.0.0.0
7f31fb988000-7f31fb98a000 r-xp 00000000 08:05 5374 /usr/lib/libxcb-shape.so.0.0.0 (deleted)
7f31fb98a000-7f31fbb8a000 ---p 00002000 08:05 5374 /usr/lib/libxcb-shape.so.0.0.0 (deleted)
7f31fbb8a000-7f31fbb8b000 rw-p 00002000 08:05 5374 /usr/lib/libxcb-shape.so.0.0.0 (deleted)
7f31fbb8b000-7f31fbb8d000 r-xp 00000000 08:05 5378 /usr/lib/libxcb-xinerama.so.0.0.0.dpkg-new (deleted)
7f31fbb8d000-7f31fbd8c000 ---p 00002000 08:05 5378 /usr/lib/libxcb-xinerama.so.0.0.0.dpkg-new (deleted)
7f31fbd8c000-7f31fbd8d000 rw-p 00001000 08:05 5378 /usr/lib/libxcb-xinerama.so.0.0.0.dpkg-new (deleted)
7f31fbd8d000-7f31fbd8e000 r-xp 00000000 08:05 5382 /usr/lib/libxcb-xtest.so.0.0.0 (deleted)
7f31fbd8e000-7f31fbf8e000 ---p 00001000 08:05 5382 /usr/lib/libxcb-xtest.so.0.0.0 (deleted)
7f31fbf8e000-7f31fbf8f000 rw-p 00001000 08:05 5382 /usr/lib/libxcb-xtest.so.0.0.0 (deleted)
7f31fbf8f000-7f31fbf98000 r-xp 00000000 08:05 5370 /usr/lib/libxcb-randr.so.0.1.0 (deleted)
7f31fbf98000-7f31fc197000 ---p 00009000 08:05 5370 /usr/lib/libxcb-randr.so.0.1.0 (deleted)
7f31fc197000-7f31fc198000 rw-p 00008000 08:05 5370 /usr/lib/libxcb-randr.so.0.1.0 (deleted)
7f31fc198000-7f31fc25c000 r-xp 00000000 08:01 342 /lib/libglib-2.0.so.0.2200.3
7f31fc25c000-7f31fc45b000 ---p 000c4000 08:01 342 /lib/libglib-2.0.so.0.2200.3
7f31fc45b000-7f31fc45d000 rw-p 000c3000 08:01 342 /lib/libglib-2.0.so.0.2200.3
7f31fc45d000-7f31fc460000 r-xp 00000000 08:05 2994 /usr/lib/libgmodule-2.0.so.0.2200.3
7f31fc460000-7f31fc65f000 ---p 00003000 08:05 2994 /usr/lib/libgmodule-2.0.so.0.2200.3
7f31fc65f000-7f31fc660000 rw-p 00002000 08:05 2994 /usr/lib/libgmodule-2.0.so.0.2200.3
7f31fc660000-7f31fc6a3000 r-xp 00000000 08:05 6163 /usr/lib/libgobject-2.0.so.0.2200.3
7f31fc6a3000-7f31fc8a3000 ---p 00043000 08:05 6163 /usr/lib/libgobject-2.0.so.0.2200.3
7f31fc8a3000-7f31fc8a5000 rw-p 00043000 08:05 6163 /usr/lib/libgobject-2.0.so.0.2200.3
7f31fc8a5000-7f31fc8ee000 r-xp 00000000 08:05 7047 /usr/lib/libpango-1.0.so.0.2600.1
7f31fc8ee000-7f31fcaee000 ---p 00049000 08:05 7047 /usr/lib/libpango-1.0.so.0.2600.1
7f31fcaee000-7f31fcaf1000 rw-p 00049000 08:05 7047 /usr/lib/libpango-1.0.so.0.2600.1
7f31fcaf1000-7f31fcafc000 r-xp 00000000 08:05 7032 /usr/lib/libpangocairo-1.0.so.0.2600.1
7f31fcafc000-7f31fccfc000 ---p 0000b000 08:05 7032 /usr/lib/libpangocairo-1.0.so.0.2600.1
7f31fccfc000-7f31fccfd000 rw-p 0000b000 08:05 7032 /usr/lib/libpangocairo-1.0.so.0.2600.1
7f31fccfd000-7f31fce32000 r-xp 00000000 08:05 19318 /usr/lib/libX11.so.6.3.0
7f31fce32000-7f31fd032000 ---p 00135000 08:05 19318 /usr/lib/libX11.so.6.3.0
7f31fd032000-7f31fd038000 rw-p 00135000 08:05 19318 /usr/lib/libX11.so.6.3.0
7f31fd038000-7f31fd053000 r-xp 00000000 08:05 21909 /usr/lib/libxcb.so.1.1.0 (deleted)
7f31fd053000-7f31fd253000 ---p 0001b000 08:05 21909 /usr/lib/libxcb.so.1.1.0 (deleted)
7f31fd253000-7f31fd254000 rw-p 0001b000 08:05 21909 /usr/lib/libxcb.so.1.1.0 (deleted)
7f31fd254000-7f31fd271000 r-xp 00000000 08:01 1301 /lib/ld-2.10.2.so
7f31fd2f4000-7f31fd32c000 rw-p 00000000 00:00 0
7f31fd32c000-7f31fd37b000 r--p 00000000 08:05 22278 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
7f31fd37b000-7f31fd382000 r--s 00000000 08:05 18189 /usr/lib/gconv/gconv-modules.cache
7f31fd382000-7f31fd41a000 r--p 00000000 08:05 22273 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7f31fd41a000-7f31fd41e000 r--s 00000000 08:06 3230 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-x86-64.cache-2.NEW (deleted)
7f31fd41e000-7f31fd44c000 r--s 00000000 08:06 2788 /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-x86-64.cache-2
7f31fd44c000-7f31fd461000 rw-p 00000000 00:00 0
7f31fd461000-7f31fd46a000 r--s 00000000 08:06 2369 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86-64.cache-2
7f31fd46a000-7f31fd46b000 r--s 00000000 08:06 4966 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-x86-64.cache-2
7f31fd46b000-7f31fd46d000 r--s 00000000 08:06 2343 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-x86-64.cache-2
7f31fd46d000-7f31fd470000 rw-p 00000000 00:00 0
7f31fd470000-7f31fd471000 r--p 0001c000 08:01 1301 /lib/ld-2.10.2.so
7f31fd471000-7f31fd472000 rw-p 0001d000 08:01 1301 /lib/ld-2.10.2.so
7fffed5e4000-7fffed5f9000 rw-p 00000000 00:00 0 [stack]
7fffed5ff000-7fffed600000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
-----------------------------------------------------------------------------------------------------------------------------------------------

Also I notice, that awesome's memory use grows continuously with uptime. After start it uses only 9-10MB, but for moments of crash it uses more than 30MB memory. May be this not connected with crash, but I suppose that such behavior isn't normal for WM program.
Closed by  Uli Schlachter (psychon)
Tuesday, 17 August 2010, 15:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  Bug seems to be fixed thanks to  FS#729 . Feel free to reopen if needed.
Comment by Nikolaj Sjujskij (krigstask) - Wednesday, 23 December 2009, 21:41 GMT
I get this error regularly in 3.4.x:

W: awesome: luaA_panic:679: unprotected error in call to Lua API (stack overflow (too much signal)), restarting awesome

But I couldn't debug it properly. Thank you, Igor, for proper report.
Comment by Tobias (tobi) - Saturday, 02 January 2010, 18:51 GMT
Same here on FreeBSD 8.0-STABLE

W: awesome: luaA_panic:679: unprotected error in call to Lua API (stack overflow (too much signal)), restarting awesome

Couldn't reproduce it so far
Comment by Igor Rudchenko (igor1st) - Sunday, 03 January 2010, 08:43 GMT
To reproduce you need more uptime without restart. Signal stack in awesome 3.4 seems to grows continuosly with time - look on awesome's memory use.

Downgrade awesome to 3.3 resolve this problem - memory use always no more than 10MB, no crash. Julien added in 3.4 signal system to replace hooks. And bug hides somewhere here.
Comment by Nikolaj Sjujskij (krigstask) - Tuesday, 09 February 2010, 10:11 GMT
I've got backtrace too, see it attached. Can't say it looks much like Igor's one though. Hope it helps.
Comment by Uli Schlachter (psychon) - Wednesday, 10 February 2010, 22:15 GMT
There were two commits which fixed some memory leaks on the lua stack. Those bugs could cause something like this. The leak happened on every focus change and every NET_WM_PROPERTIES change, so that would definitely sound like "high uptime".

I hope that this is fixed in git now and just close this for now, feel free to reopen if this still happens. (FYI, no release of awesome contains this fixes yet, wait for the next one)

http://git.naquadah.org/?p=awesome.git;a=commitdiff;h=becf3d514ad9404db10615a2aeb6cd826bf9a287
http://git.naquadah.org/?p=awesome.git;a=commitdiff;h=49ee5cea0588ffce52ab8dfeedfc5ba94002708c
Comment by Igor Rudchenko (igor1st) - Saturday, 20 February 2010, 22:22 GMT
  • Field changed: Percent Complete (100% → 0%)
awesome build from master becf3d51.

Memory leaks wasn't fixed - RSS=36476 now after 9 days.

Crash not repruduced for now, but windows layouts didn't handles by awesome already - window opens with native size and not respects layout for tag.

So I think this bugs with lua stack isn't fully fixed.
Comment by Nikolaj Sjujskij (krigstask) - Thursday, 04 March 2010, 14:12 GMT
Crash reproduced again on 3.4.4
Comment by Uli Schlachter (psychon) - Thursday, 04 March 2010, 14:32 GMT
What did you do? Why? :(

So with high uptime, this does still happen? And it happens as soon as before?
Comment by Nikolaj Sjujskij (krigstask) - Sunday, 07 March 2010, 23:29 GMT
There is no certain cause, so I cannot provide a testcase, sorry )-:E

In general, all goes like in previous versions. Three or four times a day awesome just restarts (and loses all manual adjustments to (custom) rc.lua configuration )-:E
I cannot say this happens less frequently in 3.4.4 — may be, but I haven't noticed it.
Comment by Nikolaj Sjujskij (krigstask) - Thursday, 13 May 2010, 12:12 GMT
Restarted again, in 3.4.5 )-:E
Comment by Uli Schlachter (psychon) - Thursday, 05 August 2010, 13:27 GMT
Since  FS#729  seems to be fixed, is anyone still seeing this with a recent git version? (Something younger than two days)

Loading...