Codeigniter - 内存耗尽

I'm currently working with Codeigniter and a MSSQL database connection. Sometimes, I get this error message :

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 139817425963032 bytes) in Unknown on line 0.

I'm overwhelmed by the idea that the application needs 139817425963032 bytes (130 Tb) to work.

Can someone help me ?

This is typically caused by operations which result in recursion, logging (e.g. var_dump) large chunks of data (like an array of models), etc.

Looks like a 64-bit pointer (only 48 bits are used for virtual address on modern x86-64) got passed to malloc().

Must be a bug in some extension, if it only happens sometimes, it could be e.g. a buffer overflow. If it happens all the time, it out to be regular bug.