bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Segmentation fault


From: Juergen Sauermann
Subject: Re: [Bug-apl] Segmentation fault
Date: Sun, 27 Apr 2014 17:56:33 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Blake,

0x86 is the culprit because the first byte of a non-ASCII UTF8 should be 11xx xxxx in binary.

I have changde the code so that the sequence is truncated after printing
the Bad UTF message and the stack trace and no assertion is thrown, SVN 227.

/// Jürgen


On 04/27/2014 04:28 AM, Blake McBride wrote:
I hit some bad keys on the keyboard while attempting to get rid of a SI and ended up with a segmentation fault. Here is what happened:

Note: WS test was not saved with a SI. It has a ⎕LX that causes a function named auto to execute. auto, in turn, attempted to call a function named start that does not exist. So, the initial error (VALUE ERROR) is expected. While attempting to pop the SI I hit some other keys accidentally and got the segmentation fault.


      )load test
SAVED 2014-4-27  1:46:48 (GMT-5)
VALUE ERROR
auto[11]  start
          ^
      asdg��→
Bad UTF8 string: 0x61 0x73 0x64 0x67 0x86 0x92 0xE2 0x86 0x92 at UCS_string.cc:65

----------------------------------------
-- Stack trace at UCS_string.cc:66
----------------------------------------
0x7f25b214bde5 __libc_start_main
0x434f8d  main
0x52682d   Workspace::immediate_execution(bool)
0x462bbd    Command::process_line()
0x475793     Input::get_line()
0x50b4d5      UCS_string::UCS_string(UTF8_string const&)
========================================

==============================================================================
Assertion failed: 0 && "Error in UCS_string::UCS_string()"
in Function:      UCS_string
in file:          UCS_string.cc:67

Call stack:

----------------------------------------
-- Stack trace at UCS_string.cc:67
----------------------------------------
0x7f25b214bde5 __libc_start_main
0x434f8d  main
0x52682d   Workspace::immediate_execution(bool)
0x462bbd    Command::process_line()
0x475793     Input::get_line()
0x50b4ee      UCS_string::UCS_string(UTF8_string const&)
0x44345f       do_Assert(char const*, char const*, char const*, int)
========================================

SI stack:

Depth:    1
Exec:     0xc558c8
Pmode:    ∇ auto[11]
PC:       58 ENDL
Stat:     start
err_code: 0x30001
thrown:   at Symbol.cc:679
e_msg_1:  'VALUE ERROR'
e_msg_2:  'auto[11]  start'
e_msg_3:  '          ^'

Depth:    0
Exec:     0xc38d40
Pmode:    ◊  auto
PC:       1 ENDL
Stat:     auto
err_code: 0x0
thrown:   at StateIndicator.cc:40
e_msg_1:  'No Error'
e_msg_2:  ''
e_msg_3:  ''


==============================================================================


====================================================
SEGMENTATION FAULT

----------------------------------------
-- Stack trace at main.cc:121
----------------------------------------
0x7f25b214bde5 __libc_start_main
0x434f8d  main
0x52682d   Workspace::immediate_execution(bool)
0x462bbd    Command::process_line()
0x475793     Input::get_line()
0x50b4ee      UCS_string::UCS_string(UTF8_string const&)
0x443407       do_Assert(char const*, char const*, char const*, int)
0x4ff0be        TestFiles::assert_error()
0x7f25b39a5bb0
0x47973a
========================================
====================================================
Segmentation fault





reply via email to

[Prev in Thread] Current Thread [Next in Thread]