gnustep-dev
[Top][All Lists]
Advanced

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

memory problem with utf8


From: David Wetzel
Subject: memory problem with utf8
Date: Fri, 01 Apr 2005 00:54:43 +0200

hi folks,

I have a bug that shows up when I use utf8 string encoding. Memory is twice 
freed. On NetBSD, you can 
set

setenv MALLOC_OPTIONS AJ
to get a SIGABRT on that. See 
http://netbsd.gw.com/cgi-bin/man-cgi?malloc++NetBSD-2.0
for more information.

The following shows up when I use 

setenv GNUSTEP_STRING_ENCODING NSUTF8StringEncoding
before starting the program

Program received signal SIGABRT, Aborted.
0x487c7fbb in kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0x487c7fbb in kill () from /usr/lib/libc.so.12
#1  0x4883cbc3 in abort () from /usr/lib/libc.so.12
#2  0x4883b490 in tcgetattr () from /usr/lib/libc.so.12
#3  0x4883b54f in tcgetattr () from /usr/lib/libc.so.12
#4  0x4883c01c in tcgetattr () from /usr/lib/libc.so.12
#5  0x4883c23f in free () from /usr/lib/libc.so.12
#6  0x488fd1ca in objc_free () from /usr/lib/libobjc.so.2
#7  0x4836c132 in default_free (zone=0x484c9e60, ptr=0x855f200) at NSZone.m:499
#8  0x4827bcf9 in NSZoneFree (zone=0x484c9e60, ptr=0x855f200) at 
../Headers/Foundation/
NSZone.h:364
#9  0x4827850c in -[GSMutableString dealloc] (self=0x855e6a8, _cmd=0x484bbfd8) 
at GSString.m:
2893
#10 0x4830d4a7 in -[NSObject release] (self=0x855e6a8, _cmd=0x481e4128) at 
NSObject.m:1866
#11 0x4815bb31 in -[WODynamicURLString dealloc] (self=0x855d688, 
_cmd=0x484bbfd8) at 
GSWDynamicURLString.m:261
#12 0x4830d4a7 in -[NSObject release] (self=0x855d688, _cmd=0x484a93d0) at 
NSObject.m:1866
#13 0x482972bc in -[NSAutoreleasePool dealloc] (self=0x8335108, 
_cmd=0x484a9428) at 
NSAutoreleasePool.m:372
#14 0x482970a6 in -[NSAutoreleasePool release] (self=0x8335108, 
_cmd=0x481dfaa0) at 
NSAutoreleasePool.m:308
#15 0x4814cfa2 in -[WODefaultAdaptorThread setPool:destroyLast:] 
(self=0x8328688, 
_cmd=0x481dfb80, pool=0x0, destroy=1)
    at GSWDefaultAdaptorThread.m:126
#16 0x4814d7ba in -[WODefaultAdaptorThread threadExited] (self=0x8328688, 
_cmd=0x481dfb70) at 
GSWDefaultAdaptorThread.m:286
#17 0x4814d153 in -[WODefaultAdaptorThread run:] (self=0x8328688, 
_cmd=0x481cf708, 
nothing=0x0) at GSWDefaultAdaptorThread.m:268
#18 0x48117014 in -[WODefaultAdaptor announceNewConnection:] (self=0x82da288, 
_cmd=0x481cf648, notification=0x832b548)
    at GSWDefaultAdaptor.m:494
#19 0x48300103 in -[NSNotificationCenter _postAndRelease:] (self=0x80c1b08, 
_cmd=0x484b9bc8, 
notification=0x832b548)
    at NSNotificationCenter.m:1065
#20 0x48300211 in -[NSNotificationCenter postNotification:] (self=0x80c1b08, 
_cmd=0x484ba020, 
notification=0x832b548)
    at NSNotificationCenter.m:1103
#21 0x483021d1 in -[NSNotificationQueue(Private) _postNotification:forModes:] 
(self=0x832b588, 
_cmd=0x484ba000, 
    notification=0x832b548, modes=0x0) at NSNotificationQueue.m:522
#22 0x48302400 in notifyASAP (q=0x832b588) at NSNotificationQueue.m:547
#23 0x48302208 in GSNotifyASAP () at NSNotificationQueue.m:563
#24 0x483b7769 in -[GSRunLoopCtxt pollUntil:within:] (self=0x82cc748, 
_cmd=0x484c00c8, 
milliseconds=4962, contexts=0x82cd728)
    at GSRunLoopCtxt.m:496
#25 0x48329c1c in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x82cd6a8, 
_cmd=0x484c00e0, mode=0x484c01b8, 
    limit_date=0x82df0e8) at NSRunLoop.m:1062
#26 0x48329fca in -[NSRunLoop runMode:beforeDate:] (self=0x82cd6a8, 
_cmd=0x484c00f0, 
mode=0x484c01b8, date=0x82cd568)
    at NSRunLoop.m:1134
#27 0x4832a154 in -[NSRunLoop runUntilDate:] (self=0x82cd6a8, _cmd=0x484c00e8, 
date=0x82cd568) at NSRunLoop.m:1165
#28 0x4832a068 in -[NSRunLoop run] (self=0x82cd6a8, _cmd=0x481bff38) at 
NSRunLoop.m:1148
#29 0x480d4202 in -[WOApplication(GSWRunning) run] (self=0x82cb608, 
_cmd=0x481bf908) at 
GSWApplication.m:2422
#30 0x480cbece in GSWApplicationMainReal (applicationClassName=0x8049060, 
argc=31, 
argv=0xbfbfee88) at GSWApplication.m:212
#31 0x480cc4a5 in WOApplicationMain (applicationClassName=0x8049060, argc=31, 
argv=0xbfbfee88) at GSWApplication.m:228
#32 0x08048c11 in gnustep_base_user_main (argc=31, argv=0xbfbfee88) at 
Shop_main.m:23
#33 0x4831aaa6 in main (argc=31, argv=0xbfbfee88, env=0xbfbfef08) at 
NSProcessInfo.m:702
#34 0x08048992 in ___start ()
#35 0x0804891f in _start ()

NSISOLatin1StringEncoding as encoding does *not* crash, but then I do not get 
all fancy utf-8 chars...
We tried to debug that but I have no idea what may cause the problem.
If you are able to help, i can give you ssh access.

---
   _  _
 _(_)(_)_  David Wetzel, Turbocat's Development,
(_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG,
  _/  \_   Fax +49 33056 82835 Phone +49 33056 82834
 (______)  http://www.turbocat.de/





reply via email to

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