wvdial modem detection hangs dapper installer

Bug #31272 reported by Kevin Otte
34
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WvDial
Fix Released
Undecided
Unassigned
Debian
Fix Released
Undecided
Unassigned
wvstreams (Ubuntu)
Fix Released
Medium
Simon Law

Bug Description

During the installation of Dapper Drake (from current as of this writing):

Configuration of the wvdial package attempts to probe serial ports for a modem. It sat for a good 5 minutes trying to talk to ttyS0, on which there is nothing attached. I finally gave up and went over to the console on tty2 and killed the PID associated with wvdialconfig, not really curious as to how long it would take to time out.

Revision history for this message
Jan Schmidt (thaytan) wrote :

Suffering the same problem here. I can't keep ubuntu-desktop because it hauls in wvdial and breaks:

Setting up wvdial (1.55-1ubuntu1) ...
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
ircomm0<*1>: ATQ0 V1 E1 -- failed at 9600 and 19200 baud.

Revision history for this message
tenzin (tenzintrepp-gmail) wrote :

Yeah...got the same Problem...

...so for me I can's install dapper on my laptop....I hope it will be better on the next flight...

...or does anybody knows a workaround???

~tenzin

Revision history for this message
Matt Zimmerman (mdz) wrote :

wvdial shouldn't do this sort of thing during installation; if this is still the case, it should be disabled

Changed in wvdial:
assignee: nobody → mvo
Revision history for this message
Michael Vogt (mvo) wrote : debdiff with the proposed changes

This will install a empty wvdial.conf and skip auto-detection of the modem.

Revision history for this message
Michael Vogt (mvo) wrote :

After some discussion with wvdial upstream I think disabling the auto-configuration should be the last resort.

Could one of the people who have this problem please run:
$ sudo strace wvdialconf 2> /tmp/wvdial.strace

and attach the strace file? It's fine if you press CTRL-C when it hangs, this way we should be able to get the command that caused the hang.

Thanks,
 Michael

Changed in wvdial:
status: Unconfirmed → Needs Info
Revision history for this message
Matt Zimmerman (mdz) wrote :

Sure, just don't forget to disable it before the release if no other solution is found

Revision history for this message
Matt Zimmerman (mdz) wrote :

This bug needs more information from someone experiencing the problem, in order to solve it correctly. Please respond to Michael's request

Revision history for this message
Simon Law (sfllaw) wrote : [Bug 31272] Re: wvdial modem detection hangs dapper installer

Hello.

Are any of you still experiencing this WvDial bug?

If so, would you please run:
$ sudo strace wvdialconf 2> /tmp/wvdial.strace

and attach the /tmp/wvdial.strace file to this the bug? You can hit
Control-C when it hangs, this way we can see what WvDial is doing that
blocks it.

Cheers,
--
Simon Law http://www.law.yi.org/~sfllaw/

Revision history for this message
Eric Johnson (eric-el-studio) wrote : strace of wvdialconf

Output of `sudo strace wvdialconf` showing the hang upon detection of irda modem.

IBM Thinkpad X22, nsc_ircc module loaded for irda.

As a workaround: wvdialconf succeeds if nsc_ircc is not loaded.

Revision history for this message
Simon Law (sfllaw) wrote :

It looks like it's hanging on the close syscall for /dev/ircomm0.
Which seems to correlate with what you're saying.

We need a timeout for that, so it doesn't stall there indefinitely.

Revision history for this message
Simon Law (sfllaw) wrote :

tcflush() may also be the right solution here.

Revision history for this message
Simon Law (sfllaw) wrote :

Eric,

I can't reproduce it here, but I think I might have a solution to the
problem. Are you comfortable with recompiling things? If so, I
may have a fix that we can test out.

Please do the following:
1. Install the devscripts package
2. apt-get build-dep wvstreams
3. apt-get source wvstreams
4. cd wvstreams-4.2.2/streams
5. Edit wvmodem.cc
6. On line 277, right after "tcsetattr(getrfd(), TCSANOW, &old_t);",
add a line that says "tcflush(getrfd(), TCIOFLUSH);
7. cd ..
8. Run debuild
9. Run debi

See if wvdialconf hangs anymore. If so, an strace would be nice.

If not, we celebrate!

Revision history for this message
Eric Johnson (eric-el-studio) wrote :

We celebrate!

The patch fixes the problem.

Works just fine now -- wvdialconf finds the regular modem, then happily cranks through serial ports and ircomm0 through 31 looking for another.

Not sure that wvdialconf actually writes the config file, but that's an issue for another bug...

Thanks!

Revision history for this message
Eric Johnson (eric-el-studio) wrote : working wvdialconf output - with tcflush patch applied

It works with the patch!

Revision history for this message
Simon Law (sfllaw) wrote :

This is actually a WvStreams bug.

Changed in wvdial:
status: Needs Info → In Progress
Revision history for this message
Simon Law (sfllaw) wrote :

Uploaded in the queue

Changed in wvstreams:
assignee: mvo → sfllaw
status: In Progress → Fix Released
Kevin Otte (nivex)
Changed in wvdial:
status: New → Fix Committed
Revision history for this message
Kevin Otte (nivex) wrote :

bug closed upstream. launchpad bug can be closed.

Revision history for this message
Kevin Otte (nivex) wrote :

Set to "Fix Released" to remove from list

Changed in wvdial:
status: Fix Committed → Fix Released
Revision history for this message
Kevin Otte (nivex) wrote :

Link to Debian BT was severed somehow. Manually closing.

Changed in debian:
importance: Unknown → Undecided
status: New → Fix Released
Revision history for this message
Konstantin (jakshi) wrote :

Same bug affected Ubuntu 11.10 Oneric

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.