Bug#601858: libm17n-0: NULL pointer dereference in mlocale__init()

2010-11-05 Thread Harshula
Hi Stepan,

Would you be able to test this patch provided by upstream?:
http://cvs.m17n.org/viewcvs/m17n/m17n-lib/src/locale.c?r1=1.12r2=1.13

Thanks,
#




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#601858: libm17n-0: NULL pointer dereference in mlocale__init()

2010-11-05 Thread Stepan Golosunov
05.11.2010 в 23:10:10 +1100 Harshula написал(а):
 Hi Stepan,
 
 Would you be able to test this patch provided by upstream?:
 http://cvs.m17n.org/viewcvs/m17n/m17n-lib/src/locale.c?r1=1.12r2=1.13

With this patch vlc no longer crashes and is able to use m17n-ru-kbd
input method via uim-qt when configured to do so.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#601858: libm17n-0: NULL pointer dereference in mlocale__init()

2010-11-04 Thread Harshula
Hi Stepan,

On Sat, 2010-10-30 at 16:25 +0500, Stepan Golosunov wrote:

 vlc 1.1.3-1 segfaults when it tries to display message saying that
 file supplied in command line does not exist. This happens when plugin
 from uim-qt 1:1.5.7-9+b1 tries to initialize m17nlib.
 
 mlocale_set() call returns NULL, while code in mlocale_init() doesn't
 expect it despite mlocale_set()'s documentation saying NULL can be
 returned.
 
 And mlocale_set() returns NULL because setlocale (LC_CTYPE, name) call
 in make_locale() returns NULL, probably because vlc is multithreaded.
 (Changing locale in one thread of a multithreaded application does not
 sound good.)

Thanks for the detailed bug report, I've forwarded it to upstream and
they are working on a fix.

cya,
#




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#601858: libm17n-0: NULL pointer dereference in mlocale__init()

2010-10-30 Thread Stepan Golosunov
Package: libm17n-0
Version: 1.6.1-1

vlc 1.1.3-1 segfaults when it tries to display message saying that
file supplied in command line does not exist. This happens when plugin
from uim-qt 1:1.5.7-9+b1 tries to initialize m17nlib.

mlocale_set() call returns NULL, while code in mlocale_init() doesn't
expect it despite mlocale_set()'s documentation saying NULL can be
returned.

And mlocale_set() returns NULL because setlocale (LC_CTYPE, name) call
in make_locale() returns NULL, probably because vlc is multithreaded.
(Changing locale in one thread of a multithreaded application does not
sound good.)


% LANG=C gdb vlc
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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/vlc...(no debugging symbols found)...done.
(gdb) run adsfasdfasdfasdf
Starting program: /usr/bin/vlc adsfasdfasdfasdf
[Thread debugging using libthread_db enabled]
VLC media player 1.1.3 The Luggage (revision exported)
Blocked: call to unsetenv(DBUS_ACTIVATION_ADDRESS)
Blocked: call to unsetenv(DBUS_ACTIVATION_BUS_TYPE)
Warning: call to signal(13, 0x1)
[New Thread 0xf7bb1b70 (LWP 4191)]
[New Thread 0xf79ffb70 (LWP 4192)]
[Thread 0xf79ffb70 (LWP 4192) exited]
[New Thread 0xf797eb70 (LWP 4194)]
[0x804b0d4] main libvlc: Running vlc with the default interface. Use 'cvlc' to 
use vlc without interface.
[New Thread 0xf79ffb70 (LWP 4195)]
Blocked: call to setlocale(6, )
Blocked: call to sigaction(17, 0xf79ff0d4, 0xf79ff048)
Blocked: call to setlocale(6, )
Warning: call to signal(13, 0x1)
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
[New Thread 0xf3cd7b70 (LWP 4196)]
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Can't stat /home/stepan/adsfasdfasdfasdf
No such file or directory
libdvdnav: vm: failed to open/read the DVD
[0x8335e2c] filesystem access error: cannot open file 
/home/stepan/adsfasdfasdfasdf (No such file or directory)
[0xf7a00fbc] main input error: open of `file:///home/stepan/adsfasdfasdfasdf' 
failed: (null)
[Thread 0xf3cd7b70 (LWP 4196) exited]
Warning: call to rand()
Warning: call to rand()
Blocked: call to setlocale(6, )
Blocked: call to setlocale(0, C)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf79ffb70 (LWP 4195)]
mlocale__init () at locale.c:283
283   locale.c: No such file or directory.
  in locale.c
(gdb) bt
#0  mlocale__init () at locale.c:283
#1  0xf387ef05 in m17n_init () at m17n.c:71
#2  0xf3d4c409 in init_m17nlib () at m17nlib.c:188
#3  0xf3c12ab3 in call (proc=value optimized out, args=30, 
eval_state=0xf79fc6b4, need_eval=SCM_VALTYPE_NEED_EVAL)
at ../sigscheme/src/eval.c:413
#4  0xf3c12d69 in scm_eval (obj=value optimized out, env=value optimized 
out) at ../sigscheme/src/eval.c:499
#5  0xf3c1a6fd in scm_load_internal (filename=0x83b98b8 
/usr/share/uim/m17nlib.scm) at ../sigscheme/src/load.c:216
#6  0xf39129bf in GCROOTS_call_with_gc_ready_stack () from 
/usr/lib/libgcroots.so.0
#7  0xf3c10fe7 in scm_call_with_gc_ready_stack (filename=138133844) at 
../sigscheme/src/storage-gc.c:376
#8  scm_load (filename=138133844) at ../sigscheme/src/load.c:182
#9  scm_require_internal (filename=138133844) at 
../sigscheme/src/module-sscm-ext.c:229
#10 scm_p_require (filename=138133844) at ../sigscheme/src/module-sscm-ext.c:245
#11 0xf3c12aa8 in call (proc=value optimized out, args=30, 
eval_state=0xf79fc914, need_eval=SCM_VALTYPE_AS_IS)
at ../sigscheme/src/eval.c:415
#12 0xf3c12a63 in call (proc=value optimized out, args=30, 
eval_state=0xf79fc914, need_eval=SCM_VALTYPE_NEED_EVAL)
at ../sigscheme/src/eval.c:424
#13 0xf3c12d69 in scm_eval (obj=value optimized out, env=value optimized 
out) at ../sigscheme/src/eval.c:499
#14 0xf3c150af in guard_body (eval_state=0xf79fca14) at 
../sigscheme/src/module-srfi34.c:446
#15 0xf3c12aa8 in call (proc=value optimized out, args=30, 
eval_state=0xf79fca14, need_eval=SCM_VALTYPE_NEED_EVAL)
at ../sigscheme/src/eval.c:415
#16 0xf3c12d69 in scm_eval (obj=value optimized out, env=value optimized 
out) at ../sigscheme/src/eval.c:499
#17 0xf3c13817 in scm_call (proc=value optimized out, args=value optimized 
out) at ../sigscheme/src/eval.c:94
#18 0xf3c1396f in scm_dynamic_wind (before=138133426, thunk=138133474, 
after=138133386)
at ../sigscheme/src/continuation.c:215
#19 0xf3c12a98 in call (proc=value optimized out, args=30, 
eval_state=0xf79fcb34, need_eval=SCM_VALTYPE_NEED_EVAL)
at ../sigscheme/src/eval.c:417
#20 0xf3c12d69 in scm_eval (obj=value optimized out, env=value optimized 
out) at ../sigscheme/src/eval.c:499