Re: SIGSEGV in nsFrameManager::GetPrimaryFrameFor in mozilla-firefox-2.0.0.1p0 (was: SIGPIPE in pt_Send (libnspr4))

2007-03-06 Thread Kurt Miller
On Tuesday 06 March 2007 1:37:33 am Gregory Steuck wrote:
 But there are crashes and this is one I caught:
 
 [New process 12726, thread 0x82258400]
 
 Program received signal SIGPIPE, Broken pipe.
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to process 12726, thread 0x8a21b000]
 0x0c9c6b42 in nsFrameManager::GetPrimaryFrameFor(nsIContent*) () from 
 /usr/local/mozilla-firefox/components/libgklayout.so.19.0
 (gdb) where
 #0  0x0c9c6b42 in nsFrameManager::GetPrimaryFrameFor(nsIContent*) () from 
 /usr/local/mozilla-firefox/components/libgklayout.so.19.0

Ok now we're getting somewhere. :-)

I should have mentioned in my first email that you
should be running gdb on the -debug flavor package.
Running gdb on the non-debug pkg is helpful but with the
debug flavor you should get line numbers and they
really help the process along. ;-)

I looked briefly at GetPrimaryFrameFor() in
./mozilla/layout/base/nsFrameManager.cpp, but without
line numbers I can't make any progress. It can be any
number of null pointer de-refs or the like.

Here's what I suggest you do; Update your ports
tree to -current, make sure you have nspr-4.6.5
installed (to fix the issue Martynas pointed out),
build  install the debug flavor of firefox 2.0.0.2p1,
catch the segfault again.

Open a bug report at mozilla.org with the stack trace
with line numbers and include any other relevant
info like how to reproduce, architecture, ulimits, etc. 
Send ports@ the link to the bug report and I'll add
whatever comments I can come up with to the bug report.

-Kurt



Re: SIGPIPE in pt_Send (libnspr4)

2007-03-05 Thread Martynas Venckus
Please pkg_delete -F ambiguous .libs-mozilla-firefox, or something like that.

--
Martynas Venckus



Re: SIGPIPE in pt_Send (libnspr4)

2007-03-05 Thread Kurt Miller
On Monday 05 March 2007 2:38:19 am Gregory Steuck wrote:
 I am running i386-current-Feb-14. Firefox frequently crashes on me with
 a stack trace below. Does anybody know if this has been fixed in newer
 current (which I should upgrade to anyway, but not tonight). The relvant
 packages are from Feb 14 snapshot: mozilla-firefox-2.0.0.1p0 nss-3.11.4p1
 
 (gdb) run
 Starting program: /usr/local/mozilla-firefox/firefox-bin 
 [New process 21520]
 [New process 21520, thread 0x856dd800]
 [New process 21520, thread 0x7d86e400]
 [New process 21520, thread 0x7d97]
 
 Program received signal SIGPIPE, Broken pipe.
 [Switching to process 21520, thread 0x7d97]
 0x0b2894e9 in sendto () from /usr/lib/libc.so.40.3

SIPPIPE is normal. Issue the following command before
'run' to tell gdb to let them be handled/ignored by
firefox (i.e. SIG_IGN) without interrupting the debug
session.

(gdb) handle SIGPIPE nostop noprint

-Kurt



SIGSEGV in nsFrameManager::GetPrimaryFrameFor in mozilla-firefox-2.0.0.1p0 (was: SIGPIPE in pt_Send (libnspr4))

2007-03-05 Thread Gregory Steuck
 Kurt == Kurt Miller [EMAIL PROTECTED] writes:

 I am running i386-current-Feb-14. Firefox frequently crashes on
 me with a stack trace below. Does anybody know if this has been
 fixed in newer current (which I should upgrade to anyway, but not
 tonight). The relvant packages are from Feb 14 snapshot:
 mozilla-firefox-2.0.0.1p0 nss-3.11.4p1
 
 (gdb) run Starting program:
 /usr/local/mozilla-firefox/firefox-bin [New process 21520] [New
 process 21520, thread 0x856dd800] [New process 21520, thread
 0x7d86e400] [New process 21520, thread 0x7d97]
 
 Program received signal SIGPIPE, Broken pipe.  [Switching to
 process 21520, thread 0x7d97] 0x0b2894e9 in sendto () from
 /usr/lib/libc.so.40.3

Kurt SIPPIPE is normal. Issue the following command before 'run' to
Kurt tell gdb to let them be handled/ignored by firefox
Kurt (i.e. SIG_IGN) without interrupting the debug session.

Kurt (gdb) handle SIGPIPE nostop noprint

Blush. Yes, SIGPIPE was bogus. But there are crashes and this is one I
caught:

[New process 12726, thread 0x82258400]

Program received signal SIGPIPE, Broken pipe.

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 12726, thread 0x8a21b000]
0x0c9c6b42 in nsFrameManager::GetPrimaryFrameFor(nsIContent*) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
(gdb) where
#0  0x0c9c6b42 in nsFrameManager::GetPrimaryFrameFor(nsIContent*) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#1  0x0c9d6311 in PresShell::GetPrimaryFrameFor(nsIContent*, nsIFrame**) const 
()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#2  0x0cafa17b in nsPopupSetFrame::RepositionPopup(nsPopupFrameList*, 
nsBoxLayoutState) ()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#3  0x0caf9fc7 in nsPopupSetFrame::DoLayout(nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#4  0x0cad14fb in nsIFrame::Layout(nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#5  0x0cad67b2 in nsSprocketLayout::Layout(nsIFrame*, nsBoxLayoutState) ()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#6  0x0cad3fe0 in nsBoxFrame::DoLayout(nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#7  0x0cad14fb in nsIFrame::Layout(nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#8  0x0cad901a in nsStackLayout::Layout(nsIFrame*, nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#9  0x0cad3fe0 in nsBoxFrame::DoLayout(nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#10 0x0cad14fb in nsIFrame::Layout(nsBoxLayoutState) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#11 0x0cad3a7f in nsBoxFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics, 
nsHTMLReflowState const, unsigned) ()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#12 0x0cad02ba in nsRootBoxFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics, 
nsHTMLReflowState const, unsigned) ()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#13 0x0c9efeec in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, 
nsHTMLReflowMetrics, nsHTMLReflowState const, int, int, unsigned, unsigned) 
() from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#14 0x0ca3b2eb in ViewportFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics, 
nsHTMLReflowState const, unsigned) ()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#15 0x0c9ce07c in IncrementalReflow::Dispatch(nsPresContext*, 
nsHTMLReflowMetrics, nsSize const, nsIRenderingContext) ()
   from /usr/local/mozilla-firefox/components/libgklayout.so.19.0
#16 0x0c9d8278 in PresShell::ProcessReflowCommands(int) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#17 0x0c9d7843 in PresShell::WillPaint() () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#18 0x0cc4f278 in nsViewManager::FlushPendingInvalidates() () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#19 0x0cc4d7f8 in nsViewManager::EnableRefresh(unsigned) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#20 0x0cc4d88c in nsViewManager::EndUpdateViewBatch(unsigned) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#21 0x0c9b2fcd in nsCSSFrameConstructor::RestyleEvent::HandleEvent() () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#22 0x0c9b2ff0 in HandleRestyleEvent(PLEvent*) () from 
/usr/local/mozilla-firefox/components/libgklayout.so.19.0
#23 0x0ecca608 in PL_HandleEvent () from 
/usr/local/mozilla-firefox/libxpcom_core.so.19.0
#24 0x0ecca54f in PL_ProcessPendingEvents () from 
/usr/local/mozilla-firefox/libxpcom_core.so.19.0
#25 0x0eccbc3d in nsEventQueueImpl::ProcessPendingEvents() () from 
/usr/local/mozilla-firefox/libxpcom_core.so.19.0
#26