-
Hi, I am trying to use
I also tried removing the debug section from the
Code structure is as follows (Gist is also at https://gist.github.com/gmarella/9caa8a88fdd221c1fed4062e5a81c782 )
Libary codesimple_thread.cpp #include <iostream>
#include <string>
#include <pthread.h>
#include <unistd.h>
using namespace std;
void* thread_function(void *)
{
cout << "Inside thread function" << endl;
while (true)
{
cout << "Looping in thread" << endl;
sleep(1);
}
return nullptr;
} simple_thread.h #pragma once
void* thread_function(void *); main.cpp #include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <iostream>
#include <pthread.h>
#include "simple_thread.h"
using namespace std;
void InitThreads()
{
pthread_t thread;
pthread_create(&thread, NULL, &thread_function, NULL);
pthread_join(thread, NULL);
}
int main()
{
InitThreads();
return 0;
} Makefile
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The test we have for Lines 870 to 876 in 8c81cac @dschuff @sbc100 Perhaps that tool is only meant to be run like that? In any case @gmarella , as a workaround you can run strip at the very end, on the wasm, and not in the middle. The result should be the same. |
Beta Was this translation helpful? Give feedback.
-
This does look like a bug, I created #22291 |
Beta Was this translation helpful? Give feedback.
-
Lets close this an followup on #22291 |
Beta Was this translation helpful? Give feedback.
This does look like a bug, I created #22291
The fact that the crash is the same when trying to strip the object file and then add it to the archive after that means that you can't work around the bug by working only on object files, and suggests that the file created by the stripping is corrupted in a way that crashes the object file parser.