[dev] [bug] wmii segfaults on sudo wireshark

2011-01-14 Thread dtk
Hey guys,

my wmii with rumai segfaults when I run wireshark as root.

{{{
dtk@minibox:~$ cat /var/log/messages | grep wmii
Jan 14 13:34:01 minibox kernel: [86625.789143] wmii[6130]: segfault at
2d ip 08058d77 sp bfda9060 error 4 in wmii[8048000+24000]
Jan 14 13:35:29 minibox kernel: [86714.311593] wmii[19362]: segfault at
2d ip 08058d77 sp bfdb9850 error 4 in wmii[8048000+24000]
Jan 14 13:46:21 minibox kernel: [87366.573345] wmii[20849]: segfault at
2d ip 08058d77 sp bf84add0 error 4 in wmii[8048000+24000]
Jan 14 14:18:08 minibox kernel: [  495.065986] wmii[1738]: segfault at
2d ip 08058d77 sp bfa7c050 error 4 in wmii[8048000+24000]
dtk@minibox:~$ uname -a
Linux minibox 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC
2010 i686 GNU/Linux
dtk@minibox:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 10.04.1 LTS
Release:10.04
Codename:   lucid
dtk@minibox:~$ aptitude show wmii | head
Package: wmii
State: installed
Automatically installed: no
Version: 3.9.2~lucid
Priority: optional
Section: x11
Maintainer: Kris Maglione 
Uncompressed Size: 922k
Depends: libc6 (>= 2.11), libx11-6 (>= 0), libxext6 (>= 0), libxft2 (>
2.1.1),
 libxinerama1, libxrandr2 (>= 0), libxrender1
dtk@minibox:~$
}}}

Running wireshark as my default non-priviledged user works fine, as does
running wireshark as root under awesome/gnome.

The wireshark splash displays nicely, showing the modules being loaded,
and I can glance the error dialog stating that some lua functionality
has been disabled, due to being run as root, before wmii crashes, gdm
reloads and prompts me with the user selection to log me in again.

Can anybody confirm this behaviour?

tia
dtk




Re: [dev] [bug] wmii segfaults on sudo wireshark

2011-01-14 Thread Marc Weber
Excerpts from dtk's message of Fri Jan 14 16:13:34 +0100 2011:
> Can anybody confirm this behaviour?

No. Maybe try sudo -E.
Putting wmii into a loop:
while :; do
  wmii
done
helps not loosing state somehow. Here it recovers tags etc.

Still using wmii-3.6, wireshark-1.4.2 (maybe without lua support. I
never tested it)

Marc Weber



Re: [dev] [bug] wmii segfaults on sudo wireshark

2011-01-14 Thread Kris Maglione

On Fri, Jan 14, 2011 at 04:13:34PM +0100, dtk wrote:

Running wireshark as my default non-priviledged user works fine, as does
running wireshark as root under awesome/gnome.

The wireshark splash displays nicely, showing the modules being loaded,
and I can glance the error dialog stating that some lua functionality
has been disabled, due to being run as root, before wmii crashes, gdm
reloads and prompts me with the user selection to log me in again.

Can anybody confirm this behaviour?


No. Can you perchance provide a backtrace?

Thanks,
--
Kris Maglione

If the lessons of history teach us anything it is that nobody learns
the lessons that history teaches us.