bugGNUstep - Bugs: bug #3395, Segmentation fault in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3395: Segmentation fault in ProjectCenter when run a tool couple times.

Submitted by:  -Deleted Account- <yjchen>
Submitted on:  Tue 29 Apr 2003 06:38:25 PM UTC  
 
Category: ApplicationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Sergii Stoian <stoyan>
Open/Closed: Closed

Sat 04 Mar 2006 06:25:37 PM UTC, comment #5:

Happens here, too, except that the offending button is named "Build".
1. Open any project or create a new one.
2. Build.
3. GOTO 2 until it throws a NSFileHandleOperationException ("'read' already in progress" or something) at you or just silently crashes. This is logged to the terminal: "recursion encountered handling uncaught exception"

Well, as for the backtrace.. the bug doesn't surface when using debugapp and doesn't leave any coredump behind, either. Arrr. There's some strange things, though: with each build, two "logErrOut"s are logged to the terminal. Sometimes, loads of them are outputted at once and the output in the build output field ("Project Build" window, that gray field) is padded with lots of spaces. I think that's the point where it usually crashes.
Attaching GDB to a running instance doesn't catch any signals and when not using a debugger, "logErrOut"s don't appear during every build...

BTW, pressing "Abort" in these "Critical Error" dialogs even crashes WindowMaker sometimes. Weee~

FreeBSD 6.0, gcc 3.4.4 [FreeBSD] 20050518, gnustep-back-0.10.2, gnustep-base-1.11.2_1, gnustep-gui-0.10.2_2, gnustep-make-1.11.2_1, ProjectCenter 0.4.3

Nikolaus Waxweiler <madleser>
Wed 02 Jul 2003 11:40:02 AM UTC, comment #4:

I can't reproduce it with latest CVS.

Sergii Stoian <stoyan>
Project MemberIn charge of this item.
Wed 30 Apr 2003 03:11:24 PM UTC, comment #3:

It does crash when I do this, but in a different place. I'm unassigning this, as it probably isn't a text system issue (or at least not only a text system issue). A backtrace with debugging info would be helpful.

#0 0x40657d19 in __emulate_poll (fds=0x82376c8, nfds=8, timeout=0) at ../sysdeps/unix/bsd/poll.c:152
#1 0x40432eb2 in -[GSRunLoopCtxt pollUntil:within:] (self=0x81bcb48, _cmd=0x405086c8, milliseconds=0, contexts=0x81ba050)
at NSRunLoop.m:685
#2 0x40435cfe in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x81b9888, _cmd=0x405086e0, mode=0x405087a8,
limit_date=0x81bc858) at NSRunLoop.m:2017
#3 0x4043624b in -[NSRunLoop runMode:beforeDate:] (self=0x81b9888, _cmd=0x40312790, mode=0x405087a8, date=0x81bda48)
at NSRunLoop.m:2098
#4 0x4022fda5 in -[GSDisplayServer(EventOps) getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x8158f80,
_cmd=0x40849328, mask=4294967295, limit=0x81bda48, mode=0x405087a8, flag=1 '\001') at GSDisplayServer.m:906
#5 0x40804108 in -[XGServer(X11Ops) getEventMatchingMask:beforeDate:inMode:dequeue:] (self=0x8158f80, _cmd=0x402dada0,
mask=3221220408, limit=0xbfffec38, mode=0xbfffec38, flag=1 '\001') at XGServerEvent.m:1843
#6 0x400ee4b0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (self=0x8172348, _cmd=0xbfffec38,
mask=4294967295, expiration=0x81bda48, mode=0x405087a8, flag=1 '\001') at GSDisplayServer.h:159
#7 0x400ecb66 in -[NSApplication run] (self=0x8172348, _cmd=0x402d9848) at NSApplication.m:1036
#8 0x400e3c63 in NSApplicationMain (argc=1, argv=0xbffff120) at Functions.m:72
#9 0x08055702 in main (argc=0, argv=0x0) at ProjectCenter_main.m:50
#10 0x405959b3 in __libc_start_main (main=0x80555a0 <main>, argc=1, ubp_av=0xbffff120, init=0x80493bc <_init>,
fini=0x8057860 <_fini>, rtld_fini=0x4000bf20 <_dl_fini>, stack_end=0xbffff11c) at ../sysdeps/generic/libc-start.c:129

Alexander Malmberg <alexm>
Project Member
Wed 30 Apr 2003 01:44:28 PM UTC, comment #2:

I try a fresh GNUstep and ProjectCenter both on FreeBSD and Linux.
It works fine on FreeBSD, but segment fault on Linux.
So weird that it is OS-dependent.
But from my experience, FreeBSD can tolerate more memory leak than Linux.
I even deleted the installed GNUstep and downloaded a clean source code from CVS.
If no one can reproduce it, it may be a problem of my Linux machine.

-Deleted Account- <yjchen>
Wed 30 Apr 2003 12:41:30 AM UTC, comment #1:

Which version of -gui is this? It looks like a bug that was fixed in cvs 2003-04-03.

Alexander Malmberg <alexm>
Project Member
Tue 29 Apr 2003 06:38:25 PM UTC, original submission:

1. openapp ProjectCenter
2. Project->New (Type: Tool).
3. In main.m, add NSLog(@"Test"); under // Your code here...
4. File->Save File
5. Press "Build" button to build.
6. Press "Run" to run this tool couple times.
7. Segmentation fault after 2-4 times.

Back trace:

#0 0x4024e78f in i_GSLayoutManager_glyphs_glyphRangeForCharacterRange_actualCharacterRange ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#1 0x40182d7c in i_NSLayoutManager__textStorage_edited_range_changeInLength_invalidatedRange ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#2 0x40202874 in _i_NSTextStorage__processEditing ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#3 0x402025e8 in i_NSTextStorage__edited_range_changeInLength ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#4 0x40232b8f in i_GSTextStorage__replaceCharactersInRange_withString ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#5 0x4024363a in i_NSTextView__replaceCharactersInRange_withString ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#6 0x401fd002 in i_NSText__setString ()#7 0x40039096 in i_PCProjectDebugger__run ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libProjectCenter.so.0
#8 0x40427afd in i_NSObject__performSelector_withObject ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-base.so.1
#9 0x40117ced in i_NSApplication__sendAction_to_from ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#10 0x40158930 in i_NSControl__sendAction_to ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#11 0x40187dd8 in i_NSMatrix__sendAction_to ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#12 0x4013f7ae in i_NSCell__trackMouse_inRect_ofView_untilMouseUp ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#13 0x40188465 in i_NSMatrix___mouseDownNonListMode ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#14 0x40188cb3 in i_NSMatrix__mouseDown ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/l
#15 0x4021d320 in i_NSWindow__sendEvent ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#16 0x401176e0 in i_NSApplication__sendEvent ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#17 0x4011656b in _i_NSApplication__run ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#18 0x4010eacf in NSApplicationMain ()
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0
#19 0x080537a1 in main ()
#20 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
from /usr/local/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-gui.so.0

-Deleted Account- <yjchen>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 02 Jul 2003 03:16:11 PM UTCstoyanStatusWorks For Me=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Wed 02 Jul 2003 11:40:02 AM UTCstoyanStatusNone=>(Error - Not Found)
Wed 02 Jul 2003 09:14:54 AM UTCstoyanAssigned toNone=>NA
Wed 30 Apr 2003 03:11:24 PM UTCalexmAssigned toalexm=>NA
Wed 30 Apr 2003 12:41:30 AM UTCalexmAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1