Skip to content

[DivByZeroDefect] when attempting to use gzip on i386 application for Windows #94

@ghost

Description

Hey, I was trying to use puppy as a HTTP client in an x86 application, but I noticed that I was getting a [DivByZeroDefect]

It seems that this is an issue with zippy itself as the error points to C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy\gzip.nim(76) uncompressGzip

I have tried running the example HTTP client in the repo, but that likewise fails on i386.

This is the error I'm getting:

D:\Testing-Zippy-i386\main.nim(9) main
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy.nim(171) uncompress
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy.nim(115) uncompress
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy.nim(128) uncompress
C:\Users\Admin\.nimble\pkgs2\zippy-0.10.16-da3bb5ea388f980babcc29760348e2899d29a639\zippy\gzip.nim(76) uncompressGzip
C:\nim-2.2.0\lib\system\fatal.nim(53) sysFatal
Error: unhandled exception: division by zero [DivByZeroDefect]
Error: execution of an external program failed: 'D:\Testing-Zippy-i386\main.exe'
PS D:\Testing-Zippy-i386>

The command I'm using to compile for 32-bit is nim c --cpu:i386 --gcc.path=C:\mingw32\bin -r .\main.nim

I looked through some earlier push requests and found a supposed fix for 32-bit that was pushed, but that didn't seem to fix the issue.
I'm using Zippy 0.10.16 (as installed through Nimble).

Thanks in advance :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions