Bug#348513: Segfault in Perl script (was: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc")

2006-02-02 Thread Hilmar Preusse
On 19.01.06 Frank Küster ([EMAIL PROTECTED]) wrote:

Hi all,

> But the segfault should be investigated; I'm unsure whether I just
> should reassign to perl - what do others think?
> 
Well, the perl package got recently a few bugs telling that it
segfaults. Is at all clear, exactly where in the script the perl
script segfaults?

H.
-- 
sigmentation fault


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-25 Thread Frank Küster
Hi Meik, hi Joshua,

Meik Hellmund <[EMAIL PROTECTED]> wrote:

> Why was the texdocrc file missing in the first place? Is it only installed if
> perl-tk is already present?

No, it's a bug in our postinst scripts.  The file is under ucf control
instead of dpkg's, because we have taken it over from the (vanished)
texdoctk package.  Up to version 3.0-11, we had many more files under
ucf control, but this is no longer necessary, and instead of dropping
the "many more" files, we simply dropped the whole piece of code and
forgot about texdocrc.

It will be fixed in the next upload; thanks for reporting.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-24 Thread Meik Hellmund

just my experience:

- I had tetex-* installed, but not perl-tk
- tried texdoctk and it told me to install perl-tk
- installed texdoctk and it failed with "Couldn't open system-wide default 
config file texdocrc"
- found this bug and did 
  cp /usr/share/tetex-base/texdocrc /etc/texdoctk/
- now the file is there but texdotk still fails with this error!
- strace texdoctk -> texdoctk asks kpsewhich for the location of this file
- mktexlsr ... now everything works fine.

Why was the texdocrc file missing in the first place? Is it only installed if
perl-tk is already present?


Best wishes, Meik  

-- 
Meik Hellmund
Institut fuer Mathematik, Uni Leipzig
e-mail: [EMAIL PROTECTED]
http://www.math.uni-leipzig.de/~hellmund


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: Segfault in Perl script (was: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc")

2006-01-19 Thread Ralf Stubner
On Thu, Jan 19, 2006 at 15:25 -0500, Joshua Lee wrote:

> This is really not an answer to that question, but perl-tk wasn't a
> required dependency of tetex-doc in sid. I added it to the apt-get line
> when I first got tetex-doc anyway - I figured I'd want it.

Why should tetex-doc depend on perl-tk? The binary in question
(texdoctk) is part of tetex-bin. And since this is the only binary in
there using perl-tk and most people probably use tetex-bin without using
texdoctk, tetex-bin only recommends perl-tk.

cheerio
ralf


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: Segfault in Perl script (was: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc")

2006-01-19 Thread Joshua Lee
On Thu, Jan 19, 2006 at 06:53:43PM +0100, Frank Küster wrote:
> So the part with the missing file is nearly clear - at least I cannot
> imagine how tetex could be responsible for it being deleted.  But the
> segfault should be investigated;  I'm unsure whether I just should
> reassign to perl - what do others think?

This is really not an answer to that question, but perl-tk wasn't a
required dependency of tetex-doc in sid. I added it to the apt-get line
when I first got tetex-doc anyway - I figured I'd want it.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: Segfault in Perl script (was: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc")

2006-01-19 Thread Frank Küster
Joshua Lee <[EMAIL PROTECTED]> wrote:

>> And, most importantly, what's the output of
>> 
>> dpkg -l perl perl-tk
>
>
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
> uppercase=bad)
> ||/ Name   VersionDescription
> +++-==-==-=
> ii  perl   5.8.7-10   Larry Wall's Practical Extraction and 
> Report Language
> ii  perl-tk804.027-1.1Perl module providing the Tk graphics 
> library.

So the part with the missing file is nearly clear - at least I cannot
imagine how tetex could be responsible for it being deleted.  But the
segfault should be investigated;  I'm unsure whether I just should
reassign to perl - what do others think?

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Bug#348513: [SPAM?]: Bug#348513: [SPAM?]: Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-19 Thread Joshua Lee
On Thu, Jan 19, 2006 at 09:12:17AM +0100, Frank Küster wrote:
> >> But it's much easier: simply copy /usr/share/tetex-base/texdocrc to
> >> /etc/texdoctk/texdocrc. 
> >
> > Unfortunately that doesn't seem to work either. I installed it from the
> 
> We don't understand each other.  The message is still "Couldn't open
> system-wide default config file texdocrc", right?  And the file
> /etc/texdoctk/texdocrc still does not exist?  You tried 
> 
> cp /usr/share/tetex-base/texdocrc /etc/texdoctk/

Hmm, funny, it worked this time. Now it works fine.

> And, most importantly, what's the output of
> 
> dpkg -l perl perl-tk


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-=
ii  perl   5.8.7-10   Larry Wall's Practical Extraction and Report 
Language
ii  perl-tk804.027-1.1Perl module providing the Tk graphics library.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: [SPAM?]: Bug#348513: [SPAM?]: Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-19 Thread Frank Küster
Joshua Lee <[EMAIL PROTECTED]> wrote:

> On Wed, Jan 18, 2006 at 03:01:29PM +0100, Frank Küster wrote:
>> Joshua Lee <[EMAIL PROTECTED]> wrote:
>> 
>> > I tried running dpkg -i --force-confmiss on the tetex-doc file in
>> > /var/cache/apt/archives and that still doesn't make it work.
>> 
>> Sorry, my fault.  First of all, I forgot that we use ucf to manage
>> /etc/texdoctk/texdocrc, and although this is a great workaround for some
>> missing features in dpkg's conffile handling, it doesn't understand
>> --force-confmiss.  Second, texdocrc is in fact in the package
>> tetex-base.
>> 
>> But it's much easier: simply copy /usr/share/tetex-base/texdocrc to
>> /etc/texdoctk/texdocrc. 
>
> Unfortunately that doesn't seem to work either. I installed it from the
> tetex-doc package from incoming so the --purge removal would be clean as
> well. Still same message and perl segfaulting.

We don't understand each other.  The message is still "Couldn't open
system-wide default config file texdocrc", right?  And the file
/etc/texdoctk/texdocrc still does not exist?  You tried 

cp /usr/share/tetex-base/texdocrc /etc/texdoctk/

without success?  What was the problem with that command?

And, most importantly, what's the output of

dpkg -l perl perl-tk

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Bug#348513: [SPAM?]: Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-18 Thread Joshua Lee
On Wed, Jan 18, 2006 at 03:01:29PM +0100, Frank Küster wrote:
> Joshua Lee <[EMAIL PROTECTED]> wrote:
> 
> > I tried running dpkg -i --force-confmiss on the tetex-doc file in
> > /var/cache/apt/archives and that still doesn't make it work.
> 
> Sorry, my fault.  First of all, I forgot that we use ucf to manage
> /etc/texdoctk/texdocrc, and although this is a great workaround for some
> missing features in dpkg's conffile handling, it doesn't understand
> --force-confmiss.  Second, texdocrc is in fact in the package
> tetex-base.
> 
> But it's much easier: simply copy /usr/share/tetex-base/texdocrc to
> /etc/texdoctk/texdocrc. 

Unfortunately that doesn't seem to work either. I installed it from the
tetex-doc package from incoming so the --purge removal would be clean as
well. Still same message and perl segfaulting.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: Segfault in Perl(-tk) script (was: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc")

2006-01-18 Thread Michael Schultheiss
Frank K�ster wrote:
> Hi Joshua, hi Perl(-tk) maintainers,
> 
> Joshua Lee <[EMAIL PROTECTED]> wrote:
> 
> > On Tue, Jan 17, 2006 at 03:10:42PM +0100, Frank Küster wrote:
> >> Joshua Lee <[EMAIL PROTECTED]> wrote:
> >> 
> >> > Package: tetex-doc
> >> > Version: 3.0-11
> >> > Severity: important
> >> >
> >> > texdoctk says "Couldn't open system-wide default config file texdocrc." 
> >> > then has a segmentation fault. 
> >> 
> >> If a perl script fails to open a file, it shouldn't give a *segfault*.
> >> Can you please send us the exact output?
> >
> > Couldn't open system-wide default config file texdocrc.
> > Segmentation fault
> 
> If I remove the file on my (sarge or sid) system, I get a Tk-window
> saying
> 
> ,
> |   FATAL ERROR
> | Couldn't open system-wide default config file texdocrc.
> |   Kill
> `
> 
> The "Kill" is in a button, and when I press it the perl script even
> exits with zero exit code.  It seems as if your perl installation has a
> problem.
> 
> Please send us the output of
> 
> dpkg -l perl
> dpkg -l perl-tk
> 
> There are a couple of segfaults reported against perl, but I don't have
> the experience to test whether this is a new one.

perl-tk was recently revved to a newer version in unstable to fix
release critical bugs.  Per my testing, the new version of perl-tk is
not always a drop in replacement for the older perl-tk version that was
previously available.  I originally uploaded the newer perl-tk to
experimental because of this.  My current plan is to contact the
maintainers of packages that depend on perl-tk and inform them that
their package may need to be rebuilt against the newer perl-tk package.

-- 

Michael Schultheiss
E-mail: [EMAIL PROTECTED]



Bug#348513: [SPAM?]: Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-18 Thread Frank Küster
Joshua Lee <[EMAIL PROTECTED]> wrote:

> On Wed, Jan 18, 2006 at 02:00:36PM +0100, Frank Küster wrote:
>> > subprocess post-removal script returned error exit status 1
>> > Errors were encountered while processing:
>> > tetex-doc
>> > E: Sub-process /usr/bin/dpkg returned an error code (1)
>> 
>> Sorry, that bug was just reported yesterday, it's fixed in 3.0-13 which
>> is in incoming right now.  If you want to work around it, simply touch
>> that file (as root, "touch /var/lib/texmf/helpindex.html").
>
> I tried touching the file now.  Reinstalling tetex-doc doesn't fix the bug
> I still get the missing file / segfault message when I try to run it.
[...]
>> Purging/reinstalling should bring it back; or download the tetex-doc deb
>> file and install it with "dpkg --force-confmiss ".
>
> I tried running dpkg -i --force-confmiss on the tetex-doc file in
> /var/cache/apt/archives and that still doesn't make it work.

Sorry, my fault.  First of all, I forgot that we use ucf to manage
/etc/texdoctk/texdocrc, and although this is a great workaround for some
missing features in dpkg's conffile handling, it doesn't understand
--force-confmiss.  Second, texdocrc is in fact in the package
tetex-base.

But it's much easier: simply copy /usr/share/tetex-base/texdocrc to
/etc/texdoctk/texdocrc. 

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Bug#348513: Segfault in Perl(-tk) script (was: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc")

2006-01-18 Thread Frank Küster
Hi Joshua, hi Perl(-tk) maintainers,

Joshua Lee <[EMAIL PROTECTED]> wrote:

> On Tue, Jan 17, 2006 at 03:10:42PM +0100, Frank Küster wrote:
>> Joshua Lee <[EMAIL PROTECTED]> wrote:
>> 
>> > Package: tetex-doc
>> > Version: 3.0-11
>> > Severity: important
>> >
>> > texdoctk says "Couldn't open system-wide default config file texdocrc." 
>> > then has a segmentation fault. 
>> 
>> If a perl script fails to open a file, it shouldn't give a *segfault*.
>> Can you please send us the exact output?
>
> Couldn't open system-wide default config file texdocrc.
> Segmentation fault

If I remove the file on my (sarge or sid) system, I get a Tk-window
saying

,
|   FATAL ERROR
| Couldn't open system-wide default config file texdocrc.
|   Kill
`

The "Kill" is in a button, and when I press it the perl script even
exits with zero exit code.  It seems as if your perl installation has a
problem.

Please send us the output of

dpkg -l perl
dpkg -l perl-tk

There are a couple of segfaults reported against perl, but I don't have
the experience to test whether this is a new one.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-18 Thread Joshua Lee
On Wed, Jan 18, 2006 at 02:00:36PM +0100, Frank Küster wrote:
> > subprocess post-removal script returned error exit status 1
> > Errors were encountered while processing:
> > tetex-doc
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> Sorry, that bug was just reported yesterday, it's fixed in 3.0-13 which
> is in incoming right now.  If you want to work around it, simply touch
> that file (as root, "touch /var/lib/texmf/helpindex.html").

I tried touching the file now.  Reinstalling tetex-doc doesn't fix the bug
I still get the missing file / segfault message when I try to run it.

> Hm, probably not, it might be that the helpindex.html file simply hasn't
> been created; it's a package bug.  But something or someone must have

When all of my tetex-* files are installed that file is there, and
contains HTML.

> Purging/reinstalling should bring it back; or download the tetex-doc deb
> file and install it with "dpkg --force-confmiss ".

I tried running dpkg -i --force-confmiss on the tetex-doc file in
/var/cache/apt/archives and that still doesn't make it work.

> As for the segfault, this is a different thing, I'll write a separate
> mail about that.

OK, thanks for your help.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-18 Thread Frank Küster
Joshua Lee <[EMAIL PROTECTED]> wrote:

>> I speculate that there is no file /etc/texdoctk/texdocrc.  Since this
>> file is a conffile, removing and reinstalling won't restore it; instead
>> you need to purge and reinstall.
>
> apt-get remove --purge tetex-doc
>
> Removing tetex-doc ...
> mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
> mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFDIST-TETEX... 
> mktexlsr: Updating /var/cache/fonts/ls-R... 
> mktexlsr: Updating /var/lib/texmf/ls-R... 
> mktexlsr: Done.
> rm: cannot remove `/var/lib/texmf/helpindex.html': No such file or
> directory
> dpkg: error processing tetex-doc (--purge):
> subprocess post-removal script returned error exit status 1
> Errors were encountered while processing:
> tetex-doc
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Sorry, that bug was just reported yesterday, it's fixed in 3.0-13 which
is in incoming right now.  If you want to work around it, simply touch
that file (as root, "touch /var/lib/texmf/helpindex.html").

>> Do you have an idea why the file was removed?
>
> That file? No, I didn't remove it. I removed some other files due to a
> message I read on google when I was trying to figure out how to fix it.
> That could be what's preventing me from removing it now.

Hm, probably not, it might be that the helpindex.html file simply hasn't
been created; it's a package bug.  But something or someone must have
deleted /etc/texdoctk/texdocrc, and texdoctk won't run without it.
Purging/reinstalling should bring it back; or download the tetex-doc deb
file and install it with "dpkg --force-confmiss ".

As for the segfault, this is a different thing, I'll write a separate
mail about that.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)




Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-18 Thread Joshua Lee
On Tue, Jan 17, 2006 at 03:10:42PM +0100, Frank Küster wrote:
> Joshua Lee <[EMAIL PROTECTED]> wrote:
> 
> > Package: tetex-doc
> > Version: 3.0-11
> > Severity: important
> >
> > texdoctk says "Couldn't open system-wide default config file texdocrc." 
> > then has a segmentation fault. 
> 
> If a perl script fails to open a file, it shouldn't give a *segfault*.
> Can you please send us the exact output?

Couldn't open system-wide default config file texdocrc.
Segmentation fault

This of course only appears if I run it in an xterm. If I run it from
the menu, it silently fails.

> > I've tried removing then reinstalling,
> > but that doesn't seem to help.
> 
> What's the output of 
> 
> ls -l /etc/texdoctk/

total 32
-rw-r--r-- 1 root root 30134 2005-01-18 00:51 texdoctk.dat

> I speculate that there is no file /etc/texdoctk/texdocrc.  Since this
> file is a conffile, removing and reinstalling won't restore it; instead
> you need to purge and reinstall.

apt-get remove --purge tetex-doc

Removing tetex-doc ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFDIST-TETEX... 
mktexlsr: Updating /var/cache/fonts/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
rm: cannot remove `/var/lib/texmf/helpindex.html': No such file or
directory
dpkg: error processing tetex-doc (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
tetex-doc
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
> Do you have an idea why the file was removed?

That file? No, I didn't remove it. I removed some other files due to a
message I read on google when I was trying to figure out how to fix it.
That could be what's preventing me from removing it now.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#348513: [SPAM?]: Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-17 Thread Frank Küster
Joshua Lee <[EMAIL PROTECTED]> wrote:

> Package: tetex-doc
> Version: 3.0-11
> Severity: important
>
> texdoctk says "Couldn't open system-wide default config file texdocrc." 
> then has a segmentation fault. 

If a perl script fails to open a file, it shouldn't give a *segfault*.
Can you please send us the exact output?

> I've tried removing then reinstalling,
> but that doesn't seem to help.

What's the output of 

ls -l /etc/texdoctk/

I speculate that there is no file /etc/texdoctk/texdocrc.  Since this
file is a conffile, removing and reinstalling won't restore it; instead
you need to purge and reinstall.

Do you have an idea why the file was removed?

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer




Bug#348513: tetex-doc: tetexdoctk fails with "Couldn't open system-wide default config file texdocrc"

2006-01-17 Thread Joshua Lee
Package: tetex-doc
Version: 3.0-11
Severity: important

texdoctk says "Couldn't open system-wide default config file texdocrc." 
then has a segmentation fault. I've tried removing then reinstalling,
but that doesn't seem to help.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages tetex-doc depends on:
ii  dpkg  1.13.11.1  package maintenance system for Deb

Versions of packages tetex-doc recommends:
ii  elinks [www-browser]  0.10.6-1   advanced text-mode WWW browser
ii  firefox [www-browser] 1.5.dfsg-4 lightweight web browser based on M
ii  gs-gpl [postscript-viewer]8.15-4.1   The GPL Ghostscript PostScript int
ii  gv [pdf-viewer]   1:3.6.1-12 PostScript and PDF viewer for X
ii  tetex-bin 3.0-13 The teTeX binary files
ii  xpdf  3.01-5 Portable Document Format (PDF) sui
ii  xpdf-reader [pdf-viewer]  3.01-5 Portable Document Format (PDF) sui
ii  xpdf-utils [pdf-viewer]   3.01-5 Portable Document Format (PDF) sui

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]