Skip to content

[core-dump] command failed on Linux - Confusing output to terminal #391

@jamesdlevine

Description

@jamesdlevine

When pdd auth is invoked and user is not authenticated, error output is produced:

Error during 'unknown' command:
  An unexpected error occurred: Process exited with code 1
  • Expected behavior should be a clean exit after displaying the auth status.
  • Status of 1 is reasonable
  • "Error during 'unknown' command" is confusing
  • "An unexpected error ..." is confusing

Core dump file: /home/james/pdd-cap-fixes/pdd_cap/.pdd/core_dumps/pdd-core-20260125T200939Z.json

What happened

(no additional description provided by user)

Environment

  • Working directory: /home/james/pdd-cap-fixes/pdd_cap
  • CLI arguments: auth status
  • Platform: Linux 6.8.0-87-generic
  • Python: 3.12.12 | packaged by Anaconda, Inc. | (main, Oct 21 2025, 20:16:04) [GCC 11.2.0]
  • PDD version: 0.0.129
  • Total estimated cost: $0.000000

Reproduction

To reproduce this issue in a similar environment, run:

cd /home/james/pdd-cap-fixes/pdd_cap
pdd auth status

Errors

unknown (RuntimeError)

RuntimeError: Process exited with code 1

Terminal Output

=== STDOUT ===
Checking for updates...
Not authenticated.
Run: pdd auth login
Error during 'unknown' command:
  An unexpected error occurred: Process exited with code 1

Raw core dump (JSON)

{
  "argv": [
    "auth",
    "status"
  ],
  "cwd": "/home/james/pdd-cap-fixes/pdd_cap",
  "environment": {
    "PATH": "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/james/.nvm/versions/node/v24.13.0/bin:/home/james/miniconda3/envs/pdd-cap-fixes-fresh/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/james/miniconda3/condabin:/home/james/.local/bin:/home/james/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/snap/bin",
    "PDD_PATH": "/home/james/miniconda3/envs/pdd-cap-fixes-fresh/lib/python3.12/site-packages/pdd"
  },
  "errors": [
    {
      "command": "unknown",
      "message": "Process exited with code 1",
      "traceback": "RuntimeError: Process exited with code 1\n",
      "type": "RuntimeError"
    }
  ],
  "file_contents": {},
  "global_options": {
    "context": null,
    "force": false,
    "local": false,
    "output_cost": null,
    "quiet": false,
    "review_examples": false,
    "strength": null,
    "temperature": null,
    "time": 0.25,
    "verbose": false
  },
  "invoked_subcommands": [],
  "pdd_version": "0.0.129",
  "platform": {
    "python": "3.12.12 | packaged by Anaconda, Inc. | (main, Oct 21 2025, 20:16:04) [GCC 11.2.0]",
    "release": "6.8.0-87-generic",
    "system": "Linux",
    "version": "#88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025"
  },
  "schema_version": 1,
  "steps": [],
  "terminal_output": "=== STDOUT ===\nChecking for updates...\nNot authenticated.\nRun: pdd auth login\nError during 'unknown' command:\n  An unexpected error occurred: Process exited with code 1\n",
  "timestamp_utc": "20260125T200939Z",
  "total_cost": 0.0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions