You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2022/06/20 22:06:45 UTC

[GitHub] [age] bravius opened a new issue, #235: MERGE followed by SET causes segfault

bravius opened a new issue, #235:
URL: https://github.com/apache/age/issues/235

   **Describe the bug**
   
   MERGE followed by SET causes server process segfault.
   
   **How are you accessing AGE (Command line, driver, etc.)?**
   
   Bundled Node 'pg-age' driver.
   
   **What data setup do we need to do?**
   ```pgsql
   ...
   SELECT create_graph('test');
   SELECT create_vlabel('test', 'node');
   SELECT * FROM cypher('test', $$ CREATE (n:node {name: 'Jason'}) RETURN n $$) AS (n agtype);
   ...
   ```
   
   **What is the necessary configuration info needed?**
   
   None.
   
   **What is the command that caused the error?**
   ```pgsql
   SELECT * FROM cypher('test', $$ MERGE (n:node {name: 'Jason'}) SET n.name = 'Lisa' RETURN n $$) AS (n agtype);
   ```
   ```
   LOG:  server process (PID 4853) was terminated by signal 11: Segmentation fault
   
   DETAIL:  Failed process was running: SELECT * FROM cypher('test', $$ MERGE (n:node {name: 'Jason'}) SET n.name = 'Lisa' RETURN n $$) AS (n agtype)
   
   LOG:  terminating any other active server processes
   
   WARNING:  terminating connection because of crash of another server process
   
   DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
   
   HINT:  In a moment you should be able to reconnect to the database and repeat your command.
   
   LOG:  all server processes terminated; reinitializing
   
   LOG:  database system was interrupted; last known up at 2022-06-20 20:15:58 UTC
   
   FATAL:  the database system is in recovery mode
   
   LOG:  database system was not properly shut down; automatic recovery in progress
   
   LOG:  redo starts at 0/521B0A0
   
   LOG:  invalid record length at 0/526E288: wanted 24, got 0
   
   LOG:  redo done at 0/526E250
   
   LOG:  last completed transaction was at log time 2022-06-20 20:16:12.938992+00
   
   LOG:  database system is ready to accept connections
   ```
   
   **Expected behavior**
   
   Execute cypher query with no crashy crashy.
   
   **Environment (please complete the following information):**
   
   - postgresql with age extension running in Docker container on Windows 10 and WSL2
   - Compiled from master.
   
   **Additional context**
   
   None.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] jrgemignani commented on issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
jrgemignani commented on issue #235:
URL: https://github.com/apache/age/issues/235#issuecomment-1162311411

   Not sure, this appears to be specifically related to SET


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] pdpotter commented on issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
pdpotter commented on issue #235:
URL: https://github.com/apache/age/issues/235#issuecomment-1162269166

   Could this be related to https://github.com/apache/age/discussions/232#discussioncomment-2911728, where the return value differs depending on whether a node exists before executing a MERGE?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] bravius commented on issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
bravius commented on issue #235:
URL: https://github.com/apache/age/issues/235#issuecomment-1174041472

   Resolved, thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] bravius closed issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
bravius closed issue #235: MERGE followed by SET causes segfault
URL: https://github.com/apache/age/issues/235


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] jrgemignani commented on issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
jrgemignani commented on issue #235:
URL: https://github.com/apache/age/issues/235#issuecomment-1162199633

   Was able to reproduce the bug. Will look into a fix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] jrgemignani commented on issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
jrgemignani commented on issue #235:
URL: https://github.com/apache/age/issues/235#issuecomment-1172563657

   This is now fixed in the master branch. It also fixes #232.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] jrgemignani commented on issue #235: MERGE followed by SET causes segfault

Posted by GitBox <gi...@apache.org>.
jrgemignani commented on issue #235:
URL: https://github.com/apache/age/issues/235#issuecomment-1171725644

   A patch is currently in review to correct this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org