[Bug 829051] Re: paprefs cannot configure pulseaudio network settings

2011-10-26 Thread mankyd
Still a bug as of today. Comment #7 fixes it:
https://bugs.launchpad.net/ubuntu/+source/paprefs/+bug/829051/comments/7

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/829051

Title:
  paprefs cannot configure pulseaudio network settings

To manage notifications about this bug go to:
https://bugs.launchpad.net/pulseaudio/+bug/829051/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 726257] [NEW] unittest does not detect TestSuite's properly

2011-02-27 Thread mankyd
Public bug reported:

Binary package hint: python2.6

The following condition, on line 595 of unittest.py does not function
correctly:

elif isinstance(obj, TestSuite):

For whatever reason, when obj is in fact an instnance of a TestSuite
object, it is not detected as such. Worth noting - I have tested this
with the Ubuntu supplied python2.7 and the problem goes away. Here is a
simple test case:

#mytest.py
import unittest

class BasicTests(unittest.TestCase):
def runTest(self):
self.assertTrue(True)

suite = unittest.TestSuite()
suite.addTests([BasicTests()])


Run the above code from the command line:
 python -m unittest mytest.suite

You get an error like the following:

Traceback (most recent call last):
  File /usr/lib/python2.6/runpy.py, line 122, in _run_module_as_main
__main__, fname, loader, pkg_name)
  File /usr/lib/python2.6/runpy.py, line 34, in _run_code
exec code in run_globals
  File /usr/lib/python2.6/unittest.py, line 875, in module
main(module=None)
  File /usr/lib/python2.6/unittest.py, line 816, in __init__
self.parseArgs(argv)
  File /usr/lib/python2.6/unittest.py, line 843, in parseArgs
self.createTests()
  File /usr/lib/python2.6/unittest.py, line 849, in createTests
self.module)
  File /usr/lib/python2.6/unittest.py, line 613, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
  File /usr/lib/python2.6/unittest.py, line 598, in loadTestsFromName
test = obj()
  File /usr/lib/python2.6/unittest.py, line 464, in __call__
return self.run(*args, **kwds)
TypeError: run() takes exactly 2 arguments (1 given)

This is happening because the condition is failing, so execution is
falling through to the final else block, where it tries to execute the
TestSuite as a function:

elif isinstance(obj, TestSuite):
return obj
elif hasattr(obj, '__call__'):
test = obj() #EXCEPTION RAISED HERE

** Affects: python2.6 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/726257

Title:
  unittest does not detect TestSuite's properly

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 272348] Re: xml file with embedded stylesheet reports unknow error: 805303f4

2009-06-15 Thread mankyd
Just wanted to repor that this still affects 3.5b4pre

-- 
xml file with embedded stylesheet reports unknow error: 805303f4
https://bugs.launchpad.net/bugs/272348
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 339331] Re: JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)

2009-03-09 Thread mankyd
Originally, I simply used:
gcc -I/usr/include/mozjs -g -DXP_UNIX test.c -lmozjs -o test

Using your more detailed command yields the same segfault, however.

It's worth noting that I am using 8.04 as 8.10 doesn't work on my
laptop. If it's of interest the md5 of of libmozjs.so is
2898019a2c9ac8c6d374a171ebe31411.

In gdb, I believe I've tracked down the problem to a a mistaken struct
size for JSFunctionSpec. In JS_DefineFunctions, they have this code:

JS_PUBLIC_API(JSBool)
JS_DefineFunctions(JSContext *cx, JSObject *obj, JSFunctionSpec *fs)
{
//...
for (; fs-name; fs++) {
//...
fun = JS_DefineFunction(cx, obj, fs-name, fs-call, fs-nargs, flags);
//...
}
//...
}

JS_DefineFunction makes a call to strlen(fs-name), which segfaults on
the second loop through. With the code that I provided, it tries to call
strlen(0x01). Specifically, its trying to call strlen() on the value of
JSFunctionSpec-extra from the element in the fs array before the
current one. I've tested this by changing the value of extra and
monitoring what it calls strlen() on.

When I copied the above code into my test program, I get no segfault.
sizeof(JSFunctionSpec) returns 16 bytes. It seems that the library that
was installed through the package manager thinks its a different value.

-- 
JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)
https://bugs.launchpad.net/bugs/339331
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 339331] Re: JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)

2009-03-08 Thread mankyd
I may be incorrect about this, but I believe xulrunner contains the
libmozjs library that comes with Ubuntu. The libmozjs library contains
the bug. When I recompiled spidermonkey from code I found on the mozilla
website, into a library called libjs, the the segfault in my code
resulting from JS_DefineFunctions goes away.

-- 
JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)
https://bugs.launchpad.net/bugs/339331
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 339331] [NEW] JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)

2009-03-07 Thread mankyd
Public bug reported:

Calls to JS_DefineFunctions do not work in 32bit builds, sometimes
leading to segmentation faults. Here is a sample backtrace from gdb
(when it segfaulted):

#0  0x4011c25b in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0x4082dd98 in JS_DefineFunction (cx=0x81f1eb0, obj=0x81f5830, name=0x1 
Address 0x1 out of bounds, 
call=0x4082ee20 js_generic_native_method_dispatcher, nargs=99, attrs=211) 
at jsapi.c:3738
#2  0x4082ebb7 in JS_DefineFunctions (cx=0x81f1eb0, obj=0x81f5938, 
fs=0x4093852c) at jsapi.c:3708
#3  0x4092fb44 in MY_InitFunctions (cx=0x81f1eb0) at core.c:1081

Some more investigation has show that JS_DefineFunctions loops over the
array that it is passed and calls JS_DefineFunction. The first call to
JS_DefineFunction works just fine. It is the second call where the
problem occurs.

Specifically, it appears to be a bug in the way the JSFunctionSpec is
defined
(https://developer.mozilla.org/En/SpiderMonkey/JSAPI_Reference/JSFunctionSpec)

When the following JSFunctionSpec is used, you get a segfault on the
32bit build (but not on the 64bit build):

static JSFunctionSpec global_funcs[] = {
{a, TestFunc, 1, 0, 1},
{b, TestFunc, 1, 0, 1},
{NULL,NULL,0,0,0}
};

I have attached a small sample program the demonstrates this bug. It can be 
compiled with the following comand:
gcc -I/usr/include/mozjs -g -DXP_UNIX test.c -lmozjs -o test

** Affects: xulrunner-1.9 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)
https://bugs.launchpad.net/bugs/339331
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 339331] Re: JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)

2009-03-07 Thread mankyd

** Attachment added: Small Program Demonstrating SegFault from 
JS_DefinFunctions in libmozjs
   http://launchpadlibrarian.net/23589605/test.c

-- 
JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)
https://bugs.launchpad.net/bugs/339331
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 339331] Re: JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)

2009-03-07 Thread mankyd
Note: I have compiled SpiderMonkey from source and installed it as a
separate library. This fixed the problem, so something is definitely
wrong with the binary being distributed with thsi package.

-- 
JS_DefineFunctions Does Not Work in 32bit Build (SegFaults)
https://bugs.launchpad.net/bugs/339331
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320932] [NEW] jskeyword.tbl not included in libmozjs-dev

2009-01-24 Thread mankyd
Public bug reported:

Binary package hint: libmozjs-dev

The header files included with libmozjs-dev (i.e. jsapi.h) do not
include jskeyword.tbl. It is included from jsparse.h:

http://hg.mozilla.org/mozilla-
central/file/e919f0c1dfa9/js/src/jskeyword.tbl

This file isn't needed specifically for the distribution of spidermonkey
that comes with Ubuntu (at least I don't think it is,) but is be needed
by some developers when they write their own applications.

For instance, I am working on building SpiderMonkey's File object into
my own project - an object that can optionally come with spidermonkey
but is generally not included. To do this, I had to define compile time
flags with cause jskeyword.tbl to be included from from inside of
jsparse.h:

  #define JS_KEYWORD(keyword, type, op, version) \
  extern const char js_##keyword##_str[];
  #include jskeyword.tbl
  #undef JS_KEYWORD

This fails since jskeyword.tbl is not included in the package as it
should be.

** Affects: xulrunner (Ubuntu)
 Importance: Undecided
 Status: New

-- 
jskeyword.tbl not included in libmozjs-dev
https://bugs.launchpad.net/bugs/320932
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 246099] Re: Screen corruption while scrolling gnome-system-monitor process list

2009-01-19 Thread mankyd
Can we reopen this bug? It is still an issue for me (has been for
awhile.) It happens in a variety of programs (Firefox mostly.) It
happens after I have had the system running for a long while (on the
order of a few days.)

nvidia driver 177.82 on a 8300GS.

Interestingly enough, it has never happened on my computer at home - a
6600GT

I can provide whatever other information might be useful.

-- 
Screen corruption while scrolling gnome-system-monitor process list
https://bugs.launchpad.net/bugs/246099
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs