Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wvdial - segmentation fault #50811

Open
tuxslack opened this issue Jun 13, 2024 · 1 comment
Open

wvdial - segmentation fault #50811

tuxslack opened this issue Jun 13, 2024 · 1 comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@tuxslack
Copy link

tuxslack commented Jun 13, 2024

Is this a new report?

Yes

System Info

Void Linux kernel 6.6.32_1 x86_64

Package(s) Affected

wvdial-1.61_8 x86_64

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Use wvdial without Segmentation Fault.

I think it's just a compilation bug.

Actual behaviour

wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer:
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 -- ^BOOT:23425710,0,0,0,88
ttyUSB1<*1>: failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer:
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP",""
AT+CGDCONT=1,"IP",""
OK
--> Modem initialized.
--> Sending: ATDT
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
Segmentation fault

ldd which wvdial
linux-vdso.so.1 (0x00007fff5fbf0000)
libuniconf.so.4.6 => /usr/lib/libuniconf.so.4.6 (0x00007ff94f211000)
libwvstreams.so.4.6 => /usr/lib/libwvstreams.so.4.6 (0x00007ff94f140000)
libwvutils.so.4.6 => /usr/lib/libwvutils.so.4.6 (0x00007ff94f017000)
libwvbase.so.4.6 => /usr/lib/libwvbase.so.4.6 (0x00007ff94ef86000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff94ec00000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007ff94ef62000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007ff94ea16000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007ff94ef46000)
libssl.so.3 => /usr/lib/libssl.so.3 (0x00007ff94e920000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007ff94e200000)
libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x00007ff94ef0a000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007ff94f2ae000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007ff94e83e000)

xbps-query -S wvdial
architecture: x86_64
conf_files:
/etc/ppp/peers/wvdial
/etc/ppp/peers/wvdial-pipe
filename-sha256: 670b6d9d516430fb74d03f51b717291de7814322d0ee90685947f8140c0cf5c9
filename-size: 72KB
homepage: https://code.google.com/p/wvstreams/
install-date: 2024-01-18 02:06 -03
installed_size: 190KB
license: LGPL-2.0-only
maintainer: Enno Boland [email protected]
metafile-sha256: fdad885aab176434c6c006d56f8ca1316c6fb88cbf1a538a7a197e99e167bf3a
pkgname: wvdial
pkgver: wvdial-1.61_8
repository: https://repo-default.voidlinux.org/current
run_depends:
ppp>=0
wvstreams>=4.6.1_20
libstdc++>=4.4.0_1
libgcc>=4.4.0_1
glibc>=2.32_1
shlib-requires:
libuniconf.so.4.6
libwvstreams.so.4.6
libwvutils.so.4.6
libwvbase.so.4.6
libstdc++.so.6
libgcc_s.so.1
libc.so.6
short_desc: Point-to-Point Protocol dialer
source-revisions: wvdial:afca7b0266
state: installed

Steps to reproduce

To reproduce the bug just run wvdial as Root which at the end of the output shows "Segmentation fault".

The /etc/wvdial.conf file is configured.

wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP",""
AT+CGDCONT=1,"IP",""
OK
--> Modem initialized.
--> Sending: ATDT
--> Waiting for carrier.
ATDT
CONNECT
--> Carrier detected. Waiting for prompt.
Segmentation fault

@tuxslack tuxslack added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Jun 13, 2024
@sgn
Copy link
Member

sgn commented Jun 14, 2024

Can you share a backtrace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants