Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 15153 - Breakpoint stops at SWT.loadLibrary()
Summary: Breakpoint stops at SWT.loadLibrary()
Status: RESOLVED DUPLICATE of bug 12740
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-02 18:15 EDT by Knut Radloff CLA
Modified: 2002-05-07 12:23 EDT (History)
0 users

See Also:


Attachments
log file (356.29 KB, text/plain)
2002-05-02 18:15 EDT, Knut Radloff CLA
no flags Details
debugger stack for bogus breakpoint (2.45 KB, text/plain)
2002-05-03 12:42 EDT, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2002-05-02 18:15:20 EDT
build 20020430

My log file has a lot of InvalidStackFrameExceptions.
A while ago I entered a different PR with a log file that contained 
InvalidStackFrameExceptions. You asked if I had seen this again. I have now.
I also got the strange "break in loadLibrary" behavior a couple of times today. 
The first time a breakpoint is hit in my target Eclipse the debugger stops at 
some SWT loadLibrary call. Hitting resume then stops at the real breakpoint.

The InvalidStackFrameException is definitely related to the weird breakpoint 
behavior. I just reproduced the breakpoint behavior by restarting my debug 
session and the log contained a fresh InvalidStackFrameException.
Comment 1 Knut Radloff CLA 2002-05-02 18:15:56 EDT
Created attachment 740 [details]
log file
Comment 2 Knut Radloff CLA 2002-05-02 18:17:54 EDT
My target Eclipse is running on J9 1.5 20020206, the runtime Eclipse is running 
on J9 2.0 20020426.
The bug I mention above is bug 13948.
Comment 3 Jared Burns CLA 2002-05-03 09:43:20 EDT
Where exactly are you putting your real breakpoint? Do you have any other
breakpoints set?

What about options? Do you have the option to "Suspend on uncaught exceptions"
or the option to "Suspend on compilation errors" turned on?
Comment 4 Knut Radloff CLA 2002-05-03 12:41:47 EDT
The breakpoint is in org.eclipse.swt.custom.StyledText.handleTextChanging on 
the line 
	if (event.replaceCharCount < 0) {

This is the only breakpoint.
"Suspend on uncaught exceptions" is off
"Suspend on compilation errors" is on
The Java/Debug preference page is set to the defaults.

This problem is similar to the one described in bug 12740 except that I only 
get it when debugging Eclipse and the bogus stack trace is slightly different.
I'm going to attach the complete stack in the debugger.
Comment 5 Knut Radloff CLA 2002-05-03 12:42:17 EDT
Created attachment 744 [details]
debugger stack for bogus breakpoint
Comment 6 Knut Radloff CLA 2002-05-03 12:43:57 EDT
The debugger actually highlights the loadLibraryWithPath line in 
java.lang.Runtime.loadLibraryWithClassLoader when it stops.
Comment 7 Jared Burns CLA 2002-05-07 12:23:39 EDT

*** This bug has been marked as a duplicate of 12740 ***