bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #42782] Crash when loading a gorm file


From: Yavor Doganov
Subject: [bug #42782] Crash when loading a gorm file
Date: Fri, 25 Jul 2014 07:15:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Follow-up Comment #16, bug #42782 (project gnustep):

Now even older versions of Gorm open the file, but only if GUI is built with
--disable-imagemagick.  With --enable-imagemagick, Gorm crashes and with your
latest Gorm change shows an alert panel and doesn't open the file.  This
happens with any gorm file, not just Document.gorm.  I believe this is a
separate issue and related to the fact that all gorm files have .info files
inside them.

Vindaloo crashes at a later stage and the backtrace is much more palatable:

Program received signal SIGSEGV, Segmentation fault.
0x08049d24 in -[CenteringClipView constrainScrollPoint:] (self=0xbffff0b8, 
    _cmd=0x83960f8, proposedNewOrigin=...) at CenteringClipView.m:83
83         return newScrollPoint;
(gdb) bt
#0  0x08049d24 in -[CenteringClipView constrainScrollPoint:] (self=0xbffff0b8,

    _cmd=0x83960f8, proposedNewOrigin=...) at CenteringClipView.m:83
#1  0xb7ec5418 in _OBJC_SELECTOR_TABLE () from
/usr/lib/libgnustep-gui.so.0.24
#2  0xb7b69afb in -[NSClipView setFrame:] (self=0x83960f8, 
    _cmd=0x805c978 <_OBJC_SELECTOR_TABLE+888>, rect=...) at NSClipView.m:569
#3  0x08049efd in -[CenteringClipView setFrame:] (self=0x83960f8, 
    _cmd=0xb7f2b3a8 <_OBJC_SELECTOR_TABLE+1320>, aFrame=...)
    at CenteringClipView.m:100
#4  0xb7c2a8b7 in -[NSScrollView tile] (self=0x82f9b68, 
    _cmd=0xb7f2b220 <_OBJC_SELECTOR_TABLE+928>) at NSScrollView.m:1275
#5  0xb7c28275 in -[NSScrollView setContentView:] (self=0x82f9b68, 
    _cmd=0x805e318 <_OBJC_SELECTOR_TABLE+1432>, 
    aView=0xb7f2b220 <_OBJC_SELECTOR_TABLE+928>) at NSScrollView.m:278
#6  0x0804b31d in -[Controller(Private) _setupScrollView] (self=0x83778e0, 
    _cmd=0x805e0e8 <_OBJC_SELECTOR_TABLE+872>) at Controller.m:359
#7  0x0804a1cf in -[Controller windowDidLoad] (self=0x83778e0, 
    _cmd=0xb7f68270 <_OBJC_SELECTOR_TABLE+496>) at Controller.m:72
#8  0xb7ca851f in -[NSWindowController _windowDidLoad] (self=0x83778e0, 
    _cmd=0xb7f680c8 <_OBJC_SELECTOR_TABLE+72>) at NSWindowController.m:472
#9  0xb7ca8bf4 in -[NSWindowController window] (self=0x83778e0, 
    _cmd=0xb7f68130 <_OBJC_SELECTOR_TABLE+176>) at NSWindowController.m:318
#10 0xb7ca8719 in -[NSWindowController showWindow:] (self=0x83778e0, 
    _cmd=0xb7edb1f8 <_OBJC_SELECTOR_TABLE+504>, sender=0x81819e0)
    at NSWindowController.m:395
#11 0xb76c121a in -[NSObject performSelector:withObject:] (self=0x83778e0, 
    _cmd=0xb79b9e20 <_OBJC_SELECTOR_TABLE+224>, 
    aSelector=0xb7edb1f8 <_OBJC_SELECTOR_TABLE+504>, anObject=0x81819e0)
    at NSObject.m:2034
#12 0xb75b0f42 in -[GSArray makeObjectsPerformSelector:withObject:] (
    self=0x87dbf58, _cmd=0xb7edb200 <_OBJC_SELECTOR_TABLE+512>, 
    aSelector=0xb7edb1f8 <_OBJC_SELECTOR_TABLE+504>, argument=0x81819e0)
    at GSArray.m:353
#13 0xb7b91332 in -[NSDocument showWindows] (self=0x81819e0, 
    _cmd=0xb7edd868 <_OBJC_SELECTOR_TABLE+488>) at NSDocument.m:417
#14 0xb7b95885 in -[NSDocumentController
openDocumentWithContentsOfURL:display:error:] (self=0xb7edd868
<_OBJC_SELECTOR_TABLE+488>, 
    _cmd=0xb7f73688 <_OBJC_SELECTOR_TABLE+520>, url=0x8132130, flag=1 ' 01', 
    err=0xbffff4cc) at NSDocumentController.m:712
#15 0xb7cc066f in -[GSServicesManager application:openFile:] (self=0x81945d8,

    _cmd=0xb7f736b0 <_OBJC_SELECTOR_TABLE+560>, theApp=0x8201128, 
    file=0x8126668) at GSServicesManager.m:589
#16 0xb7cc0534 in -[GSServicesManager application:openFiles:] (self=0x81945d8,

    _cmd=0xb7eac128 <_OBJC_SELECTOR_TABLE+1960>, theApp=0x8201128, 
    files=0x8160818) at GSServicesManager.m:617
#17 0xb7b2dc31 in -[NSApplication finishLaunching] (self=0x8201128, 
    _cmd=0xb7eac218 <_OBJC_SELECTOR_TABLE+2200>) at NSApplication.m:1126
#18 0xb7b3186d in -[NSApplication run] (self=0x8201128, 
    _cmd=0xb7ea2408 <_OBJC_SELECTOR_TABLE+904>) at NSApplication.m:1538
#19 0xb7b139bb in NSApplicationMain (argc=2, argv=0xbffff6e4) at
Functions.m:91
#20 0x08049857 in main (argc=2, argv=0xbffff6e4) at main.m:24


There's still something fishy.

(gdb) p proposedNewOrigin
$4 = <optimized out>
(gdb) p docRect
$5 = {origin = {x = 4.02598366e-34, y = 424}, size = {width = 471, 
    height = 471}}
(gdb) p clipRect
$6 = {origin = {x = 0, y = 0}, size = {width = 471, height = 424}}
(gdb) p newScrollPoint
$7 = {x = <optimized out>, y = 0}
(gdb) fr 2
#2  0xb7b69afb in -[NSClipView setFrame:] (self=0x83960f8, 
    _cmd=0x805c978 <_OBJC_SELECTOR_TABLE+888>, rect=...) at NSClipView.m:569
569       [self setBoundsOrigin: [self constrainScrollPoint: _bounds.origin]];
(gdb) po self
 h=-&- v=-&- <CenteringClipView: 0x83960f8> f={x = 0; y = 0; width = 471;
height = 424} b={x = 0; y = 0; width = 471; height = 424}
(gdb) p _bounds.origin
No symbol "_bounds" in current context.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42782>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]