Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-30 Thread Carmelo C
I tried to reinstall the following packages:

libreoffice-java-common (1:5.2.7-1)
openjdk-8-jre (8u141-b15-1~deb9u1)
openjdk-8-jre-headless (8u141-b15-1~deb9u1)

But nothing, it does not work :-(

I had to disable the "Use a Java Runtime Environment" option to run
LibreOffice Writer

LibreOffice > Preferences > LibreOffice > Advanced, “Use a Java Runtime
Environment”


Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread benoit-petit-1
Hi everybody

I have encountered the same concern on 32bit stretch and this one is solved by 
an uninstall and a new installation via synapic.

I noticed, somewhat by chance, that it is the freeoffice-gtk3 package that is 
problematic.

Installed, writer does not launch, but uninstalled, with synaptic or command 
line, writer launches.
It's up to you to play.

Best regards

Benoît

Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Rene Engelhard
tag 870070 - moreinfo
reassign 870070 src:linux
forcemerge 865303 870070
thanks

Hi,

On Sat, Jul 29, 2017 at 07:14:04PM +0200, Carmelo C wrote:
>"gdb --args /usr/lib/libreoffice/program/soffice.bin --writer"
>"run"
>"bt full"

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault. 


0xa969df95 in _expand_stack_to(unsigned char*) () from 
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so  
 
(gdb) bt full   


#0  0xa969df95 in _expand_stack_to(unsigned char*) () from 
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so  
 
No symbol table info available. 


#1  0xa96a07a4 in os::Linux::manually_expand_stack(JavaThread*, unsigned char*) 
()  

   from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so  


No symbol table info available.
[...]

There we go. It's that bug.

Somewhere in the kernel bugs is the boot command line to disable the security 
fix
as a workaround. Or install the original stretch (-2) kernel.

Reassigning to the kernel. Next time please check whether a bug already is 
reported.

You also might want to try running amd64 instead of an architecture already 
quite dead
in the last decade.

Regards,

Rene



Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Carmelo C
I apologize for mistaken publishing the bug with incorrect "Severity" and
"Tags"

I have installed the following packages from:
deb http://debug.mirrors.debian.org/debian-debug/ stretch-debug main

gdb (7.12-6)
libbabeltrace-ctf1 (1.5.1-1)
libbabeltrace1 (1.5.1-1)
libc6-dbg (2.24-11+deb9u1)
libdw1 (0.168-1)
libreoffice-writer-dbgsym (1:5.2.7-1)
libreoffice-base-core-dbgsym (1:5.2.7-1)
libreoffice-base-dbgsym (1:5.2.7-1)


And I executed the command:

"gdb --args /usr/lib/libreoffice/program/soffice.bin --writer"
"run"
"bt full"
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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 "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/libreoffice/program/soffice.bin...(no debugging 
symbols found)...done.
(gdb) run
Starting program: /usr/lib/libreoffice/program/soffice.bin --writer
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xafadfb40 (LWP 10652)]
[New Thread 0xae8edb40 (LWP 10654)]
[New Thread 0xadeffb40 (LWP 10655)]
[New Thread 0xad3aeb40 (LWP 10656)]
[New Thread 0xacbadb40 (LWP 10657)]
[New Thread 0xabf75b40 (LWP 10658)]
[New Thread 0xab759b40 (LWP 10659)]
Traceback (most recent call last):
  File 
"/usr/share/gdb/auto-load/usr/lib/libreoffice/program/libswlo.so-gdb.py", line 
23, in 
module=importlib.import_module("libreoffice."+mod)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 673, in exec_module
  File "", line 222, in _call_with_frames_removed
  File "/usr/share/libreoffice/gdb/libreoffice/sw.py", line 11, in 
from libreoffice.util import printing
ImportError: No module named 'libreoffice.util'
[Thread 0xae8edb40 (LWP 10654) exited]

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0xa969df95 in _expand_stack_to(unsigned char*) () from 
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
(gdb) bt full
#0  0xa969df95 in _expand_stack_to(unsigned char*) () from 
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#1  0xa96a07a4 in os::Linux::manually_expand_stack(JavaThread*, unsigned char*) 
()
   from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#2  0xa96aace8 in os::create_main_thread(JavaThread*) () from 
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#3  0xa97ed69e in Threads::create_vm(JavaVMInitArgs*, bool*) ()
   from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#4  0xa9498f45 in JNI_CreateJavaVM () from 
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#5  0xb23399a1 in ?? () from /usr/lib/libreoffice/program/libjvmfwklo.so
No symbol table info available.
#6  0xb234bbf4 in jfw_startVM(JavaInfo const*, JavaVMOption*, long, JavaVM_**, 
JNIEnv_**) ()
   from /usr/lib/libreoffice/program/libjvmfwklo.so
No symbol table info available.
#7  0xa9ec711a in ?? () from /usr/lib/libreoffice/program/libjavavmlo.so
No symbol table info available.
#8  0xac302933 in ?? () from /usr/lib/libreoffice/program/libjavaloaderlo.so
No symbol table info available.
#9  0xac3047ef in ?? () from /usr/lib/libreoffice/program/libjavaloaderlo.so
No symbol table info available.
#10 0xb23ce058 in ?? () from 
/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#11 0xb23d0274 in ?? () from 
/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#12 0xb23d03a5 in ?? () from 
/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#13 0xb23cbf87 in ?? () from 
/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
No symbol table info available.
#14 0xb4ffde35 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
No symbol table info available.
#15 0xb50007ca in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
---Type  to continue, or q  to quit---
No symbol table info available.
#16 0xb50023c9 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so

Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Rene Engelhard
Hi,

On Sat, Jul 29, 2017 at 03:23:46PM +0200, Rene Engelhard wrote:
> https://lwn.net/Articles/727206/
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865303
> and "friends" merged to it.
> https://lwn.net/Articles/727703/ (ttbok unforunatel subscriber-only by now.)

Ah, no, it's public now.

> Outstanding bugs -- Grave functionality bugs; More information needed (1 bug)
> 
> #865303 [G|MRu|=☣] [src:linux] libreoffice: Libreoffice Java features crash 
> with Linux 3.16.43-2+deb8u1
> 
> and friends are visible in bugs.debian.org/libreoffice-writer

BTW, if you installed "libreoffice" you _do_ get Java based components
installed which might be initialized at startup in writer (e.g.
-wiki-publisher) or at any other time one of these is needed, thus you maybe
even don't know you use Java features, but still.

Regards,
 
Rene



Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Rene Engelhard
On Sat, Jul 29, 2017 at 02:29:38PM +0200, Carmelo C wrote:
>Attached...

Useless, afaics. libreoffice is a shell script which runs an other shell script
(soffice) which runs the real office. You always need -f to strace here.

Anyway, as said in my initial reply: gdb backtrace please:

https://wiki.documentfoundation.org/QA/BugReport/Debug_Information

Regards,

Rene



Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Rene Engelhard
severity 870070 grave
tag 870070 - security
tag 870070 + moreinfo
thanks

Hi,

On Sat, Jul 29, 2017 at 02:19:04PM +0200, Carmelo C wrote:
>Package: libreoffice-writer
>Version: 1:5.2.7-1
>Severity: critical

No? How does it break your whole system?

See https://www.debian.org/Bugs/Developer.en.html#severities

>Tags: security

No? Why? (Well, it got broken by the kernel security update I believey,
es, but still.)

>Justification: LibreOffice Writer crashes at startup

Yes, and? That would be grave.

>OS: Debian GNU/Linux 9.1 (stretch) (debian-9.1.0-i386-netinst.iso)

Aha. Why on earth do people still install i386?

I *believe* you ran into

https://lwn.net/Articles/727206/
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865303
and "friends" merged to it.
https://lwn.net/Articles/727703/ (ttbok unforunatel subscriber-only by now.)

You wouldn't have this problem if you used amd64...

And you obviously didn't even dare to look whether the bug already was
reported:

Outstanding bugs -- Grave functionality bugs; More information needed (1 bug)

#865303 [G|MRu|=☣] [src:linux] libreoffice: Libreoffice Java features crash 
with Linux 3.16.43-2+deb8u1

and friends are visible in bugs.debian.org/libreoffice-writer

>Attached the output of the command:
>strace -o libreoffice_writer_output.txt -tt libreoffice --writer

No, there isn't. (And a gdb bt would be better anyways).

Regards,

Rene



Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Carmelo C
Attached...
13:27:16.054098 execve("/usr/bin/libreoffice", ["libreoffice", "--writer"], [/* 
41 vars */]) = 0
13:27:16.055107 brk(NULL)   = 0x80fa5000
13:27:16.055282 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or 
directory)
13:27:16.055420 mmap2(NULL, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb770a000
13:27:16.055564 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)
13:27:16.055695 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
13:27:16.055826 fstat64(3, {st_mode=S_IFREG|0644, st_size=87475, ...}) = 0
13:27:16.055946 mmap2(NULL, 87475, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76f4000
13:27:16.056060 close(3)= 0
13:27:16.056181 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or 
directory)
13:27:16.056329 open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
13:27:16.056460 read(3, 
"\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\203\1\0004\0\0\0"..., 512) 
= 512
13:27:16.056584 fstat64(3, {st_mode=S_IFREG|0755, st_size=1791908, ...}) = 0
13:27:16.056704 mmap2(NULL, 1800732, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb753c000
13:27:16.056821 mprotect(0xb76ed000, 4096, PROT_NONE) = 0
13:27:16.056939 mmap2(0xb76ee000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b1000) = 0xb76ee000
13:27:16.057089 mmap2(0xb76f1000, 10780, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb76f1000
13:27:16.057233 close(3)= 0
13:27:16.057400 set_thread_area({entry_number:-1, base_addr:0xb770c840, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0 (entry_number:6)
13:27:16.058501 mprotect(0xb76ee000, 8192, PROT_READ) = 0
13:27:16.058731 mprotect(0x8005a000, 4096, PROT_READ) = 0
13:27:16.058877 mprotect(0xb7734000, 4096, PROT_READ) = 0
13:27:16.058995 munmap(0xb76f4000, 87475) = 0
13:27:16.059104 getpid()= 32582
13:27:16.059150 rt_sigaction(SIGCHLD, {sa_handler=0x8004ca30, sa_mask=~[RTMIN 
RT_1], sa_flags=0}, NULL, 8) = 0
13:27:16.059200 geteuid32() = 1000
13:27:16.059285 brk(NULL)   = 0x80fa5000
13:27:16.059321 brk(0x80fc6000) = 0x80fc6000
13:27:16.059397 getppid()   = 32580
13:27:16.059435 stat64("/home/carmelo", {st_mode=S_IFDIR|0755, st_size=4096, 
...}) = 0
13:27:16.059486 stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
13:27:16.059534 open("/usr/bin/libreoffice", O_RDONLY) = 3
13:27:16.059584 fcntl64(3, F_DUPFD, 10) = 10
13:27:16.059622 close(3)= 0
13:27:16.059658 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
13:27:16.059695 rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], 
sa_flags=0}, 8) = 0
13:27:16.059736 rt_sigaction(SIGINT, {sa_handler=0x8004ca30, sa_mask=~[RTMIN 
RT_1], sa_flags=0}, NULL, 8) = 0
13:27:16.059778 rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], 
sa_flags=0}, 8) = 0
13:27:16.059818 rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=~[RTMIN 
RT_1], sa_flags=0}, NULL, 8) = 0
13:27:16.059858 rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], 
sa_flags=0}, 8) = 0
13:27:16.059898 rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=~[RTMIN 
RT_1], sa_flags=0}, NULL, 8) = 0
13:27:16.059939 read(10, "#!/bin/sh\n#\n# This file is part "..., 8192) = 5875
13:27:16.060031 pipe([3, 4])= 0
13:27:16.060079 clone(child_stack=NULL, 
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb770c8a8) 
= 32583
13:27:16.060184 close(4)= 0
13:27:16.060227 read(3, "/home/carmelo\n", 128) = 14
13:27:16.060380 read(3, "", 128)= 0
13:27:16.060475 close(3)= 0
13:27:16.060513 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 
32583
13:27:16.060574 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, 
si_pid=32583, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
13:27:16.060603 sigreturn({mask=[]})= 32583
13:27:16.060676 lstat64("/usr/bin/libreoffice", {st_mode=S_IFLNK|0777, 
st_size=34, ...}) = 0
13:27:16.060731 pipe([3, 4])= 0
13:27:16.060787 clone(child_stack=NULL, 
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb770c8a8) 
= 32584
13:27:16.060874 close(4)= 0
13:27:16.060915 read(3, "/usr/bin\n", 128) = 9
13:27:16.061525 read(3, "", 128)= 0
13:27:16.061578 close(3)= 0
13:27:16.061619 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 
32584
13:27:16.061747 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, 
si_pid=32584, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
13:27:16.061776 sigreturn({mask=[]})= 32584
13:27:16.061828 chdir("/usr/bin")   = 0
13:27:16.061878 pipe([3, 4])= 0
13:27:16.061923 clone(child_stack=NULL, 
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb770c8a8) 
= 32585
13:27:16.062015 close(4)= 0
13:27:16.062057 

Bug#870070: Debian 9.1 stretch: LibreOffice Writer crashes at startup

2017-07-29 Thread Carmelo C
Package: libreoffice-writer
Version: 1:5.2.7-1
Severity: critical
Tags: security
Justification: LibreOffice Writer crashes at startup

OS: Debian GNU/Linux 9.1 (stretch) (debian-9.1.0-i386-netinst.iso)

Other packages:
libreoffice-base 1:5.2.7-1
libreoffice-base-core 1:5.2.7-1
libreoffice-common 1:5.2.7-1
libreoffice-core 1:5.2.7-1

Hi, libreoffice writer does not start, problem persists only in writer,
calc and impress start correctly with exit code 0

I tried to reinstall the libreoffice-writer package from synaptic and
remove the "/home/carmelo/.config/libreoffice" folder but nothing, does not
start

Attached the output of the command:
strace -o libreoffice_writer_output.txt -tt libreoffice --writer