bugGNU Octave - Bugs: bug #56842, segfault with ftp

 
 

bug #56842: segfault with ftp

Submitter:  Muhali <muhali>
Submitted:  Sat 31 Aug 2019 05:47:09 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 Sep 2019 04:37:34 PM UTC, comment #3: 

This is a duplicate of bug #42429.

Mike Miller <mtmiller>
Group Member
Tue 03 Sep 2019 03:50:27 PM UTC, comment #2: 

Confirmed.  I ran the example from comment #0 on the development branch and can easily reproduce the segfault.  Interestingly, in past versions of Octave this has always led to an error, but not always to a segfault.  In 3.4.3 the interpreter generates the message


error: Quote command returned error


but returns to the Octave prompt.

Rik <rik5>
Group administrator
Sat 31 Aug 2019 05:54:21 PM UTC, comment #1: 

confirmed with dev:


octave:1> srv = ftp("ftp.ngdc.noaa.gov") ;
octave:2> cd(srv, "pub") ;
octave:3> ddir = dir(srv) ;
octave:4> srv
srv =

  FTP object
    host: ftp.ngdc.noaa.gov
    user: anonymous
     dir:
    mode: binary

octave:5> cd(srv, "pub") ;
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error
fatal: caught signal Aborted -- stopping myself...
Aborted (core dumped)


Trace in journalctl:


Aug 31 12:53:06 i7 systemd-coredump[28574]: Process 28559 (octave-gui) of user 1001 dumped core.

                                            Stack trace of thread 28565:
                                            #0  0x00007faf09021e75 raise (libc.so.6)
                                            #1  0x00007faf0900c895 abort (libc.so.6)
                                            #2  0x00007faf0940b6b6 n/a (libstdc++.so.6)
                                            #3  0x00007faf0941786c n/a (libstdc++.so.6)
                                            #4  0x00007faf094178c7 _ZSt9terminatev (libstdc++.so.6)
                                            #5  0x00007faf0e367e75 _Z10qTerminatev (libQt5Core.so.5)
                                            #6  0x00007faf0e3699ec n/a (libQt5Core.so.5)
                                            #7  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #8  0x00007faf090e5303 __clone (libc.so.6)

                                            Stack trace of thread 28560:
                                            #0  0x00007faf090da5c7 __poll (libc.so.6)
                                            #1  0x00007faf081f538a n/a (libxcb.so.1)
                                            #2  0x00007faf081f6ffa xcb_wait_for_event (libxcb.so.1)
                                            #3  0x00007faef5bfbbe8 n/a (libQt5XcbQpa.so.5)
                                            #4  0x00007faf0e39e786 n/a (libQt5Core.so.5)
                                            #5  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #6  0x00007faf090e5303 __clone (libc.so.6)

                                            Stack trace of thread 28561:
                                            #0  0x00007faf090da5c7 __poll (libc.so.6)
                                            #1  0x00007faf084711de n/a (libglib-2.0.so.0)
                                            #2  0x00007faf08471313 g_main_context_iteration (libglib-2.0.so.0)
                                            #3  0x00007faf08471361 n/a (libglib-2.0.so.0)
                                            #4  0x00007faf0849a4e2 n/a (libglib-2.0.so.0)
                                            #5  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #6  0x00007faf090e5303 __clone (libc.so.6)

                                            Stack trace of thread 28562:
                                            #0  0x00007faf090da5c7 __poll (libc.so.6)
                                            #1  0x00007faf084711de n/a (libglib-2.0.so.0)
                                            #2  0x00007faf08471313 g_main_context_iteration (libglib-2.0.so.0)
                                            #3  0x00007faef5d3aa9d n/a (libdconfsettings.so)
                                            #4  0x00007faf0849a4e2 n/a (libglib-2.0.so.0)
                                            #5  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #6  0x00007faf090e5303 __clone (libc.so.6)

                                            Stack trace of thread 28559:
                                            #0  0x00007faf090da5c7 __poll (libc.so.6)
                                            #1  0x00007faf084711de n/a (libglib-2.0.so.0)
                                            #2  0x00007faf08471313 g_main_context_iteration (libglib-2.0.so.0)
                                            #3  0x00007faf0e59abd5 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                                            #4  0x00007faf0e5449eb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                                            #5  0x00007faf0e54c726 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                                            #6  0x00007faf10bb199d _ZN6octave14qt_application7executeEv (liboctgui.so.5)
                                            #7  0x0000000000402371 main (octave-gui)
                                            #8  0x00007faf0900df33 __libc_start_main (libc.so.6)
                                            #9  0x000000000040260e _start (octave-gui)

                                            Stack trace of thread 28564:
                                            #0  0x00007faf090da5c7 __poll (libc.so.6)
                                            #1  0x00007faf084711de n/a (libglib-2.0.so.0)
                                            #2  0x00007faf08471313 g_main_context_iteration (libglib-2.0.so.0)
                                            #3  0x00007faf0e59abd5 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                                            #4  0x00007faf0e5449eb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                                            #5  0x00007faf0e39d635 _ZN7QThread4execEv (libQt5Core.so.5)
                                            #6  0x00007faef5b01f4a n/a (libQt5DBus.so.5)
                                            #7  0x00007faf0e39e786 n/a (libQt5Core.so.5)
                                            #8  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #9  0x00007faf090e5303 __clone (libc.so.6)

                                            Stack trace of thread 28566:
                                            #0  0x00007faf09022c62 __sigtimedwait (libc.so.6)
                                            #1  0x00007faf091c29bc sigwait (libpthread.so.0)
                                            #2  0x00007faf0dc62311 signal_watcher (liboctave.so.7)
                                            #3  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #4  0x00007faf090e5303 __clone (libc.so.6)

                                            Stack trace of thread 28563:
                                            #0  0x00007faf090da5c7 __poll (libc.so.6)
                                            #1  0x00007faf084711de n/a (libglib-2.0.so.0)
                                            #2  0x00007faf084715a3 g_main_loop_run (libglib-2.0.so.0)
                                            #3  0x00007faef4814d8a n/a (libgio-2.0.so.0)
                                            #4  0x00007faf0849a4e2 n/a (libglib-2.0.so.0)
                                            #5  0x00007faf091b85a2 start_thread (libpthread.so.0)
                                            #6  0x00007faf090e5303 __clone (libc.so.6)


Dmitri.
--


Dmitri A. Sergatskov <dasergatskov>
Sat 31 Aug 2019 05:47:09 PM UTC, original submission:  

the script below gives a segfault.


srv = ftp("ftp.ngdc.noaa.gov") ;
cd(srv, "pub") ;
ddir = dir(srv) ;
srv
cd(srv, "pub") ;


Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-03 mtmiller Dependencies- Depends on bugs #42429
    2019-09-03 mtmiller StatusConfirmed Duplicate
        Open/ClosedOpen Closed
    2019-09-03 rik5 CategoryNone Interpreter
        Item GroupNone Segfault, Bus Error, etc.
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code