[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#863039: libwvstreams4.6-base: wvdial crashes with Assertion `*current_task->stack_magic == WVTASK_MAGIC' failed



Hi

This patch worked for me:

Index: b/utils/wvtask.cc
===================================================================
--- a/utils/wvtask.cc
+++ b/utils/wvtask.cc
@@ -429,7 +429,7 @@ void WvTaskMan::_stackmaster()
 	    total = (val+1) * (size_t)1024;
 	    
             if (!use_shared_stack())
-                total = 1024; // enough to save the do_task stack frame
+                total = 2048; // enough to save the do_task stack frame
 
 	    // set up a stack frame for the new task.  This runs once
 	    // per get_stack.


I included quilt formated patch and series updated 


On Sat, May 20, 2017 at 03:57:23PM +0200, Mash wrote:
> Package: libwvstreams4.6-base
> Version: 4.6.1-11
> Severity: important
> 
> Dear Maintainer,
> 
> After upgrading from jessie to sid wvdial is unusable. When trying to
> connect it stops on error:
> wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion
> `*current_task->stack_magic == WVTASK_MAGIC' failed.
> 
> Was trying to downgrade to 4.6.1-7 version wich causes another error:
> wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion
> `*current_task->stack_magic == 0x123678' failed.
> 
> Debugging:
> (gdb) r
> Starting program: /usr/bin/wvdial
> --> WvDial: Internet dialer version 1.61
> --> Initializing modem.
> --> Sending: AT+CGDCONT=1,"IP","xxxxxxxx"
> AT+CGDCONT=1,"IP","xxxxxxxx"
> OK
> --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
> OK
> --> Modem initialized.
> --> Sending: ATDT*99#
> --> Waiting for carrier.
> ATDT*99#
> wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion
> `*current_task->stack_magic == WVTASK_MAGIC' failed.
> 
> Program received signal SIGABRT, Aborted.
> 0x00007ffff66dafcf in raise () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) c
> Continuing.
> 
> Program terminated with signal SIGABRT, Aborted.
> The program no longer exists.
> 
> 
> -- System Information:
> Debian Release: 9.0
>   APT prefers unstable
>   APT policy: (990, 'unstable'), (100, 'testing')
> Architecture: amd64
>  (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages libwvstreams4.6-base depends on:
> ii  libc6       2.24-10
> ii  libgcc1     1:6.3.0-18
> ii  libstdc++6  6.3.0-18
> ii  zlib1g      1:1.2.8.dfsg-5
> 
> libwvstreams4.6-base recommends no packages.
> 
> libwvstreams4.6-base suggests no packages.
> 
> -- no debconf informatio
> 
> 


 -- gsm: +48 607161969
Description: Fix wvdial assertion
Author: Karol Ossowski <karol.ossowski@gmail.com>
Last-Updated: 2017-12-22
Forwarded: No
Bug-Debian: https://bugs.debian.org/863039


Index: b/utils/wvtask.cc
===================================================================
--- a/utils/wvtask.cc
+++ b/utils/wvtask.cc
@@ -429,7 +429,7 @@ void WvTaskMan::_stackmaster()
 	    total = (val+1) * (size_t)1024;
 	    
             if (!use_shared_stack())
-                total = 1024; // enough to save the do_task stack frame
+                total = 2048; // enough to save the do_task stack frame
 
 	    // set up a stack frame for the new task.  This runs once
 	    // per get_stack.
01_kfreebsd_ftbfs.diff
02_doc_path.diff
03_html_sgml.diff
04_signed_request.diff
06_gcc-4.7.diff
07_buildflags.diff
08_openssl-1.0.diff
09_glibc-2.12.diff
10_readline.diff
11_typos.diff
gcc-6.patch
wvdial_wvtask_bugfix.diff

Reply to: