On 04/29/2015 05:27 AM, Artem wrote:
> ????????????, Tim.
>
> ?? ?????? 29 ?????? 2015 ?., 1:21:00:
>
>> On 28 Apr 2015 at 23:14, Artem <devspec at yandex.ru> wrote:
>>>> How about trying the sqlite3.exe command line utility. put your
>>>> sql for that operation in a text file, launch the program, open
>>>> the database, then read in the sql file with the .read command.
>>>> If the error occurs, then possibly sqlite3. if not then it is
>>>> probably something else.
>>> I tried it and failed.
>>>
>>> Console log:
>>>
>>> f:\Suggests\test>sqlite3.exe single.db
>>> SQLite version 3.8.9 2015-04-08 12:16:33
>>> Enter ".help" for usage hints.
>>> sqlite> .read test.sql
>>> Error: near line 1: out of memory
>> That's not a segfault, though, is it.
> When I did the same in linux version of SQLite - I saw
> the "Segmentation Fault" error.

Maybe something to do with the optimistic allocation strategy Linux 
uses. Perhaps malloc() returned non-NULL but then a segfault occurred 
when it first tried to access the pages. From the man-page:

    By default, Linux follows an optimistic memory allocation
    strategy. This means that when malloc() returns non-NULL
    there is no guarantee that the memory really is available.

Or maybe the OOM killer took out the process. Or something.

Dan.


Reply via email to