This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x wvdial SIGSEGV issue

Hi,

I'm using Arago Project to build core-image-minimal running on beaglebone black with processor-sdk-01.00.00.00-config.txt.
my wvdial program always is Segmentation fault, and the flowing text is gdb trace log.

BTW, I could use pppd / chat to establish 3G connection, so i'm sure my modem, PPP, and USB ACM driver are OK.
Did anyone have same problem?

root@am335x-evm:/etc#
root@am335x-evm:/etc# gdb -q wvdial
Reading symbols from /usr/bin/wvdial...Reading symbols from /usr/bin/.debug/wvdial...done.
done.
(gdb) r
Starting program: /usr/bin/wvdial
warning: File "/lib/libstdc++.so.6.0.17-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /lib/libstdc++.so.6.0.17-gdb.py
line to your configuration file "/home/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"

Program received signal SIGILL, Illegal instruction.
0xb69af188 in ?? () from /lib/libcrypto.so.1.0.0
(gdb) c
Continuing.
Cannot access memory at address 0x0
--> 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","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
--> Idle Seconds = 30, disabling automatic reconnect.

Program received signal SIGSEGV, Segmentation fault.
0xb6dce614 in WvTaskMan::_stackmaster () at utils/wvtask.cc:427
warning: Source file is more recent than executable.
427                 assert(magic_number == -WVTASK_MAGIC);
(gdb) bt
#0  0xb6dce614 in WvTaskMan::_stackmaster () at utils/wvtask.cc:427
#1  0x00030130 in ?? ()
Cannot access memory at address 0xffffffff
#2  0x00030130 in ?? ()
Cannot access memory at address 0xffffffff
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

  • Can you try to test this with the latest SDK: ti-processor-sdk-linux-am437x-evm-01.00.00.03 ?

    Best Regards,
    Yordan
  • I used am335x, so i built core-image-minimal with wvdial and wvstream packages form Arago with processor-sdk-01.00.00.03-config.txt.


    but it still happens Segmentation fault when running ppp connecting. 

    BTW, I tried to use Debian using apt-get install wvdial, that could be running well.

    root@am335x-evm:~# wvdial
    --> WvDial: Internet dialer version 1.61
    --> Initializing modem.
    --> Sending: ATZ
    TZ
    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","internet"
    AT+CGDCONT=1,"IP","internet"
    OK
    --> Modem initialized.
    --> Idle Seconds = 30, disabling automatic reconnect.
    Segmentation fault

  • Did you find any solution for this, I have the same problem with SDK 2.00.02.11?
  • No, I have used pppd & chat to dial up data call.

    But I used ubuntu version of wdial program running on TI SDK image, I didn't meet this kind of crash issue.

    So I think some options were not compatible in SDK cross compile process, I do not find out root cause.

    Thanks.