Debian Bug report logs - #22649
dselect crashes

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Jukka Neppius <jkn@softavenue.fi>

Date: Tue, 19 May 1998 20:33:01 UTC

Severity: fixed

Merged with 17897, 18028, 18484, 18540

Found in versions 1.4.0.8, 1.4.0.20, 1.4.0.22

Done: Josip Rodin <joy@cibalia.gkvk.hr>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22649; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Jukka Neppius <jkn@softavenue.fi>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jukka Neppius <jkn@softavenue.fi>
To: submit@bugs.debian.org
Subject: dselect crashes
Date: 19 May 1998 23:24:00 +0300
Package: dpkg
Version: 1.4.0.22


I have collection of Debian 2.0 packages.  Downloaded mainly 5.5.98.
Some packages later, so I use 'scan' instead of Packages file.  I
started with clean partitions, because i wanted to protect old working
Debian.

Selection of packages is normal, but installation ends:
"internal error - no filename at -e line 12, <P> chunk 13.

 installation script returned error exit status 1.
 Press RETURN to continue."

Sometimes if i enter selection after this dselect crashes
(segmentation fault, core dump).  Twice this created invisible file(s)
of few MB.  Only trace of that file(s) is that outputs of df and du
don't match.

Only 'e2fsck -f' frees that disk space.

I tested with kernel from rescue disk and also 2.0.33 kernel i have
compiled earlier.  I have no hardware problems with old Debian
installation.  (486 DX2, 32 MB ram)

I guess some installation script crashes.  Dselect does not report
witch package is broken, not even with -D.  How do i found witch one?

Or at least i don't find this useful:
getcurrentopt() cmethopt open
getcurrentopt() cmethopt eof
getcurrentopt() cmethopt read
getcurrentopt() cmethopt len and newline
getcurrentopt() cmethopt space
getcurrentopt() cmethopt meth name `disk'
getcurrentopt() cmethopt meth found; opt `mounted'
getcurrentopt() cmethopt opt found


I tried to found it by selecting only few packages, but that failed.
Perhaps order in witch packages are installed is important.

I think this is also dselect bug, because it should report, at least
with -D, what it is going to try next.

I can test this more if someone replies soon.  

- Jukka Neppius  (jkn@softavenue.fi)



Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22649; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Ian Jackson <ian@chiark.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #10 received at submit@bugs.debian.org (full text, mbox, reply):

From: Ian Jackson <ian@chiark.greenend.org.uk>
To: Jukka Neppius <jkn@softavenue.fi>, 22649@bugs.debian.org
Cc: submit@bugs.debian.org
Subject: Re: Bug#22649: dselect crashes
Date: Wed, 20 May 1998 10:36:11 +0100
Jukka Neppius writes ("Bug#22649: dselect crashes"):
...
> Selection of packages is normal, but installation ends:
> "internal error - no filename at -e line 12, <P> chunk 13.

What immediately preceeds these messages ?

>  installation script returned error exit status 1.
>  Press RETURN to continue."
> 
> Sometimes if i enter selection after this dselect crashes
> (segmentation fault, core dump).  Twice this created invisible file(s)
> of few MB.  Only trace of that file(s) is that outputs of df and du
> don't match.

Are any processes left running ?

> Only 'e2fsck -f' frees that disk space.
> 
> I tested with kernel from rescue disk and also 2.0.33 kernel i have
> compiled earlier.  I have no hardware problems with old Debian
> installation.  (486 DX2, 32 MB ram)

I am still very suspicious of your hardware.  The unlinked file seems
particularly difficult, if dselect and its children have all exited.
Did you do a ps ?

I have not had any other reports offd dselect coredumping.

...
> I think this is also dselect bug, because it should report, at least
> with -D, what it is going to try next.

Probably -D should arrange for the method scripts to set `set -x'.

Ian.


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22649; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Ian Jackson <ian@chiark.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22649; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Jukka Neppius <jkn@softavenue.fi>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #20 received at 22649@bugs.debian.org (full text, mbox, reply):

From: Jukka Neppius <jkn@softavenue.fi>
To: 22649@bugs.debian.org
Subject: Re: Bug#22649: dselect crashes
Date: 25 May 1998 21:47:54 +0300
I have got only one reply (from Ian).  In case my reply to Ian
disappeared i'll answer again:

> What immediately preceeds these messages ?

New test:
- I reboot to debian 2.0 (root = hda2,  hda1 is debian 1.3 root)
- dselect
- i select install from menu and press enter
- i watch blank screen few seconds
internal error - no filename at -e line 12, <P> chunk 16.

installation script returned error exit status 1.
Press RETURN to continue.

- last lines of debug.log:
getcurrentopt() cmethopt open
getcurrentopt() cmethopt eof
getcurrentopt() cmethopt read
getcurrentopt() cmethopt len and newline
getcurrentopt() cmethopt space
getcurrentopt() cmethopt meth name `disk'
getcurrentopt() cmethopt meth found; opt `mounted'
getcurrentopt() cmethopt opt found

- i press RETURN to continue
- i selected select from menu. This time it worked normally.
- i select install from menu and press enter (again) 
- i watch blank screen few seconds
internal error - no filename at -e line 12, <P> chunk 16.

installation script returned error exit status 1.
Press RETURN to continue.
- i selected select from menu. (again) 
Segmentation fault (core dumped)

- no file system damage this time.  
-rw-------   1 root     root      3997696 May 21 09:18 core 
strings tell me that it is dselect core.  Do you want it?
(gziped & uucoded?)

last lines of debug.log:
packagelist[0x82c2218]::ensurestatsortinfos() i=1543 ssavail=5
packagelist[0x82c2218]::ensurestatsortinfos() i=1544 pkg=xzip
packagelist[0x82c2218]::ensurestatsortinfos() i=1544 ssavail=5
packagelist[0x82c2218]::sortinplace()
packagelist[0x82c2218]::sortmakeheads() sortorder=2 statsortorder=1
packagelist[0x82c2218]::addheading(-1,-1,-1,<null>,<null>)
packagelist[0x82c2218]::sortmakeheads() pkg=mailx  state=0 avail=288 
*diff  priority=1 otherpriority=<none> *diff*  section=mail *diff*
packagelist[0x82c2218]::addheading(0,-1,-1,<null>,<null>)     




 gdb --core=core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i486-debian-linux), Copyright 1996 Free Software Foundation, Inc.
Core was generated by `dselect -D ds.logi.15'.
Program terminated with signal 11, Segmentation fault.
#0  0x400f4a3e in ?? ()
(gdb) bt
#0  0x400f4a3e in ?? ()
#1  0x400f7a43 in ?? ()
#2  0x400f33d6 in ?? ()
#3  0x400fa251 in ?? ()
#4  0x804fbc2 in ?? ()
#5  0x805052c in ?? ()
#6  0x805096e in ?? ()
#7  0x804a8c2 in ?? ()
#8  0x804ac0b in ?? ()
#9  0x804ae45 in ?? ()


> Are any processes left running ?

Didn't check that, but e2fsck -f did found something to fix (not after
every test, but twice).  I had to use -f, because file system was
'clean'.  No file system errors in /usr, /var and /home.  Everything
else is in hda2 (root).  Only big related files in /root are core and
debug.log.  (This could be kernel/c-lib bug.)

> I am still very suspicious of your hardware.  The unlinked file seems
> particularly difficult, if dselect and its children have all exited.
> Did you do a ps ?

Sorry i didn't.  486 DX2 66, 32 MB REAL parity simm (has to be parity
simm for this mother).  I have tested over-clocking to DX2 80 with
same bios settings.  No errors in kernel compilation even then (20 %
less cpu time).  Unfortunately 40 MHz VLB bus speed is too much for
display controller (x-bug?).  So i'm using 66 MHz cpu clock.

I recompiled kernel.  No errors. I don't think i have hardware problem
(now:)

Related bugs (same?):

#18028: scanning package dir breaks install  
(92 days old.)

#17897: dpkg: dselect core dumped
( 95 days old. )

#17915: dselect seg faults
( 95 days old. ) 

#11631: dselect: internal error - no file name at -e line 12, <P> chunk 16.
( 286 days old. )

I should have checked those before posting my own, but i did only check 
developers' mailing list and did not look for so old messages:)

I compared my 'available' file with 'packages' file and 'available'
seems to be OK.  I don't have any broken links.  Almost all packages
have correct md5sums.  There are few i cannot test (138 packages are
newer or older than my md5sums file).

- Jukka (jkn@softavenue.fi)



Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22649; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Jukka Neppius <jkn@softavenue.fi>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #25 received at 22649@bugs.debian.org (full text, mbox, reply):

From: Jukka Neppius <jkn@softavenue.fi>
To: 22649@bugs.debian.org
Subject: Re: Bug#22649
Date: 31 May 1998 22:50:54 +0300
I did more testing:

 dselect install crashed, but dpkg -iGROEB did install packages without
major problems.  I selected more packages and dselect crashed when
trying to install.  Again dpkg -iGROEB installed everything.  Dselect
does not crash anymore, so i can't test this easily now.  

I tried earlier to find package causing dselect to crash, but failed.
Dselect crashed when starting to install small group of packages, but
installed those OK when selected one by one.

owner@bugs.debian.org tells me:
> It has been forwarded to the developer(s) and to the developers'
> mailing list to accompany the original report.

I haven't seen my bug reports on debian-devel@lists.debian.org.

- Jukka


Merged 17897 18028 18484 18540 22649. Request was from Josip Rodin <joy@cibalia.gkvk.hr> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `fixed'. Request was from Josip Rodin <joy@cibalia.gkvk.hr> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Josip Rodin <joy@cibalia.gkvk.hr>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Jukka Neppius <jkn@softavenue.fi>:
Bug acknowledged by developer. (full text, mbox, link).


Message #34 received at 17897-done@bugs.debian.org (full text, mbox, reply):

From: Josip Rodin <joy@cibalia.gkvk.hr>
To: 1399-done@bugs.debian.org, 13187-done@bugs.debian.org, 17877-done@bugs.debian.org, 17897-done@bugs.debian.org, 21330-done@bugs.debian.org, 46747-done@bugs.debian.org, 52919-done@bugs.debian.org
Subject: these bugs have all been fixed in the latest dpkg (1.6.9)
Date: Mon, 6 Mar 2000 18:25:13 +0100
Hi people,

These bugs you have reported have all been fixed in the latest dpkg
package, version 1.6.9.

     * #1399: dselect error handling not consistent
     * #6007: dselect pbm.

Dselect now displays a message saying that the database is inaccessible or
that it is locked, asks for <enter>, and returns to the main menu
afterwards.

     * #13187: --quiet|--verbose on update-alternatives don't do
       anything.

Verbosity ($verbosemode) has been implemented in update-alternatives.

     * #17877: dpkg: 'help' gets annoying after a while

There is a `--expert' command line option for dselect that turns off
automatic help messages.

     * #17897: dpkg: dselect core dumped
     * #18028: scanning package dir breaks install
     * #18484: dpkg: "internal error" in dselect
     * #18540: dpkg: unhelpful error message (invalid control file)
     * #22649: dselect crashes

This was an old bug in the "disk" access method, and it seems to have been
fixed long ago.

     * #21330: dpkg: link and use problems on non-snprintf platform

The snprintf usage in that file was fixed.

     * #46747: dpkg: [hurd] start-stop-daemon

This Hurd patch was applied.

     * #52919: dpkg: Dselect main menu title line incorrect (has %s,
       printf problem?).

This %s was fixed.

(Wichert, dpkg maintainer, has told me I may close these bug reports instead
of him)

Thanks for reporting.

-- 
enJoy -*/\*- don't even try to pronounce my first name


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 19 22:03:27 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.