Crash at startup

Bug #459920 reported by Fabián Rodríguez
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gscan2pdf (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gscan2pdf

When I start gscan2pdf from command line I get the following:

 (24765): Couldn't start the listening server: IO::Socket::INET: Cannot assign requested address at /usr/lib/perl5/forks.pm line 3620
 threads::_croak('Couldn\'t start the listening server: IO::Socket::INET: Canno...') called at /usr/lib/perl5/forks.pm line 1256
 threads::_init() called at /usr/lib/perl5/forks.pm line 498
 require forks.pm called at /usr/bin/gscan2pdf line 106
 main::BEGIN() called at /usr/lib/perl5/forks.pm line 0
 eval {...} called at /usr/lib/perl5/forks.pm line 0
Compilation failed in require at /usr/bin/gscan2pdf line 106.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 106.

ProblemType: Bug
Architecture: i386
Date: Sat Oct 24 13:58:44 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gscan2pdf 0.9.29-1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gscan2pdf
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Fabián Rodríguez (magicfab) wrote :
Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [Bug 459920] [NEW] Crash at startup

Works fine here. Do you get this every time?

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

Marked as invalid, I can't reproduce on an updated karmic.

Changed in gscan2pdf (Ubuntu):
status: New → Invalid
Revision history for this message
1guess (ubuntu1-1guess) wrote :

I have the same issue:
$ gscan2pdf
 (2151): Couldn't connect to query server: IO::Socket::INET: connect: Connection timed out at /usr/lib/perl5/forks.pm line 3620
 threads::_croak('Couldn\'t connect to query server: IO::Socket::INET: connect:...') called at /usr/lib/perl5/forks.pm line 2128
 threads::_init_thread('HASH(0x1969af0)') called at /usr/lib/perl5/forks.pm line 1341
 threads::_init_main(1) called at /usr/lib/perl5/forks.pm line 1285
 threads::_init() called at /usr/lib/perl5/forks.pm line 498
 require forks.pm called at /usr/bin/gscan2pdf line 106
 main::BEGIN() called at /usr/lib/perl5/forks.pm line 0
 eval {...} called at /usr/lib/perl5/forks.pm line 0
Compilation failed in require at /usr/bin/gscan2pdf line 106.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 106.

I have the latest current stable version (10.04) with updates.

$ uname -a
Linux 2guess 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux

Revision history for this message
1guess (ubuntu1-1guess) wrote :

I attempted a basic un-install and re-install and it appears to have had no effect and the list of packages install is the same before un-install and after re-installing.
I will attach the list of packages installed when gscan2pdf is installed and also when it is un-installed.

Revision history for this message
1guess (ubuntu1-1guess) wrote :
Revision history for this message
1guess (ubuntu1-1guess) wrote :
Revision history for this message
1guess (ubuntu1-1guess) wrote :

After modifying forks.pm to output the $PORT in the croak at line 2126 and 2131, I could confirm it was not a reserved port. I then realized that my firewall was blocking the connection (127.0.0.1). I disabled the firewall (iptables) and the application ran perfectly without issue. My issue has been resolved.

The steps I used to disable my firewall are:
#iptables --flush
#iptables -X
#iptables --policy INPUT ACCEPT
#iptables --policy FORWARD DROP
#iptables --policy OUTPUT ACCEPT

I manually modified my firewall settings and re-enable to permanently resolve this issue.

Revision history for this message
Aviv (ademorga) wrote :

Firewall configuration as suggested by 1guess on 2010-10-05 did not help me.

###@###-desktop:~$ gscan2pdf --debug
(12556): Couldn't connect to query server: IO::Socket::INET: connect: Connection refused at /usr/lib/perl5/forks.pm line 3620
    threads::_croak('Couldn\'t connect to query server: IO::Socket::INET: connect:...') called at /usr/lib/perl5/forks.pm line 2128
    threads::_init_thread('HASH(0x9f9ffe0)') called at /usr/lib/perl5/forks.pm line 1341
    threads::_init_main(1) called at /usr/lib/perl5/forks.pm line 1285
    threads::_init() called at /usr/lib/perl5/forks.pm line 498
    require forks.pm called at /usr/bin/gscan2pdf line 106
    main::BEGIN() called at /usr/lib/perl5/forks.pm line 0
    eval {...} called at /usr/lib/perl5/forks.pm line 0
Compilation failed in require at /usr/bin/gscan2pdf line 106.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 106.

Occurs when typing gscan2pdf in terminal

DistroRelease: Ubuntu 10.04
Perl version: 5.10.1-8ubuntu2
Package: gscan2pdf 0.9.29-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
Architecture: i386
Date: Mon Nov 15 10:01:56 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gscan2pdf

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [Bug 459920] Re: Crash at startup

2010/11/20 Aviv <email address hidden>:
> Firewall configuration as suggested by 1guess on 2010-10-05 did not help
> me.
>
> ###@###-desktop:~$ gscan2pdf --debug
> (12556): Couldn't connect to query server: IO::Socket::INET: connect: Connection refused at /usr/lib/perl5/forks.pm line 3620
>    threads::_croak('Couldn\'t connect to query server: IO::Socket::INET: connect:...') called at /usr/lib/perl5/forks.pm line 2128

gscan2pdf does not depend directly on IO::Socket::INET, so this is not
a bug in gscan2pdf.

However, assuming that this is a problem with forks, try swapping
forks for threads, as per this patch[1]

[1] http://patch-tracker.debian.org/patch/series/dl/gscan2pdf/0.9.31-2/replace-forks-with-threads

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.