Closed Bug 4934 Opened 26 years ago Closed 25 years ago

apprunner gives X IO Error on startup (1999-04-09 build)

Categories

(Core :: XUL, defect, P1)

x86
Linux
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: edd, Assigned: eric)

Details

output from mozilla-apprunner.sh: MOZILLA_FIVE_HOME=/work/build/mozilla/mozilla/dist/bin LD_LIBRARY_PATH=/work/build/mozilla/mozilla/dist/bin MOZ_PROGRAM=apprunner nsComponentManager: Using components dir: /work/build/mozilla/mozilla/dist/bin/components width was not set height was not set Reading file... Reading file...Done Reading file... Reading file...Done Got thew event queue from the service Calling gdk_input with event queue Reading file... Reading file...Done XULContentSinkImpl destructor: namespace stack not empty XULContentSinkImpl destructor: content stack not empty Gdk-ERROR **: an x io error occurred aborting... ./mozilla-apprunner.sh: line 45: 1909 IOT trap/Abort $tools/run-mozilla.sh apprunner ${1+"$@"} strace -f ends like this: [pid 1914] uname({sys="Linux", node="pingu", ...}) = 0 [pid 1914] open("/etc/hosts", O_RDONLY) = 8 [pid 1914] fstat(8, {st_mode=S_IFREG|0644, st_size=553, ...}) = 0 [pid 1914] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40b01000 [pid 1914] read(8, "#\n# hosts\t\tThis file describe"..., 4096) = 553 [pid 1914] read(8, "", 4096) = 0 [pid 1914] close(8) = 0 [pid 1914] munmap(0x40b01000, 4096) = 0 [pid 1914] connect(7, {sin_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("10.0.0.1")}, 16) = 0 [pid 1914] getsockname(7, {sin_family=AF_INET, sin_port=htons(7316), sin_addr=inet_addr("10.0.0.1")}, [16]) = 0 [pid 1914] getpeername(7, {sin_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("10.0.0.1")}, [16]) = 0 [pid 1914] fcntl(7, F_SETFD, FD_CLOEXEC) = 0 [pid 1914] access("/home/pingu/edmundd/.Xauthority", R_OK) = 0 [pid 1914] open("/home/pingu/edmundd/.Xauthority", O_RDONLY) = 8 [pid 1914] fstat(8, {st_mode=S_IFREG|0600, st_size=200, ...}) = 0 [pid 1914] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40b01000 [pid 1914] read(8, "\0\0\0\4\n\0\0\1\0\00210\0\22MIT"..., 4096) = 200 [pid 1914] read(8, "", 4096) = 0 [pid 1914] close(8) = 0 [pid 1914] munmap(0x40b01000, 4096) = 0 [pid 1914] brk(0x813e000) = 0x813e000 [pid 1914] writev(7, [{"l\0\v\0\0\0\0\0\0\0\0\0", 12}], 1) = 12 [pid 1914] fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 [pid 1914] read(7, 0xbffff214, 8) = -1 EAGAIN (Try again) [pid 1914] write(2, "\n", 1 ) = 1 [pid 1914] write(2, "Gdk", 3Gdk) = 3 [pid 1914] write(2, "-", 1-) = 1 [pid 1914] write(2, "ERROR **: ", 10ERROR **: ) = 10 [pid 1914] write(2, "an x io error occurred", 22an x io error occurred) = 22 [pid 1914] write(2, "\naborting...\n", 13 aborting... ) = 13 [pid 1914] sigprocmask(SIG_UNBLOCK, [ABRT], NULL) = 0 [pid 1914] getpid() = 1914 [pid 1914] kill(1914, SIGABRT) = 0 [pid 1914] --- SIGABRT (IOT trap/Abort) --- [pid 1914] +++ killed by SIGABRT +++ GTK/GLIB version 1.2.1 Here's the stacktrace: #0 0x409fd8d1 in __kill () #1 0x409cc6d9 in raise (sig=1082849470) #2 0x408ce476 in g_log (log_domain=0x408af8be "Gdk", log_level=G_LOG_LEVEL_ERROR, format=0x408af973 "an x io error occurred") at gmessages.c:406 #3 0x40891305 in gdk_x_io_error (display=0x813c468) at gdk.c:1074 #4 0x4091c869 in _XIOError () #5 0x4091a6cc in _XRead () #6 0x4091afbb in _XReply () #7 0x4090597f in _XQueryFont () #8 0x409057f2 in XLoadQueryFont () #9 0x4089df7f in gdk_font_load (font_name=0x82a0938 "-adobe-helvetica-medium-r-normal--7-*-*-*-p-*-iso8859-1") at gdkfont.c:41 #10 0x400b80c1 in nsFontGTK::LoadFont () #11 0x400b839b in PickASizeAndLoad () #12 0x400b89c3 in TryCharSet () #13 0x400b8a53 in SearchCharSet () #14 0x4071f069 in PL_HashTableEnumerateEntries (ht=0x829bdb0, f=0x400b89d0 <SearchCharSet(PLHashEntry *, int, void *)>, arg=0xbfffb85c) at plhash.c:368 #15 0x400b8a9b in TryFamily () #16 0x400b960a in nsFontMetricsGTK::FindFont () #17 0x400b73fc in nsFontMetricsGTK::Init () #18 0x400a2341 in nsFontCache::GetMetricsFor () #19 0x400a14ee in DeviceContextImpl::GetMetricsFor () #20 0x404b51f8 in nsTitledButtonFrame::GetTextSize () #21 0x404b5a77 in nsTitledButtonFrame::GetDesiredSize () #22 0x4039a0c8 in nsLeafFrame::Reflow () #23 0x404b58e5 in nsTitledButtonFrame::Reflow () #24 0x404b13ab in nsBoxFrame::FlowChildAt () #25 0x404b1a73 in nsBoxFrame::Reflow () #26 0x404b66eb in nsToolbarFrame::Reflow () #27 0x404b13ab in nsBoxFrame::FlowChildAt () #28 0x404b1a73 in nsBoxFrame::Reflow () #29 0x404b6ff6 in nsToolboxFrame::Reflow () #30 0x404b13ab in nsBoxFrame::FlowChildAt () #31 0x404b1a73 in nsBoxFrame::Reflow () #32 0x40385529 in nsBlockReflowContext::ReflowBlock () #33 0x4038126a in nsBlockFrame::ReflowBlockFrame () #34 0x403804a0 in nsBlockFrame::ReflowLine () #35 0x4038013a in nsBlockFrame::ReflowDirtyLines () #36 0x4037f8d3 in nsBlockFrame::Reflow () #37 0x4037d260 in nsAreaFrame::Reflow () #38 0x40387d76 in nsContainerFrame::ReflowChild () #39 0x40390000 in RootFrame::Reflow () #40 0x40387d76 in nsContainerFrame::ReflowChild () #41 0x403a754f in nsScrollFrame::Reflow () #42 0x40387d76 in nsContainerFrame::ReflowChild () #43 0x403b1577 in ViewportFrame::Reflow () #44 0x403a2caf in PresShell::InitialReflow () #45 0x40bac89e in XULDocumentImpl::StartLayout () #46 0x40ba97ee in XULDocumentImpl::EndLoad () #47 0x40bbe33b in XULContentSinkImpl::DidBuildModel () #48 0x4058dfcd in CWellFormedDTD::DidBuildModel () #49 0x40585947 in nsParser::DidBuildModel () #50 0x4058631f in nsParser::ResumeParse () #51 0x40585a26 in nsParser::EnableParser () #52 0x40bbe96d in XULContentSinkImpl::DoneLoadingStyle () #53 0x40218b85 in nsUnicharStreamLoader::OnStopBinding () #54 0x40231643 in nsDocumentBindInfo::OnStopBinding () #55 0x4021b3ee in stub_complete () #56 0x40157cef in net_ProcessFile () #57 0x401f89df in NET_ProcessNet () #58 0x401fea73 in NET_PollSockets () #59 0x40215cb1 in nsNetlibService::NetPollSocketsCallback () #60 0x4012c9b9 in TimerImpl::FireTimeout () #61 0x4012cda9 in nsTimerExpired () #62 0x408cca61 in g_timeout_dispatch (source_data=0x8216ab0, current_time=0xbffff23c, user_data=0x8103d40) at gmain.c:1214 #63 0x408cbc40 in g_main_dispatch (current_time=0xbffff23c) at gmain.c:656 #64 0x408cc1eb in g_main_iterate (block=1, dispatch=1) at gmain.c:865 #65 0x408cc3a1 in g_main_run (loop=0x8159e18) at gmain.c:923 #66 0x407f24eb in gtk_main () at gtkmain.c:475 #67 0x40076fbd in nsAppShell::Run () #68 0x40016ce5 in nsAppShellService::Run () #69 0x804a3b4 in main () #70 0x8049d6e in ___crt_dummy__ ()
Assignee: don → trudelle
Component: Apprunner → XUL
Re-assigned to trudelle@netscape.com and changed component to XUL. Looks like it's dying in the content sink ...
Assignee: trudelle → evaughan
Priority: P3 → P1
Target Milestone: M5
I haven't see this in any recent builds. edd, is this still happening on your machine? reassigning ot evaughan, since it appears to be dying getting font metrics for a reflow of titled buttons. p1 for m5, lower the priority if we can't get a reproducible case or find the problem by inspection.
QA Contact: 3853 → 4015
gerardok, can you reproduce this with the latest build?
I couldn't reproduce it on 042308 build. Apprunner is not dying anymore, but I'm getting the following error msg. on startup: Gtk-CRITICAL **: file gtkbox.c: line 332 (gtk_box_pack_start) assertion `child->parent == NULL` failed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
edd. could you try with latest build please? edd if this still happens for you re-open the bug. Thanks! gerardo, can you write new error up as a new bug please.
I can run the latest build ID 1999042310 OK now. I installed threadsafe X libraries and that made things happier.
Status: RESOLVED → VERIFIED
New error reported as bug 5575. Marking this a verified...
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: gerardok → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.