[Top][All Lists]

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

Re: Gorm can edit which types of files ?

From: Daniel Santos
Subject: Re: Gorm can edit which types of files ?
Date: Mon, 8 Jan 2018 22:40:28 +0000

 I updated my working copy of GNUMail to pick up the changes mentioned. But the 
problem still persists. Below is the output of the gdb session after the 
update. As you can see the check for NSNotFound is being made.

(gdb) run
Starting program: /home/dlsa/code/GNUMail-svn/GNUMail.app/GNUMail
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2018-01-08 22:27:26.698 GNUMail[29634:29634] styleoffsets ... guessing offsets
2018-01-08 22:27:26.699 GNUMail[29634:29634] styleoffsets ... guessing offsets

Breakpoint 1, +[Utilities folderNodesFromFolders:separator:] (self=<optimized 
out>, _cmd=<optimized out>, theFolders=0x555555e085c0,
    theSeparator=<optimized out>) at Utilities.m:581
warning: Source file is more recent than executable.
581       while ((aString = [theFolders nextObject]))
(gdb) continue
2018-01-08 22:27:33.033 GNUMail[29634:29634] Problem posting notification: 
<NSException: 0x555555e0b5b0> NAME:NSRangeException REASON:in 
substringWithRange:, range { 0, 9223372036854775807 } extends beyond size (6) 

Breakpoint 1, +[Utilities folderNodesFromFolders:separator:] (self=<optimized 
out>, _cmd=<optimized out>, theFolders=0x5555559e9670,
    theSeparator=<optimized out>) at Utilities.m:581
581       while ((aString = [theFolders nextObject]))
(gdb) list
576       if (!theSeparator)
577         {
578           theSeparator = '/';
579         }
581       while ((aString = [theFolders nextObject]))
582         {
583           i = [aString indexOfCharacter: theSeparator];
585           if (i != NSNotFound)
(gdb) break Utilities.m:602
Breakpoint 2 at 0x7ffff7b34022: file Utilities.m, line 602.
(gdb) continue
<here I press the Add button in the Account preferences panel>
Breakpoint 2, +[Utilities folderNodesFromFolders:separator:] (self=<optimized 
out>, _cmd=<optimized out>, theFolders=0x5555559e9670,
    theSeparator=<optimized out>) at Utilities.m:602
(gdb) po aString                                                                
(gdb) p theSeparator
$1 = <optimized out>
(gdb) p NSNotFound
$2 = NSNotFound
(gdb) p i
$3 = 9223372036854775807

As can be seen from the above Output, when I print the symbol NSNotFound I get 
“NSNotFound” and not a number equal to the variable i, so the code enters the 
if and breaks at the same place as before

> On 8 Jan 2018, at 14:02, Riccardo Mottola <riccardo.mottola@libero.it> wrote:
> Hi Fred,
> Fred Kiefer wrote:
>> Looks like Riccardo made some changes here but they won’t help your case. 
>> The problem is that line 594 in Utilities.m is still missing the check "i != 
>> NSNotFound“
> you found it! Apparently that condition did not  happen for me, but it is 
> better to check for not found also while in the loop of course.
> http://svn.savannah.gnu.org/viewvc/gnustep-nonfsf/apps/gnumail/Framework/GNUMail/Utilities.m?r1=570&r2=588&sortby=date
> Should fix it. Daniel, may you try and confirm?
> Riccardo

reply via email to

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