New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are some bugs in this avx ecm. #1
Comments
|
It seem that it can work at most of time. But this number will crash it. |
|
Can you send me all of the screen output when running with -v -v
Thanks!
…On Mon, Jan 17, 2022, 8:39 PM 枸杞蒲蒻 ***@***.***> wrote:
https://github.com/lyciumlee/yafu-2.0-with-avx512-and-sse4.1
I merge all dependences of yafu. When I want to factor this number. I will
receive segment falut.
factor(4233133576589787911052873395725373610641079968802963985967)
Following text is the message from gdb.
`
[New Thread 0x7fffac4ce700 (LWP 1496680)]
[New Thread 0x7fffabccd700 (LWP 1496681)]
[New Thread 0x7fffab4cc700 (LWP 1496682)]
[New Thread 0x7fffaaccb700 (LWP 1496683)]
--Type for more, q to quit, c to continue without paging--
Thread 124 "yafu" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffad4d0700 (LWP 1496678)]
vecsqrmod52 (a=0xd6abde0, c=0xd6ab6e0, n=0xd6acbe0, s=0xd6ac4e0,
mdata=) at factor/avx-ecm/vecarith52.c:14433
14433 _mm512_store_epi64(s->data + (i * BLOCKWORDS + j) * VECLEN, a0);
(gdb)
`
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOCKUSP7DKYFZ37WAW6PCR3UWTHFVANCNFSM5MGARLMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
When I use following instructions to start yafu. YAFU Version 2.07 ===============================================================
|
|
when I use gdb to attach yafu. For help, type "help". YAFU Version 2.07 ===============================================================
|
|
this infos from gdb with gef. For help, type "help". YAFU Version 2.07 ===============================================================
|
|
gef➤ registers |
|
Thanks for the report. I believe it is fixed now in version 2.08, just
checked in today.
Let me know if you still have issues.
…On Tue, Jan 18, 2022, 11:21 PM 枸杞蒲蒻 ***@***.***> wrote:
gef➤ registers
$rax : 0x4330000000000000
$rbx : 0x00000000061a3c20 → 0x00000000061a3fc0 → 0x00016896a1bfa153
$rcx : 0xffffffffffc7f
$rdx : 0x00000000061a3c40 → 0x000d3b6334a05bb9
$rsp : 0x00007fffc1cf7fc0 → 0x0000000000000000
$rbp : 0x00007fffc1cf8bf0 → 0x0000000006398ee0 → 0x0000000400000004
$rsi : 0x0
$rdi : 0x00000000061a38a0 → 0x00000000061a3c40 → 0x000d3b6334a05bb9
$rip : 0x00000000004946f0 → <vecmulmod52+4528> vcvtuqq2pd zmm1, ZMMWORD
PTR [rcx]
$r8 : 0x00000000061a3c20 → 0x00000000061a3fc0 → 0x00016896a1bfa153
$r9 : 0x00000000061a46a0 → 0x00000000061a4a40 → 0x00012189d56c162f
$r10 : 0x00007fffc1cf8c20 → 0x00000000061a2720 → 0x00000000061a2ac0 →
0x0004a10c77716465
$r11 : 0x433
$r12 : 0x467
$r13 : 0x0
$r14 : 0x1
$r15 : 0x00000000061a2aa0 → 0x00000000061a2e40 → 0x0004ce7981cca57d
$eflags: [ZERO carry PARITY adjust sign trap INTERRUPT direction overflow
RESUME virtualx86 identification]
$cs: 0x0033 $ss: 0x002b $ds: 0x0000 $es: 0x0000 $fs: 0x0000 $gs: 0x0000
gef➤ sta
start starti status
gef➤ bt
#0 vecmulmod52 (a=0x61a38a0, b=0x61a4320, c=0x61a3520, n=0x61a46a0,
s=0x61a3c20, mdata=) at factor/avx-ecm/vecarith52.c:7316
#1 <#1> 0x00000000004c9209 in
vec_duplicate ***@***.***=0x6398ee0, ***@***.***=0x61a2590,
***@***.***=0x61a2aa0, ***@***.***=0x580aa50, ***@***.***=0x61a25e8)
at factor/avx-ecm/avxecm.c:579
#2 0x00000000004c9602 in vec_prac (mdata=0x6398ee0, work=0x61a2590,
P=0x580aa30, c=) at factor/avx-ecm/avxecm.c:850
#3 0x00000000004cae65 in vec_ecm_stage1 (mdata=0x6398ee0, work=0x61a2590,
P=0x580aa30, b1=0x7d0, primes=0xe80c6c0, nump=0x468d, verbose=0x0) at
factor/avx-ecm/avxecm.c:3215
#4 0x00000000004cafb5 in vec_ecm_stage1_work_fcn (vptr=) at
factor/avx-ecm/avxecm.c:269
#5 0x00000000005bc02a in tpool_worker_main (thread_data=0xe8bf4f8) at
threadpool.c:209
#6 0x00000000005d3e59 in start_thread (arg=) at pthread_create.c:477
#7 0x000000000066f423 in clone ()
gef➤
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOCKUSPDV6SPVBJY6XAZCQ3UWZC6LANCNFSM5MGARLMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Awesome! It works. Thank you!!!! |
https://github.com/lyciumlee/yafu-2.0-with-avx512-and-sse4.1
I merge all dependences of yafu. When I want to factor this number. I will receive segment falut.
Following text is the message from gdb.
`
[New Thread 0x7fffac4ce700 (LWP 1496680)]
[New Thread 0x7fffabccd700 (LWP 1496681)]
[New Thread 0x7fffab4cc700 (LWP 1496682)]
[New Thread 0x7fffaaccb700 (LWP 1496683)]
--Type for more, q to quit, c to continue without paging--
Thread 124 "yafu" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffad4d0700 (LWP 1496678)]
vecsqrmod52 (a=0xd6abde0, c=0xd6ab6e0, n=0xd6acbe0, s=0xd6ac4e0,
mdata=) at factor/avx-ecm/vecarith52.c:14433
14433 _mm512_store_epi64(s->data + (i * BLOCKWORDS + j) * VECLEN, a0);
(gdb)
`
The text was updated successfully, but these errors were encountered: