Re: xpdf crashes when going fullscreen

2016-08-26 Thread Christian Weisgerber
David Coppa:

> Can you please try the x11/motif diff below and report back?

The question isn't so much whether this fixes the xpdf problem, but
whether is breaks anything else.

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: xpdf crashes when going fullscreen

2016-08-26 Thread Jeremie Courreges-Anglas
David Coppa  writes:

> On Wed, 24 Aug 2016, Alessandro DE LAURENZIS wrote:
>
>> Dear misc@ readers,
>> 
>> just noticed that xpdf receives a bus error as soon as the fullscreen mode is
>> activated.  A gdb trace follows, hoping it gives some hints:
>> 
>> GNU gdb 6.3
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you are
>> welcome to change it and/or distribute copies of it under certain conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for details.
>> This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging 
>> symbols found)
>> 
>> (gdb) run
>> Starting program: /usr/local/bin/xpdf
>> 
>> Program received signal SIGBUS, Bus error.
>> 0x1693d3cabc78 in XtWindowOfObject () from /usr/X11R6/lib/libXt.so.11.0
>
> Next time, try harder. Google is your friend ;)
>
> Five minutes of googling lead me to this:
>
> https://bugs.launchpad.net/ubuntu/+source/ddd/+bug/1354961
>
> Can you please try the x11/motif diff below and report back?

ok jca@

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



Re: xpdf crashes when going fullscreen

2016-08-25 Thread Alessandro DE LAURENZIS
Hello David,

On Wed, 24 Aug 2016 10:22:26 +0200
David Coppa  wrote:
[...]
> Next time, try harder. Google is your friend ;)
> 
> Five minutes of googling lead me to this:
> 
> https://bugs.launchpad.net/ubuntu/+source/ddd/+bug/1354961
> 
> Can you please try the x11/motif diff below and report back?

sorry for delay; yes, I confirm that this patch solves the issue.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: xpdf crashes when going fullscreen

2016-08-24 Thread David Coppa
On Wed, 24 Aug 2016, Alessandro DE LAURENZIS wrote:

> Dear misc@ readers,
> 
> just noticed that xpdf receives a bus error as soon as the fullscreen mode is
> activated.  A gdb trace follows, hoping it gives some hints:
> 
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging symbols 
> found)
> 
> (gdb) run
> Starting program: /usr/local/bin/xpdf
> 
> Program received signal SIGBUS, Bus error.
> 0x1693d3cabc78 in XtWindowOfObject () from /usr/X11R6/lib/libXt.so.11.0

Next time, try harder. Google is your friend ;)

Five minutes of googling lead me to this:

https://bugs.launchpad.net/ubuntu/+source/ddd/+bug/1354961

Can you please try the x11/motif diff below and report back?

Ciao!
David

Index: Makefile
===
RCS file: /cvs/ports/x11/motif/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile3 Aug 2016 18:55:49 -   1.2
+++ Makefile24 Aug 2016 08:21:36 -
@@ -4,6 +4,8 @@ COMMENT=Motif toolkit
 
 DISTNAME=  motif-2.3.6
 
+REVISION=  0
+
 SHARED_LIBS=   Mrm 4.1 \
Uil 5.0 \
Xm  6.1
Index: patches/patch-lib_Xm_XmI_h
===
RCS file: patches/patch-lib_Xm_XmI_h
diff -N patches/patch-lib_Xm_XmI_h
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-lib_Xm_XmI_h  24 Aug 2016 08:21:36 -
@@ -0,0 +1,26 @@
+$OpenBSD$
+
+Description: Disable fix for upstream bug #1565
+
+This patch reverts the changes introduced by upstream's fix for
+upstream bug #1565 and causes pop menus and keyboard navigation in
+menus to revert to their Motif 2.3.3 behaviour.
+
+Upstream's original fix broke keyboard navigation in menus (#730026)
+and upstream's updated fix (applied in motif 2.3.4-5) caused segfaults
+in ddd and xpdf (#781995).
+
+Author: Graham Inggs 
+Bug: http://bugs.motifzone.net/show_bug.cgi?id=1565
+Bug-Debian: https://bugs.debian.org/781995
+
+--- lib/Xm/XmI.h.orig  Sat Jun 11 01:52:23 2016
 lib/Xm/XmI.h   Wed Aug 24 10:04:23 2016
+@@ -294,7 +294,6 @@ extern Pixel _XmAssignInsensitiveColor(Widget w);
+ #define FIX_1501
+ #define FIX_1521
+ #define FIX_1505
+-#define FIX_1565
+ 
+ #endif /* _XmI_h */
+ /* DON'T ADD ANYTHING AFTER THIS #endif */



Re: xpdf crashes when going fullscreen

2016-08-24 Thread patrick keshishian
On 8/24/16, Karel Gardas  wrote:
> Please also type `bt' and hit enter after run in gdb -- this will
> instruct gdb to print whole stack trace which may show how you get
> into the crash situation or at least help a little bit more.

Also, OP might consider contacting xpdf's author: Derek B. Noonburg[0].
He was very responsive on the one occasion I contacted him about
xpdf's performance[1].

--patrick

[0] contact info over here: http://www.foolabs.com/xpdf/home.html
[1] http://marc.info/?l=openbsd-ports&m=140056429615423&w=2


> On Wed, Aug 24, 2016 at 7:30 AM, Alessandro DE LAURENZIS
>  wrote:
>> Dear misc@ readers,
>>
>> just noticed that xpdf receives a bus error as soon as the fullscreen mode
>> is
>> activated.  A gdb trace follows, hoping it gives some hints:
>>
>> GNU gdb 6.3
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are
>> welcome to change it and/or distribute copies of it under certain
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for
>> details.
>> This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging
>> symbols found)
>>
>> (gdb) run
>> Starting program: /usr/local/bin/xpdf
>>
>> Program received signal SIGBUS, Bus error.
>> 0x1693d3cabc78 in XtWindowOfObject () from
>> /usr/X11R6/lib/libXt.so.11.0
>>
>> --
>> Alessandro DE LAURENZIS
>> [mailto:jus...@atlantide.t28.net]
>> LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: xpdf crashes when going fullscreen

2016-08-24 Thread Karel Gardas
Please also type `bt' and hit enter after run in gdb -- this will
instruct gdb to print whole stack trace which may show how you get
into the crash situation or at least help a little bit more.

On Wed, Aug 24, 2016 at 7:30 AM, Alessandro DE LAURENZIS
 wrote:
> Dear misc@ readers,
>
> just noticed that xpdf receives a bus error as soon as the fullscreen mode is
> activated.  A gdb trace follows, hoping it gives some hints:
>
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging symbols 
> found)
>
> (gdb) run
> Starting program: /usr/local/bin/xpdf
>
> Program received signal SIGBUS, Bus error.
> 0x1693d3cabc78 in XtWindowOfObject () from /usr/X11R6/lib/libXt.so.11.0
>
> --
> Alessandro DE LAURENZIS
> [mailto:jus...@atlantide.t28.net]
> LinkedIn: http://it.linkedin.com/in/delaurenzis



xpdf crashes when going fullscreen

2016-08-23 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

just noticed that xpdf receives a bus error as soon as the fullscreen mode is
activated.  A gdb trace follows, hoping it gives some hints:

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging symbols 
found)

(gdb) run
Starting program: /usr/local/bin/xpdf

Program received signal SIGBUS, Bus error.
0x1693d3cabc78 in XtWindowOfObject () from /usr/X11R6/lib/libXt.so.11.0

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis