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

From: dtk <d.t.k_AT_gmx.de>
Date: Tue, 25 Jan 2011 22:25:55 +0100

Hej,

On 01/25/2011 03:20 PM, u_AT_netbeisser.de wrote:
> morrn,
>
> On Tue, Jan 25, 2011 at 12:42:22AM +0100, dtk wrote:
>> On 01/24/2011 10:44 PM, dtk wrote:
>>> On 01/23/2011 10:21 PM, Kris Maglione wrote:
>>>> On Sun, Jan 23, 2011 at 05:26:30PM +0100, dtk wrote:
>>>>> On 01/14/2011 04:52 PM, Kris Maglione wrote:
>>>>>> 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?
>>>>>
>>>>> Actually, I don't know how to (besides compiling from source), since the
>>>>> binary from the ubuntu package doesn't contain debug symbols :/
>>>>
>>>> Yes, compiling from source is the thing to do. I believe you can do
>>>> something like:
>>>>
>>>> DEB_BUILD_OPTIONS="nostrip" make deb
>>>>
>>> k, will try, but I don't know yet when I'll find the time to do so.
>> otoh: who needs to sleep anyway? -.-
>>
>> [stacktrace]
>> dtk_AT_minibox:/media/devel/wmii/deb/wmii-3.9.2~lucid$ gdb wmii
>> GNU gdb (GDB) 7.1-ubuntu
>> Copyright (C) 2010 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 "i486-linux-gnu".
>> For bug reporting instructions, please see:
>> <http://www.gnu.org/software/gdb/bugs/>...
>> Reading symbols from /usr/bin/wmii...done.
>> (gdb) run
>> Starting program: /usr/bin/wmii
>> /etc/X11/wmii/wmiirc: line 1: !/bin/dash: No such file or directory
>
> Could this be the problem?
Nope, I don't think so:

[snip]
dtk_AT_minibox:~$ aptitude search dash
i dash - POSIX-compliant shell
p dasher - A graphical predictive text input system
p dasher-data - Data files for dasher
dtk_AT_minibox:~$ dash
$ exit
dtk_AT_minibox:~$ which dash
/bin/dash
dtk_AT_minibox:~$ ll /bin/dash
-rwxr-xr-x 1 root root 82K 2010-04-01 21:22 /bin/dash*
[/snip]

>> /etc/X11/wmii/wmiirc: line 1: !/bin/dash: No such file or directory
yeah, that's rather a syntactical problem -.-

[snip]
dtk_AT_minibox:~$ head -n3 /etc/X11/wmii/wmiirc
!/bin/dash -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
dtk_AT_minibox:~$
[/snip]

The first line obviously is a broken shebang and should rather be
[code]
#!/bin/dash -f
[/code]
(don't know whether it's broken in die .deb or if I messed it up)

Fixing it doesn't make much of a difference though:
[snip]
dtk_AT_minibox:~$ gdb wmii
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/wmii...done.
(gdb) run
Starting program: /usr/bin/wmii

Program received signal SIGSEGV, Segmentation fault.
0x08058d77 in msg_selectarea (a=0x8092da8, m=0xbffff07c) at message.c:944
944 if(!ap || ap->floating)
(gdb)

[/snip]

thx anyway
dtk
Received on Tue Jan 25 2011 - 22:25:55 CET

This archive was generated by hypermail 2.2.0 : Tue Jan 25 2011 - 22:36:02 CET