From arr@fledge.watson.org  Wed Oct 31 16:58:32 2001
Return-Path: <arr@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 2DEBB37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Oct 2001 16:58:31 -0800 (PST)
Received: (from arr@localhost)
	by fledge.watson.org (8.11.6/8.11.5) id fA10wOl91041;
	Wed, 31 Oct 2001 19:58:24 -0500 (EST)
	(envelope-from arr)
Message-Id: <200111010058.fA10wOl91041@fledge.watson.org>
Date: Wed, 31 Oct 2001 19:58:24 -0500 (EST)
From: "Andrew R. Reiter" <arr@fledge.watson.org>
Reply-To: "Andrew R. Reiter" <arr@fledge.watson.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: A bug in handling an error reading a CD-ROM results in core.	
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31678
>Category:       bin
>Synopsis:       A bug in handling an error reading a CD-ROM results in core.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 31 17:00:01 PST 2001
>Closed-Date:    Fri Aug 15 21:19:55 PDT 2003
>Last-Modified:  Sun May 15 01:20:02 GMT 2005
>Originator:     Andrew R. Reiter
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD rakahanga 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Oct 29 06:39:1
1 GMT 2001 root@:/usr/obj/usr/src/sys/GENERIC i386

	
>Description:
When trying to use an unmounted CD-ROM in sysinstall for post-install configure
in order to install packages, it can cause a core if 

	
>How-To-Repeat:
Insert a 4.4 release CD on a -current box, run sysinstall.  Go to the configure
menu, and then to the packages installation menu and choose CD-ROM/DVD.  
It will let you know that the CD-ROM in the drive is a 4.4-RELEASE disk and 
you must hit OK, then it will ask if you wish to continue despite this, and 
you hit YES.  It will then attempt to read thte INDEX file and then core.  
The GDB bt i got was:
(gdb) bt
#0  0x8054b3f in sigprocmask ()
#1  0x281c5400 in .curbrk () from /usr/lib/libc.so.5
#2  0x8055841 in sigprocmask ()
#3  0x804db60 in sigprocmask ()
#4  0x280b6025 in dialog_menu () from /usr/lib/libdialog.so.4
#5  0x8052eb8 in sigprocmask ()
#6  0x8052cae in sigprocmask ()
#7  0x805294a in sigprocmask ()
#8  0x280b6025 in dialog_menu () from /usr/lib/libdialog.so.4
#9  0x8052eb8 in sigprocmask ()
#10 0x805adb7 in sigprocmask ()
#11 0x804b2c5 in sigprocmask ()
(gdb) info all-register
eax            0x80aa290        134914704
ecx            0x5      5
edx            0x0      0
ebx            0x0      0
esp            0xbfbfdd08       0xbfbfdd08
ebp            0xbfbfefa0       0xbfbfefa0
esi            0x80c0b00        135006976
edi            0x0      0
eip            0x8054b3f        0x8054b3f
eflags         0x10246  66118
cs             0x1f     31
ss             0x2f     47
ds             0x2f     47
es             0x2f     47
fs             0x2f     47
gs             0x2f     47

>Fix:
Since the GDB stack trace said sigprocmask, I started hunting around for 
signal problems.. I did find a poorly design signal handler (contained 
non-signal safe functions) but I am kinda doubting that it is the real 
source of the problem.

	
>Release-Note:
>Audit-Trail:

From: "Andrew R. Reiter" <arr@watson.org>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: bin/31678: A bug in handling an error reading a CD-ROM results in core.	
Date: Wed, 31 Oct 2001 20:03:47 -0500 (EST)

 I should have added:
 Oct 31 16:53:57 rakahanga /boot/kernel/kernel: acd0: READ_BIG - MEDIUM
 ERROR asc
 =0x02 ascq=0x00 error=0x00
 Oct 31 16:53:57 rakahanga /boot/kernel/kernel: pid 7843 (sysinstall), uid
 0: exi
 ted on signal 11 (core dumped)
 
 that error from /var/log/messages at the time of the core.
 
 On Wed, 31 Oct 2001, Andrew R. Reiter wrote:
 
 :
 :>Number:         31678
 :>Category:       bin
 :>Synopsis:       A bug in handling an error reading a CD-ROM results in core.
 :>Confidential:   no
 :>Severity:       serious
 :>Priority:       medium
 :>Responsible:    freebsd-bugs
 :>State:          open
 :>Quarter:        
 :>Keywords:       
 :>Date-Required:
 :>Class:          sw-bug
 :>Submitter-Id:   current-users
 :>Arrival-Date:   Wed Oct 31 17:00:01 PST 2001
 :>Closed-Date:
 :>Last-Modified:
 :>Originator:     Andrew R. Reiter
 :>Release:        FreeBSD 5.0-CURRENT i386
 :>Organization:
 :>Environment:
 :System: FreeBSD rakahanga 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Oct 29 06:39:1
 :1 GMT 2001 root@:/usr/obj/usr/src/sys/GENERIC i386
 :
 :	
 :>Description:
 :When trying to use an unmounted CD-ROM in sysinstall for post-install configure
 :in order to install packages, it can cause a core if 
 :
 :	
 :>How-To-Repeat:
 :Insert a 4.4 release CD on a -current box, run sysinstall.  Go to the configure
 :menu, and then to the packages installation menu and choose CD-ROM/DVD.  
 :It will let you know that the CD-ROM in the drive is a 4.4-RELEASE disk and 
 :you must hit OK, then it will ask if you wish to continue despite this, and 
 :you hit YES.  It will then attempt to read thte INDEX file and then core.  
 :The GDB bt i got was:
 :(gdb) bt
 :#0  0x8054b3f in sigprocmask ()
 :#1  0x281c5400 in .curbrk () from /usr/lib/libc.so.5
 :#2  0x8055841 in sigprocmask ()
 :#3  0x804db60 in sigprocmask ()
 :#4  0x280b6025 in dialog_menu () from /usr/lib/libdialog.so.4
 :#5  0x8052eb8 in sigprocmask ()
 :#6  0x8052cae in sigprocmask ()
 :#7  0x805294a in sigprocmask ()
 :#8  0x280b6025 in dialog_menu () from /usr/lib/libdialog.so.4
 :#9  0x8052eb8 in sigprocmask ()
 :#10 0x805adb7 in sigprocmask ()
 :#11 0x804b2c5 in sigprocmask ()
 :(gdb) info all-register
 :eax            0x80aa290        134914704
 :ecx            0x5      5
 :edx            0x0      0
 :ebx            0x0      0
 :esp            0xbfbfdd08       0xbfbfdd08
 :ebp            0xbfbfefa0       0xbfbfefa0
 :esi            0x80c0b00        135006976
 :edi            0x0      0
 :eip            0x8054b3f        0x8054b3f
 :eflags         0x10246  66118
 :cs             0x1f     31
 :ss             0x2f     47
 :ds             0x2f     47
 :es             0x2f     47
 :fs             0x2f     47
 :gs             0x2f     47
 :
 :>Fix:
 :Since the GDB stack trace said sigprocmask, I started hunting around for 
 :signal problems.. I did find a poorly design signal handler (contained 
 :non-signal safe functions) but I am kinda doubting that it is the real 
 :source of the problem.
 :
 :	
 :>Release-Note:
 :>Audit-Trail:
 :>Unformatted:
 :
 :To Unsubscribe: send mail to majordomo@FreeBSD.org
 :with "unsubscribe freebsd-bugs" in the body of the message
 :
 
 *-------------.................................................
 | Andrew R. Reiter 
 | arr@fledge.watson.org
 | "It requires a very unusual mind
 |   to undertake the analysis of the obvious" -- A.N. Whitehead
 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 1 12:12:19 PST 2002 
State-Changed-Why:  

Is this bug still present? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31678 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Fri Aug 15 21:19:46 PDT 2003 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31678 

From: Peter Campbell <dila813@yahoo.com>
To: bug-followup@FreeBSD.org, arr@fledge.watson.org
Cc:  
Subject: Re: bin/31678: A bug in handling an error reading a CD-ROM results in core.
Date: Sat, 14 May 2005 18:15:10 -0700 (PDT)

 --0-2054559498-1116119710=:36784
 Content-Type: text/plain; charset=us-ascii
 
 This issue is still open in FreeBSD 5.4 - Released
  
 Error goes away if you exit SysInstall and open and close the DVD-ROM. This issue will reoccur again after a period of time using SysInstall to install package ages.
  
 My Platform is:
 DELL Inspiron 2500 PIII with a LG DVD-ROM DRN-8080B with the latest firmware.
 
 
 		
 ---------------------------------
 Yahoo! Mail Mobile
  Take Yahoo! Mail with you! Check email on your mobile phone.
 --0-2054559498-1116119710=:36784
 Content-Type: text/html; charset=us-ascii
 
 <DIV>
 <DIV>This issue is still open in FreeBSD 5.4 - Released</DIV>
 <DIV>&nbsp;</DIV>
 <DIV>Error goes away if you exit SysInstall and open and close the DVD-ROM. This issue will reoccur again after a period of time using SysInstall to install package ages.</DIV>
 <DIV>&nbsp;</DIV>
 <DIV>My Platform is:</DIV>
 <DIV>DELL Inspiron 2500 PIII with a LG DVD-ROM DRN-8080B with the latest firmware.</DIV></DIV><p>
 		<hr size=1>Yahoo! Mail Mobile<br> 
 <a href="http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com/learn/mail">Take Yahoo! Mail with you!</a> Check email on your mobile phone.
 --0-2054559498-1116119710=:36784--
>Unformatted:
