[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Still getting the following failure...
From: |
Vincent R. |
Subject: |
Re: Still getting the following failure... |
Date: |
Sat, 20 Jul 2013 22:30:05 +0200 |
User-agent: |
Roundcube Webmail/0.6 |
Le 20.07.2013 17:17, Eric Wasylishen a écrit :
Hi Greg,
Looks like InitialisePathUtilities is catching and re-throwing an
exception on line 1180.
Could you break on objc_exception_throw and re-run to see if you can
get a stack trace from the initial exception?
We know it'll be an "-initWithBytes:lenth:encoding given nul bytes"
exception, but I don't know where in the NS_DURING block of
InitialisePathUtilities that the failing -initWithBytes call is being
made.
Personnaly I get this :
0x00007ffff797e1d5 in GSPrivateIsEncodingSupported (enc=-7648) at
Unicode.m:449
449 return YES;
(gdb)
0x00007ffff7702c80 in -[GSPlaceholderString
initWithBytes:length:encoding:] (self=0x710240, _cmd=0x7ffff7d66740
<.objc_selector_list+1296>, bytes=0x0, length=1425,
encoding=NSASCIIStringEncoding) at GSString.m:1032
1032 if (GSPrivateIsEncodingSupported(encoding) == NO)
(gdb)
0x00007ffff7702c83 1032 if (GSPrivateIsEncodingSupported(encoding) ==
NO)
(gdb)
0x00007ffff7702c89 1032 if (GSPrivateIsEncodingSupported(encoding) ==
NO)
(gdb)
1036 if (length > 0)
(gdb)
0x00007ffff7702ca4 1036 if (length > 0)
(gdb)
0x00007ffff7702caa 1036 if (length > 0)
(gdb)
1040 if (0 == bytes)
(gdb)
0x00007ffff7702cb8 1040 if (0 == bytes)
(gdb)
0x00007ffff7702cbe 1040 if (0 == bytes)
(gdb)
1042 [NSException raise: NSInvalidArgumentException
(gdb)
0x00007ffff7702cc7 1042 [NSException raise:
NSInvalidArgumentException
(gdb)
0x00007ffff76c63f0 in address@hidden () from
/GNUstep/Local/Library/Libraries/libgnustep-base.so.1.24
(gdb)
0x00007ffff723ce80 in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723ce81 in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723ce84 in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723ce88 in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723ce8c in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723ce90 in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff7238fa0 in address@hidden () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723c5b0 in objc_getClass () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb)
0x00007ffff723c5b1 in objc_getClass () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
(gdb) bt
#0 0x00007ffff723c5b1 in objc_getClass () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
#1 0x00007ffff723ce95 in objc_lookup_class () from
/GNUstep/Local/Library/Libraries/libobjc.so.4.6
#2 0x00007ffff7702ccc in -[GSPlaceholderString
initWithBytes:length:encoding:] (self=0x710240, _cmd=0x7ffff7d66740
<.objc_selector_list+1296>, bytes=0x0, length=1425,
encoding=NSASCIIStringEncoding)
at GSString.m:1042
#3 0x00007ffff78a8456 in -[NSString initWithData:encoding:]
(self=0x710240, _cmd=0x7ffff7d570d0 <.objc_selector_list+512>,
data=0x813040, encoding=NSASCIIStringEncoding) at NSString.m:1429
#4 0x00007ffff7872abb in GSPropertyListMake (obj=0x812de0, loc=0x0,
xml=0 '\000', forDescription=1 '\001', step=2, str=0x7fffffffce70) at
NSPropertyList.m:2485
#5 0x00007ffff7740718 in -[NSArray descriptionWithLocale:indent:]
(self=0x812de0, _cmd=0x7ffff7cfa580 <.objc_selector_list+192>,
locale=0x0, level=0) at NSArray.m:1371
#6 0x00007ffff77406a6 in -[NSArray descriptionWithLocale:]
(self=0x812de0, _cmd=0x7ffff7cfaac0 <.objc_selector_list+1536>,
locale=0x0) at NSArray.m:1353
#7 0x00007ffff7740656 in -[NSArray description] (self=0x812de0,
_cmd=0x7ffff7d48d80 <.objc_selector_list+688>) at NSArray.m:1344
#8 0x00007ffff784bfb2 in ExtractValuesFromConfig (config=0x8118e0) at
NSPathUtilities.m:602
#9 0x00007ffff7843099 in InitialisePathUtilities () at
NSPathUtilities.m:1172
#10 0x00007ffff78438f1 in GSDefaultsRootForUser (userName=0x80cca0) at
NSPathUtilities.m:1856
#11 0x00007ffff78f711d in -[NSUserDefaults initWithUser:]
(self=0x80af40, _cmd=0x7ffff7d82c40 <.objc_selector_list+880>,
userName=0x80cca0) at NSUserDefaults.m:1180
#12 0x00007ffff78f63e7 in -[NSUserDefaults init] (self=0x80af40,
_cmd=0x7ffff7d82a90 <.objc_selector_list+448>) at NSUserDefaults.m:1094
#13 0x00007ffff78f4a64 in +[NSUserDefaults standardUserDefaults]
(self=0x7ffff7d82440 <_OBJC_CLASS_NSUserDefaults>, _cmd=0x7ffff7d184f0
<.objc_selector_list+1056>) at NSUserDefaults.m:779
#14 0x00007ffff77c5b89 in -[NSDictionary writeToFile:atomically:]
(self=0x78d0f0, _cmd=0x603be0 <.objc_selector_list+336>, path=0x7659a0,
useAuxiliaryFile=1 '\001') at NSDictionary.m:1098
#15 0x0000000000402006 in main (argc=3, argv=0x7fffffffe228,
env=0x7fffffffe248) at plmerge.m:135
---------------------------------------------------------------
Another session where I wanted to dump the dest buffer inside
GSPropertyListMake but it's null actually
address@hidden ~/objc2cs/gnustep/core/back/Source $
gdb plmerge
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /GNUstep/Local/Tools/plmerge...done.
(gdb) b main
Breakpoint 1 at 0x401644: file plmerge.m, line 43.
(gdb) r libgnustep-back-023.bundle/Resources/Info-gnustep.plist
libgnustep-back-023Info.plist
Starting program: /GNUstep/Local/Tools/plmerge
libgnustep-back-023.bundle/Resources/Info-gnustep.plist
libgnustep-back-023Info.plist
warning: no loadable sections found in added symbol-file
system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, main (argc=3, argv=0x7fffffffe228, env=0x7fffffffe248) at
plmerge.m:43
43 NSMutableDictionary *plist = nil;
(gdb) b NSPropertyList.m:2490
Breakpoint 2 at 0x7ffff7872a90: file NSPropertyList.m, line 2490.
(gdb) c
Continuing.
Breakpoint 2, GSPropertyListMake (obj=0x812de0, loc=0x0, xml=0 '\000',
forDescription=1 '\001', step=2, str=0x7fffffffce70) at
NSPropertyList.m:2490
2490 fp=fopen("/home/vincent/objc2cs/gnustep/core/back/Source/dest-buffer.txt",
"w");
(gdb) n
2491 if (fp != NULL)
(gdb)
2493 const void * destbuffer = [dest bytes];
(gdb)
2494 size_t count = [dest length];
(gdb) p destbuffer
$1 = (const void *) 0x0
(gdb) n
2495 printf("%p %zu\n", destbuffer, count);
(gdb) n
(nil) 1425
2496 fwrite(destbuffer, 1, count, fp);
(gdb) p destbuffer
$2 = (const void *) 0x0
(gdb)
to be continued...
- Re: Still getting the following failure..., (continued)
- Re: Still getting the following failure..., Vincent R., 2013/07/18
- Re: Still getting the following failure..., Vincent R., 2013/07/19
- Re: Still getting the following failure..., Vincent R., 2013/07/19
- Re: Still getting the following failure..., Richard Frith-Macdonald, 2013/07/19
- Re: Still getting the following failure..., Gregory Casamento, 2013/07/19
- Re: Still getting the following failure..., Gregory Casamento, 2013/07/19
- Re: Still getting the following failure..., Riccardo Mottola, 2013/07/19
- Re: Still getting the following failure..., Gregory Casamento, 2013/07/20
- Re: Still getting the following failure..., Eric Wasylishen, 2013/07/20
- Re: Still getting the following failure..., Gregory Casamento, 2013/07/20
- Re: Still getting the following failure...,
Vincent R. <=
- Re: Still getting the following failure..., Vincent R., 2013/07/21