Hi , I am working in Sqlite 3.3.6 source files. I tried to insert one record and I found that sqlite3GenericFree (p) is called. But that address is not allocated using sqlite3GenericMalloc (int n). Is this Correct.Kindly clarify. Will all memory gets allocated and freed inside os_common.h or at some other place.
But I can insert that record without any problem .Then I tried to insert some 10000 records but at that time it hangs inside sqlite3Parser () --- > yy_reduce. To fix this what changes I have to do in my code. In Parse.c I found some line of codes like: #ifndef NDEBUG /* Silence complaints from purify about yygotominor being uninitialized In some cases when it is copied into the stack after the following Switch. yygotominor is uninitialized when a rule reduces that does Not set the value of its left-hand side nonterminal. Leaving the Value of the nonterminal uninitialized is utterly harmless as long As the value is never used. So really the only thing this code accomplishes is to quieten purify. */ memset (&yygotominor, 0, sizeof (yygotominor)); #endif But in (SQLite ticket #2172) I read that: The wireshark project (www.wireshark.org) reports that without this code, their parser segfaults. I'm not sure what there parser is doing to make this happen. This is the second bug report from wireshark this week. Clearly they are stressing Lemon in ways that it has not been previously stressed... So they removed that #ifndef NDEBUG. Please help me solve this issue. Thanks & Regards, Mahalakshmi _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users