Issue Details (XML | Word | Printable)

Key: CORE-5562
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Alexander Peshkov
Reporter: Alexander Muylaert-Gelein
Votes: 0
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Firebird crashes when UDF (Delphi?) gets loaded and unloaded frequently

Created: 07/Jun/17 06:27 PM   Updated: 22/Jun/17 10:43 AM
Component/s: Engine
Affects Version/s: 3.0.2
Fix Version/s: 4.0 Alpha 1, 3.0.3

File Attachments: 1. Zip Archive all.zip (513 kB)
2. Zip Archive Fast.zip (436 kB)
3. File structure.sql (0.9 kB)
4. Zip Archive UdfCrash.zip (223 kB)
5. Zip Archive WpfApp1.zip (10 kB)

Environment: win64 / fb3 64
Issue Links:
Duplicate
 

QA Status: Cannot be tested
Test Specifics: Platform (Windows/Linux) specific


 Description  « Hide
Engine crashes when you frequently load and unload UDF dll in firebird. Especially when you're accessing multiple databases.

To reproduce

1. Copy the fast.dll to the udf folder.
2. copy multiple versions of the test.fdb to "d:\1\test.Fdb", "d:\2\test.fdb" ... "d:\10\test.fdb"
3. Launch firebird
4. Run the attached app. Or basically, Open a connection, execute the UDF function, close the connection.

Do this with multiple threads on multiple databases. The firebird process will crashes within 10 minutes with an access violation.

Workaround is to open another database that uses the udf. As long as the dll stays in memory, no crashes. As soon as it is unloaded, you have a fair chance that it crashes.



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Muylaert-Gelein made changes - 07/Jun/17 06:30 PM
Field Original Value New Value
Attachment all.zip [ 13133 ]
Alexander Muylaert-Gelein made changes - 07/Jun/17 07:19 PM
Attachment Fast.zip [ 13134 ]
Alexander Muylaert-Gelein made changes - 07/Jun/17 07:29 PM
Attachment structure.sql [ 13135 ]
Vlad Khorsun made changes - 07/Jun/17 07:55 PM
Assignee Vlad Khorsun [ hvlad ]
Alexander Muylaert-Gelein made changes - 08/Jun/17 05:56 AM
Attachment UdfCrash.zip [ 13136 ]
Attachment WpfApp1.zip [ 13137 ]
Alexander Peshkov made changes - 08/Jun/17 09:39 AM
Assignee Vlad Khorsun [ hvlad ] Alexander Peshkov [ alexpeshkoff ]
Alexander Peshkov made changes - 08/Jun/17 09:45 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 4.0 Alpha 1 [ 10731 ]
Fix Version/s 3.0.3 [ 10810 ]
Resolution Fixed [ 1 ]
Mark Rotteveel made changes - 08/Jun/17 03:26 PM
Link This issue is duplicated by CORE-5560 [ CORE-5560 ]
Mark Rotteveel made changes - 08/Jun/17 03:27 PM
Link This issue is duplicated by CORE-5561 [ CORE-5561 ]
Pavel Zotov made changes - 22/Jun/17 10:43 AM
Status Resolved [ 5 ] Resolved [ 5 ]
Test Specifics [Platform (Windows/Linux) specific]
QA Status No test Cannot be tested
Pavel Zotov made changes - 22/Jun/17 10:43 AM
Status Resolved [ 5 ] Closed [ 6 ]