bugGNUstep - Bugs: bug #27063, Segmentation fault loading page in...

Group
 
 

bug #27063: Segmentation fault loading page in SWKBrowser

Submitter:  Fred Kiefer <FredKiefer>
Submitted:  Mon 20 Jul 2009 10:09:16 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 30 Jan 2010 02:26:54 PM UTC, comment #4: 

I could no longer reproduce this issue. Looks like this has been fixed by changes Greg made to the NIB loading in gui.

Fred Kiefer <FredKiefer>
Group Member
Fri 18 Sep 2009 09:45:18 PM UTC, comment #3: 

The behaviour has changed for me now. As soon as I try to type an address in the SWK browser bar, I get:

[Switching to Thread 0x28f01040 (LWP 100125)]
0x28391934 in -[NSTextView replaceCharactersInRange:withString:] (
    self=0x2909d968, _cmd=0x28470088, aRange={location = 0, length = 0},
    aString=0x2957bb68) at NSTextView.m:2119
2119          as = [[NSAttributedString alloc]
Current language:  auto; currently minimal
(gdb) bt
#0  0x28391934 in -[NSTextView replaceCharactersInRange:withString:] (
    self=0x2909d968, _cmd=0x28470088, aRange={location = 0, length = 0},
    aString=0x2957bb68) at NSTextView.m:2119
#1  0x28314ccf in -[NSText setString:] (self=0x2909d968, _cmd=0x805a2f8,
    aString=0x2957bb68) at NSText.m:135
#2  0x0804debe in -[MyDocument webView:didFinishLoadForFrame:] (
    self=0x29084f88, _cmd=0x2810aa00, sender=0x297a7f08, frame=0x29509788)
    at MyDocument.m:483
#3  0x280d76f9 in -[WebFrame _finishedLoading] (self=0x29509788,
    _cmd=0x281101b8) at WebFrame.m:238
#4  0x280dbccc in -[_WebHTMLDocumentRepresentation WebparserDidEndDocument:] (
    self=0x2909ce08, _cmd=0x2810ffd8, Webparser=0x29621cc8)
    at WebHTMLDocumentRepresentation.m:420
#5  0x280df9f3 in -[WebKitXMLParser _parseData:] (self=0x29621cc8,
    _cmd=0x281100d0, d=0x0) at NSXMLParser.m:728
#6  0x280dc943 in -[_WebHTMLDocumentRepresentation finishedLoadingWithDataSource:] (self=0x2909ce08, _cmd=0x28108c10, source=0x29641288)
    at WebHTMLDocumentRepresentation.m:140

Riccardo Mottola <rmottola>
Group Member
Fri 24 Jul 2009 07:38:53 AM UTC, comment #2: 

Reworked the NIB decoding of NSTextView to resolve this issue.

Greg, as you introduced the code here, could you please test with the unpublished application you did this for to see whether your code still works?

Fred Kiefer <FredKiefer>
Group Member
Tue 21 Jul 2009 01:45:21 PM UTC, comment #1: 

Fred has this problem on 64bit, I verified it also on plain linux x86 ia32

Riccardo Mottola <rmottola>
Group Member
Mon 20 Jul 2009 10:09:16 PM UTC, original submission:  

Loading any web page into the SWKBrowser fails with the following segmentation fault.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff680783d in objc_msg_lookup () from /usr/lib64/libobjc.so.2
(gdb) bt                                                            
#0  0x00007ffff680783d in objc_msg_lookup () from /usr/lib64/libobjc.so.2
#1  0x00007ffff76ec9f0 in -[NSTextView textLength] (self=0xdf7e00, _cmd=0x7ffff7a80100)
    at NSTextView.m:2279                                                              
#2  0x00007ffff766d036 in -[NSText setString:] (self=0xdf7e00, _cmd=0x6169c0, aString=0xd1ed10)
    at NSText.m:135                                                                           
#3  0x0000000000407fcb in -[MyDocument webView:didFinishLoadForFrame:] (self=0xa3a160,        
    _cmd=0x7ffff7dc1b10, sender=0xab7e70, frame=0xab7cb0) at MyDocument.m:467                 
#4  0x00007ffff7b72369 in -[WebFrame _finishedLoading] (self=0xab7cb0, _cmd=0x7ffff7dca610)   
    at WebFrame.m:236                                                                         
#5  0x00007ffff7b7b458 in -[_WebHTMLDocumentRepresentation WebparserDidEndDocument:] (self=0xc5db00,
    _cmd=0x7ffff7dca250, Webparser=0xa81890) at WebHTMLDocumentRepresentation.m:420                 
#6  0x00007ffff7b7930a in -[WebKitXMLParser _parseData:] (self=0xa81890, _cmd=0x7ffff7dca440, d=0x0)
    at NSXMLParser.m:720                                                                            
#7  0x00007ffff7b7a142 in -[_WebHTMLDocumentRepresentation finishedLoadingWithDataSource:] (self=0xc5db00,
    _cmd=0x7ffff7dbed60, source=0xdfc890) at WebHTMLDocumentRepresentation.m:140                          
#8  0x00007ffff7b70977 in -[WebDataSource connectionDidFinishLoading:] (self=0xdfc890,                    
    _cmd=0x7ffff7308240, connection=0x91b9e0) at WebDataSource.m:408                                      
#9  0x00007ffff6ed67f5 in -[NSURLConnection(URLProtocolClient) URLProtocolDidFinishLoading:] (            
    self=0x91b9e0, _cmd=0x7ffff730e2e0, protocol=0xe3a7b0) at NSURLConnection.m:434                       
#10 0x00007ffff6edf052 in -[_NSFileURLProtocol startLoading] (self=0xe3a7b0, _cmd=0x7ffff7308120)         
    at NSURLProtocol.m:1653                                                                               
#11 0x00007ffff6ed5fee in -[NSURLConnection initWithRequest:delegate:] (self=0x91b9e0,                    
    _cmd=0x7ffff73080a0, request=0xdfca90, delegate=0xdfc890) at NSURLConnection.m:251                    
#12 0x00007ffff6ed5ce4 in +[NSURLConnection connectionWithRequest:delegate:] (self=0x7ffff7307c60,        
    _cmd=0x7ffff7dbf000, request=0xdfca90, delegate=0xdfc890) at NSURLConnection.m:211                    
#13 0x00007ffff7b6fd78 in -[WebDataSource _load] (self=0xdfc890, _cmd=0x7ffff7dbf040)                     
    at WebDataSource.m:282                                                                                
#14 0x00007ffff7b6ff57 in -[WebDataSource _setWebFrame:] (self=0xdfc890, _cmd=0x7ffff7dc1830, wf=0xab7cb0)
    at WebDataSource.m:297                                                                                
#15 0x00007ffff6e604ac in -[NSObject performSelector:withObject:] (self=0xdfc890, _cmd=0x7ffff72e9ed0,    
    aSelector=0x7ffff7dc1830, anObject=0xab7cb0) at NSObject.m:1827                                       
#16 0x00007ffff6e921be in -[GSTimedPerformer fire] (self=0xe0ffe0, _cmd=0x7ffff72e9f50) at NSRunLoop.m:181
#17 0x00007ffff6e604ac in -[NSObject performSelector:withObject:] (self=0xe0ffe0, _cmd=0x7ffff72fd120,
    aSelector=0x7ffff72e9f50, anObject=0xdf9e80) at NSObject.m:1827
#18 0x00007ffff6ec330f in -[NSTimer fire] (self=0xdf9e80, _cmd=0x7ffff72ea1e0) at NSTimer.m:242
#19 0x00007ffff6e9497a in -[NSRunLoop limitDateForMode:] (self=0x88b1a0, _cmd=0x7ffff72ea2c0,
    mode=0x7ffff72e9200) at NSRunLoop.m:959
#20 0x00007ffff6e95a60 in -[NSRunLoop runMode:beforeDate:] (self=0x88b1a0, _cmd=0x7ffff7aab000,
    mode=0x7ffff72e9200, date=0x897710) at NSRunLoop.m:1231
#21 0x00007ffff76b4775 in -[GSDisplayServer(EventOps) getEventMatchingMask:beforeDate:inMode:dequeue:] (
    self=0x849c80, _cmd=0x7ffff33c56f0, mask=4294967295, limit=0x897710, mode=0x7ffff72e9200,
    flag=1 '\001') at GSDisplayServer.m:996
#22 0x00007ffff314ef98 in -[XGServer(X11Ops) getEventMatchingMask:beforeDate:inMode:dequeue:] (
    self=0x849c80, _cmd=0x7ffff79b24c0, mask=4294967295, limit=0x897710, mode=0x7ffff72e9200,
    flag=1 '\001') at XGServerEvent.m:2468
#23 0x00007ffff751cbce in DPSGetEvent (ctxt=0x849c80, mask=4294967295, limit=0x897710, mode=0x7ffff72e9200)
    at ../Headers/Additions/GNUstepGUI/GSDisplayServer.h:187
#24 0x00007ffff751d3c0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (self=0x830b60,
    _cmd=0x7ffff79b2950, mask=4294967295, expiration=0x897710, mode=0x7ffff72e9200, flag=1 '\001')
    at NSApplication.m:2017
#25 0x00007ffff751be1b in -[NSApplication run] (self=0x830b60, _cmd=0x7ffff79a2a00) at NSApplication.m:1453
#26 0x00007ffff74fcf84 in NSApplicationMain (argc=1, argv=0x7fffffffcc38) at Functions.m:74
#27 0x000000000040192f in main (argc=1, argv=0x7fffffffcc38) at main.m:1

I think this is rather a gui problem as the code in SWKBrowser hasn't changed that much and this used to work. SWKBrowser loads its interface from a NIB file and there the text storage for a text view seems to be an invalid object. I would expect that this segmentation fault is caused by a GNUstep change to the loading of the text network from a NIB file.

Fred Kiefer <FredKiefer>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by FredKiefer (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-30 FredKiefer StatusNone Fixed
        Open/ClosedOpen Closed
    2009-09-18 rmottola StatusReady For Test None
        Open/ClosedIn Test Open
    2009-07-24 FredKiefer StatusNone Ready For Test
        Assigned toNone FredKiefer
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code