"D. Richard Hipp" <d...@hwaci.com> writes:

> On Dec 7, 2009, at 8:41 PM, Andreas Schwab wrote:
>
>> D. Richard Hipp writes:
>>
>>> As always, please let us know if you encounter any difficulties with
>>> this or any other SQLite release.
>>
>> It's still crashing due to undefined behaviour.
>>
>> $ ./sqlite3 :memory: 'create table test(integer)'
>> Segmentation fault
>>
>
>
> I am unable to reproduce this behavior.  The example above works fine
> here.  I also ran your command using valgrind and it reports no  problems.

That's the very nature of undefined behaviour.  You are violating the C
aliasing rules, and the compiler has all freedom to wreck havoc of your
code.  QED.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to